Displaying 3 results from an estimated 3 matches for "visitshiftinst".
2004 Jun 17
0
[LLVMdev] Getelementptr woes
...sbyte]* %.str_1, ..........
> %tmp.0.i = call int (sbyte*, ...)*
> %printf(%tmp.1 , .........
While this is feasible and possible, I really wouldn't recommend it. Take
a look at how the X86 backend handles this stuff. For shift instructions,
for example, we have:
void ISel::visitShiftInst(ShiftInst &I) {
MachineBasicBlock::iterator IP = BB->end();
emitShiftOperation(BB, IP, I.getOperand(0), I.getOperand(1),
I.getOpcode() == Instruction::Shl, I.getType(),
getReg(I));
}
Basically all of the code for emitting shift instructions is i...
2004 Jun 17
2
[LLVMdev] Getelementptr woes
Hello,
I'm having problems with the following LLVM instruction
%tmp.0.i = call int (sbyte*, ...)*
%printf( sbyte* getelementptr ([11 x sbyte]* %.str_1, long 0, ......
The first argument in function call,
sbyte* getelementptr ([11 x sbyte]* %.str_1.....
appears to be ConstantExpression*, and my backend does not support
ConstantExpression yet.
I probable can implement
2004 Jun 18
1
[LLVMdev] Getelementptr woes
...%tmp.0.i = call int (sbyte*, ...)*
> > %printf(%tmp.1 , .........
>
> While this is feasible and possible, I really wouldn't recommend it. Take
> a look at how the X86 backend handles this stuff. For shift instructions,
> for example, we have:
>
> void ISel::visitShiftInst(ShiftInst &I) {
> MachineBasicBlock::iterator IP = BB->end();
> emitShiftOperation(BB, IP, I.getOperand(0), I.getOperand(1),
> I.getOpcode() == Instruction::Shl, I.getType(),
> getReg(I));
> }
>
> Basically all of the code fo...