search for: basicinstructionselector

Displaying 6 results from an estimated 6 matches for "basicinstructionselector".

2004 Jun 04
2
[LLVMdev] Some backend questions
...that in getReg method in InstSelectSimple.cpp which: - uses SSARegMap instance - keeps internal Value* -> register mapping - copies constants into register when needed At least first two things will be necessary for my backend too. I start to wonder if it makes sense to make a "BasicInstructionSelector" which will have such reusable logic? Sorry if the above is not very clear -- I'm only starting to getting underting of LLVM codebase. - Volodya
2004 Jun 18
1
[LLVMdev] Getelementptr woes
...avoid is making by backend a blatant copy-paste. > I don't think this is TOO completely horrible to support constant > expressions in general, though it can (and will be in the future) > certainly be improved. Ok, I've another idea. I wonder if it's possible to create 'BasicInstructionSelector'. It would have a bunch of pure virtual methods like emitShiftOperation and 1. Visitors for each operations, written just like above 2. Handling for constant expressions. So, individual backend would have to implement only emitShiftOperation and other emit* methods. > > The second pa...
2004 Jun 04
0
[LLVMdev] Some backend questions
...lectSimple.cpp which: > > - uses SSARegMap instance > - keeps internal Value* -> register mapping > - copies constants into register when needed > > At least first two things will be necessary for my backend too. I start to > wonder if it makes sense to make a "BasicInstructionSelector" which will have > such reusable logic? That's a good idea, because basically all instruction selectors require the same code. The problem is that the code needs to know how to get an immediate/constant into a register as well, which can be very complex on some targets. For now, I re...
2004 Jun 17
0
[LLVMdev] Getelementptr woes
On Thu, 17 Jun 2004, Vladimir Prus wrote: > 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
2004 Jun 07
2
[LLVMdev] Some backend questions
...; > - uses SSARegMap instance > > - keeps internal Value* -> register mapping > > - copies constants into register when needed > > > > At least first two things will be necessary for my backend too. I start > > to wonder if it makes sense to make a "BasicInstructionSelector" which > > will have such reusable logic? > > That's a good idea, because basically all instruction selectors require > the same code. The problem is that the code needs to know how to get an > immediate/constant into a register as well, which can be very complex on >...
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