search for: getregusedeflisthead

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

2011 Jan 20
0
[LLVMdev] [LLVMDev] Live Intervals and Finding the next usage
I am looking for the slot index of a register around the given slot index Min. Is there a better way than the linear search: ... findDefUsesAroundIndex( LiveInterval* li, SlotIndex Min ) ... for( MachineOperand * mo = MRI->getRegUseDefListHead(li->reg); mo; mo = mo->getNextOperandForReg() ) { SlotIndex si = SI->getInstructionIndex( use.getOperand().getParent() ); if( Min.distance(si) >= 0 ) ... - Thanks Jeff Kunkel On Thu, Jan 20, 2011 at 8:37 AM, Jeff Kunkel <jdkunk3 at gmail.com> wrote: > I have a...
2009 Jun 03
2
[LLVMdev] Adding instructions to MachineBlock
...d x2<-f'(y2,z2), where f' is the corresponding scalar instruction. Now, when I am trying to insert the new instructions into the basic block (BB->insert(II, copies[i])), I am seeing a segfault. MachineOperand::AddRegOperandToRegInfo is getting called by BB->insert() and RegInfo->getRegUseDefListHead(getReg()) for the new register is 0xffffffff somehow. I suspect I am not following some rules when adding the instructions to a basic block. I would be grateful if some one can point out what I am doing wrong, and provide suggestions on how to go about doing this. Thanks, Manjunath
2011 Jan 20
4
[LLVMdev] [LLVMDev] Live Intervals and Finding the next usage
I have a live interval, and I would like to find out what SlotIndex the next use the register will occur? Is there any way to map a live interval back into instructions or SlotIndexes or blocks used by? - Thanks Jeff Kunkel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110120/fd429dbd/attachment.html>
2009 Jun 03
0
[LLVMdev] Adding instructions to MachineBlock
On Wed, Jun 3, 2009 at 12:46 PM, Manjunath Kudlur<keveman at gmail.com> wrote: > Hello, > > I am writing a MachineFunction pass that converts vector instructions > to a sequence of scalar instructions. Why? That really isn't the level you want to be doing that sort of thing normally. Usually, legalization turns illegal vector operations into legal scalar operations. -Eli