Displaying 1 result from an estimated 1 matches for "brne".
Did you mean:
arne
2010 Aug 26
2
[LLVMdev] analysis and transformation of Machine IRs
...the instruction that defines the value uses an operand defined by a phi
instruction
3) the phi instruction uses the value
For example, in the code below which loops n times,
(begin)
...
(I0) v3 := n
(I1) v0 := 0
...
_LoopBody_:
(I2) v1 := phi(v0, v2)
...
(I3) v2 := v1 + 1
...
(I4) cmp v2, v3
(I5) brne _Loopbody_
...
(end)
v2 is the induction variable because,
1) v2 is an operand of I4
2) I3 uses v1, which is defined by a phi instruction
3) the phi instruction I2 uses v2
Is there a better way to do what I am trying to do?
Are there libraries I can use that work on Machine IRs?
2. Insertion of...