Mapping from references to the Expressions that drive them
Recursively replace WRefs with new Expressions
Recursively replace WRefs with new Expressions
a mutable HashMap mapping references to DefNodes to their connected Expression Expressions. It is not mutated in this function
the Expression being transformed
Returns expr with Bits inlined
Replaces bits in a Module
Inline bits in a Statement
Inline bits in a Statement
a mutable HashMap mapping references to DefNodes to their connected Expressions. This function will mutate it if stmt is a DefNode with a Temporary name and a value that is a PrimOp Bits
the Statement being searched for nodes and transformed
Returns stmt with Bits inlined