commit | 17f053b88a80de06d599bf4c23674e035d54bc61 | [log] [tgz] |
---|---|---|
author | Chris Lattner <clattner@google.com> | Wed Oct 24 09:22:48 2018 -0700 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 13:36:59 2019 -0700 |
tree | 15be328dfe953634b1a4125f9434ade3dae257ef | |
parent | cf9d68e8b8dd69dbf0043896eeea0a0a82831648 [diff] |
Teach canonicalize pass to unique and hoist constants to the entry block. This is a straight-forward change, but required adding missing moveBefore() methods on operations (requiring moving some traits around to make C++ happy). This also fixes a constness issue with the getBlock/getFunction() methods on Instruction, and adds a missing getFunction() method on MLFuncBuilder. PiperOrigin-RevId: 218523905