search for: createnswmul

Displaying 2 results from an estimated 2 matches for "createnswmul".

2010 Apr 14
0
[LLVMdev] Operand, instruction
...struction’:", "Instruction.h:50: note: virtual llvm::Instruction* > llvm::Instruction::clone(llvm::LLVMContext&) const" > An add or sub should be a BinaryOperator, if memory serves me correctly. Looking at mainline doxygen, there's a whole bunch of CreateNSWAdd, CreateNSWMul, etc. methods. It's one of those that you want. -- John T. > Also i have used BinaryOperator::create(), but it gives error that there is > no function called create(). > > Thanks again for your reply. > > > John Criswell-2 wrote: > >> help__me_please wrote: &...
2010 Apr 14
4
[LLVMdev] Operand, instruction
Thanks for reply. I have used AllocaInst, it's working but i think it's only for allocating some memory for new variable. And CallInst creates a call instruction. I am looking for creating a add or sub instruction. I used function instruction(), which gives me error "error: cannot allocate an object of abstract type ‘llvm::Instruction’" and also "Instruction.h:28: note: