Skip to content
Commit bd01f954 authored by Chris Lattner's avatar Chris Lattner Committed by jpienaar
Browse files

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
parent 3d7ab2d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment