DictionaryInstructionTransformer
struct DictionaryInstructionTransformer : InstructionTransformer
An InstructionTransformer that uses dictionaries to map instructions.
Does not change types.
-
A map from block in
sourceto its corresponding block inresult. -
A map from instruction in
sourceto its corresponding instruction inresult.Declaration
Swift
var rewrittenInstructions: [InstructionID : InstructionID] -
A map from block parameter in
sourceto its corresponding block parameter inresult. -
A map from registers in
sourceto its corresponding registerresult. -
Returns
t, as we are not changing types.Declaration
Swift
func transform(_ t: AnyType, in ir: inout IR.Program) -> AnyType -
Returns a transformed copy of
o. -
Returns a transformed copy of
o. -
Returns a transformed copy of
b.
View on GitHub