search for: newcinst

Displaying 3 results from an estimated 3 matches for "newcinst".

Did you mean: new_inst
2009 Aug 01
1
[LLVMdev] Inserting Instructions (pass)
...his InlineAsm, because it is no instruction and this way it will not work: Instruction *pi = bi; pi->getParent()->getInstList().insert(pi, Iasm); I try to build a CallInst with a function, but I have still some problems Function *NewF = new Function(asm_Ftype,???,???); CallInst* NewCInst = new CallInst(NewF, ??? But where to set the InlineAsm and what type of LinkageType is required .? Thanks for help Michael Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im Auftrag von Chris Lattner Gesendet: Samstag, 1. August 2009 07:24 An: LLVM Deve...
2009 Aug 01
0
[LLVMdev] Inserting Instructions (pass)
On Jul 31, 2009, at 5:04 PM, Michael Graumann wrote: > Thank you Chris, > for your hint, but I am still too stupid. I tried two versions > > asm_arguments.push_back(Type::VoidTy); > FunctionType *asm_type = FunctionType::get(Type::VoidTy, > asm_arguments, false); > > Alternatively > > FunctionType *asm_type = FunctionType::get(Type::VoidTy, >
2009 Aug 01
2
[LLVMdev] Inserting Instructions (pass)
Thank you Chris, for your hint, but I am still too stupid. I tried two versions asm_arguments.push_back(Type::VoidTy); FunctionType *asm_type = FunctionType::get(Type::VoidTy, asm_arguments, false); Alternatively FunctionType *asm_type = FunctionType::get(Type::VoidTy, std::vector<const Type*>(), false); . Can you give me a snippet of example code, or somebody else?