Displaying 4 results from an estimated 4 matches for "error_label".
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion
Hi all,
I am really stumped on a problem for long. I could not figure out why.
That is why i am here. OK, here is the problem:
I tried to insert a MachineBasicBlock into a function. Here is the code
snippet:
// insert a machine basic block with the error_label into MF and before I
// Pred is the predecessor of the block to be inserted
// the new basic block is inserted right before I
void X86CFIOptPass::insertBasicBlockBefore(MachineFunction &MF,
MachineBasicBlock *Pred,
MachineFunction::iterator I){...
2010 Oct 20
1
[LLVMdev] MachineBasicBlock insertion and use/def list update
...>
>> I am really stumped on a problem for long. I could not figure out why.
>> That is why i am here. OK, here is the problem:
>> I tried to insert a MachineBasicBlock into a function. Here is the code
>> snippet:
>>
>> // insert a machine basic block with the error_label into MF and
>> before I
>> // Pred is the predecessor of the block to be inserted
>> // the new basic block is inserted right before I
>> void X86CFIOptPass::insertBasicBlockBefore(MachineFunction&MF,
>> MachineBasicBlock *Pred,
>>...
2009 Jul 08
2
[LLVMdev] Selection of multiple instructions
...s and custom C++ code (I guess that
will be X86DAGToDAGISel::Select(SDValue)) that deal with selection.
The runtime checks I want to add concern indirect jumps. So for example for
all calls that jump to register values like
call eax
I want to insert a check
... (some test) ...# perform test
jne error_label # jump if test fails
call eax # otherwise execute original call
So the check is a sequence of instructions before the call instruction.
Is it possible to do that at the selection level? If yes, could you give a
simple example or some hint how it would be done? I only find example...
2009 Jul 08
0
[LLVMdev] Selection of multiple instructions
...AGISel::Select(SDValue)) that deal with selection.
>
> The runtime checks I want to add concern indirect jumps. So for
> example for
> all calls that jump to register values like
>
> call eax
>
> I want to insert a check
>
> ... (some test) ...# perform test
> jne error_label # jump if test fails
> call eax # otherwise execute original call
>
> So the check is a sequence of instructions before the call
> instruction.
>
> Is it possible to do that at the selection level? If yes, could you
> give a
> simple example or some hint...