[LLVMdev] Sparc MachineBasicBlock info

Chris Lattner sabre at nondot.org
Wed Feb 23 18:15:45 PST 2005


On Wed, 23 Feb 2005, Brent Monroe wrote:

> Is there a way to access the current MachineBasicBlock info
> from within CodeGenIntrinsic in SparcV9BurgISel.cpp?
>
> The arguments are:  Intrinsic::ID iid, CallInst &callInstr,
> TargetMachine &target, and std::vector<MachineInstr*>& mvec,
> none of which seem to offer access to the current
> MachineBasicBlock.

I don't think there is any way.  Why do you need it though?  The SparcV9 
backend works very differently from the other backends: instead of 
inserting things into the MBB, it pushes instructions into temporary 
vectors of instructions (in this case, it's named mvec in 
CodeGenIntrinsic), and these instructions are latter copied into machine 
basic blocks.  Can you just insert the instructions you need into this 
vector like the vastart implementation does?

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list