search for: numvregs

Displaying 4 results from an estimated 4 matches for "numvregs".

Did you mean: numregs
2005 Sep 20
0
[LLVMdev] Requiring LiveIntervals
...tRegInfo.size(). The virtual registers are defined by the range: [MRegisterInfo::FirstVirtualRegister, MRegisterInfo::FirstVirtualRegister+VirtRegInfo.size()] Alternatively, the same information can be obtained from the SSARegMap for the function: given a MachineFunction, use something like: NumVRegs = MF.getSSARegMap()->getLastVirtReg()+1; These also start from MRegisterInfo::FirstVirtualRegister. > But LiveIntervalAnalysis.h is not in > "include/llvm/CodeGen", so I have to either include it by: > > #include "../../llvm/lib/CodeGen/LiveIntervalAnalysis.h"...
2005 Sep 20
2
[LLVMdev] Requiring LiveIntervals
One of my pass requires LiveIntervals to build the interference graph, because LiveVariables do not provide an interface to iterate through all viritual registers. But LiveIntervalAnalysis.h is not in "include/llvm/CodeGen", so I have to either include it by: #include "../../llvm/lib/CodeGen/LiveIntervalAnalysis.h" or point my project include path to
2005 Sep 20
2
[LLVMdev] Requiring LiveIntervals
...isters are defined by the range: > [MRegisterInfo::FirstVirtualRegister, > MRegisterInfo::FirstVirtualRegister+VirtRegInfo.size()] > > Alternatively, the same information can be obtained from the SSARegMap for > the function: given a MachineFunction, use something like: > > NumVRegs = MF.getSSARegMap()->getLastVirtReg()+1; > > These also start from MRegisterInfo::FirstVirtualRegister. I'm not sure if these two methods work because after the live intervals are joined, some virtual registers are coalesced, and their indices are invalidated. It's no longer that...
2005 Sep 21
0
[LLVMdev] Requiring LiveIntervals
...range: >> [MRegisterInfo::FirstVirtualRegister, >> MRegisterInfo::FirstVirtualRegister+VirtRegInfo.size()] >> >> Alternatively, the same information can be obtained from the SSARegMap for >> the function: given a MachineFunction, use something like: >> >> NumVRegs = MF.getSSARegMap()->getLastVirtReg()+1; >> >> These also start from MRegisterInfo::FirstVirtualRegister. > > I'm not sure if these two methods work because after the live > intervals are joined, some virtual registers are coalesced, and their > indices are invalidate...