Displaying 2 results from an estimated 2 matches for "setcurrentblock".
2006 Apr 18
0
[LLVMdev] LLVM-based JVM JIT for libgcj
...ything will still work fine) but are quite handy when
trying to read the LLVM code.
It would be straight-forward to add a new "easy" interface for creating
LLVM instructions. Would something like this work well for you?
class InstructionCreator {
BasicBlock *CurBB;
public:
void setCurrentBlock(BasicBlock *);
Value *createAdd(Value *LHS, Value *RHS, const std::string &Name = "");
Value *createSub(Value *LHS, Value *RHS, const std::string &Name = "");
...
};
Given this, use would be much more implicit:
InstructionCreator IC;
IC.setBasicBlock(FalseBB)...
2006 Apr 18
2
[LLVMdev] LLVM-based JVM JIT for libgcj
>>>>> "Chris" == Chris Lattner <sabre at nondot.org> writes:
>> FWIW I actually did this work twice, once for libjit and once for
>> LLVM. I'm happy to provide a comparison, from a jit-writing
>> perspective, if you're interested.
Chris> Given your experience with both, I'd be very interested in any
Chris> thoughts you have on