search for: setphysregus

Displaying 5 results from an estimated 5 matches for "setphysregus".

Did you mean: setphysregused
2012 Dec 03
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
...gister allocation. To determine which callee-saved physregs actually need to be saved it checks MachineRegisterInfo::isPhysRegOrOverlapUsed(unsigned reg). Your register allocator needs to notify MachineRegisterInfo about the physical registers that have been assigned by calling MachineRegisterInfo::setPhysRegUsed(unsigned reg). You only need to call setPhysRegUsed for the physregs that you actually use. You do not need to specify the aliasing registers. Hope this helps! Regards, Lang. On Sat, Dec 1, 2012 at 9:31 AM, Susan Horwitz <horwitz at cs.wisc.edu> wrote: > On 11/30/2012 6:36 PM, Lan...
2012 Dec 03
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...termine which callee-saved physregs actually need to be saved it > checks MachineRegisterInfo::isPhysRegOrOverlapUsed(unsigned reg). Your > register allocator needs to notify MachineRegisterInfo about the > physical registers that have been assigned by calling > MachineRegisterInfo::setPhysRegUsed(unsigned reg). > > You only need to call setPhysRegUsed for the physregs that you > actually use. You do not need to specify the aliasing registers. > > Hope this helps! > > Regards, > Lang. > > > On Sat, Dec 1, 2012 at 9:31 AM, Susan Horwitz <horwitz at cs.wi...
2012 Dec 01
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
Hi Susan, RBP is used as the frame pointer on x86 (hence its automatic appearance in your code), and shouldn't be allocated to any vreg in function bar. Loading/saving RBP should be managed by the stack frame setup/teardown code. If it doesn't already, your allocator should filter out reserved registers (See MachineRegisterInfo::isReserved(unsigned preg)) when assigning physregs.
2013 Oct 21
1
[LLVMdev] [PATCH] Unwanted r11 in push/pop on Cortex-M.
...!= e; ++i) { unsigned Reg = UnspilledCS1GPRs[i]; // Don't spill high register if the function is thumb1 - if (!AFI->isThumb1OnlyFunction() || + if (!AFI->isThumbFunction() || isARMLowRegister(Reg) || Reg == ARM::LR) { MRI.setPhysRegUsed(Reg); if (!MRI.isReserved(Reg)) On Tue, Oct 15, 2013 at 10:15 AM, Andrea Mucignat <andrea at nestlabs.com>wrote: > Umesh, > > From Target/ARM/ARMRegisterInfo.td, it looks like FP for Thumb should be > r7 instead of r11. > > // Register classes. > // &gt...
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
On 11/30/2012 6:36 PM, Lang Hames wrote: > > > RBP is used as the frame pointer on x86 (hence its automatic > appearance in your code), and shouldn't be allocated to any vreg in > function bar. Loading/saving RBP should be managed by the stack frame > setup/teardown code. > If it doesn't already, your allocator should filter out reserved > registers (See