Displaying 2 results from an estimated 2 matches for "opreg".
Did you mean:
preg
2008 Feb 23
1
[LLVMdev] Obligatory monthly tail call patch
Hello everybody, hi Evan,
this patch changes the lowering of arguments for tail call optimized
calls. Before arguments that could be overwritten by each other were
explicitly lowered to a stack slot, not giving the register allocator
a chance to optimize. Now a sequence of copyto/copyfrom virtual
registers ensures that arguments are loaded in (virtual) registers
before they are lowered to the
2013 Jun 20
0
[LLVMdev] Question about how MC and MI layers may share data structures.
...getImm();
Etc..
}
- to access the data from both MC and MI layers.
However, templating here may not be safest way to share code implementing
the same functionality between MC and MI.
Other possibilities include using virtual functions like:
getOperand(0).getReg() replaced by opreg(0),
Where opreg(x) would be a virtual function in a base class, which
TargetMCInst/TargetMachineInstruction would implement (and avoid
MCOperands/MIOperands).
Another option would be to use function pointers.
Is there a preferred way to share code between MI and MC?
Thanks and Regar...