commit | dffc589ad2783dd14dd5cdfdfccb624ccee94a6c | [log] [tgz] |
---|---|---|
author | Chris Lattner <[email protected]> | Sat Dec 29 23:33:43 2018 |
committer | jpienaar <[email protected]> | Fri Mar 29 21:46:58 2019 |
tree | a069a93521a726da65cfe920f497bd13cb370175 | |
parent | bbe3f4d9f5047abb5366c4d94c5c0199d8616b3f [diff] |
Extend InstVisitor and Walker to handle arbitrary CFG functions, expand the Function::walk functionality into f->walkInsts/Ops which allows visiting all instructions, not just ops. Eliminate Function::getBody() and Function::getReturn() helpers which crash in CFG functions, and were only kept around as a bridge. This is step 25/n towards merging instructions and statements. PiperOrigin-RevId: 227243966