search for: functioncloning

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

2009 Nov 19
0
[LLVMdev] Strange error using CallInst constructor
...tic member > function ‘static llvm::CallInst* llvm::CallInst::Create(llvm::Value*, > InputIterator, InputIterator, const llvm::Twine&, llvm::Instruction*) [with > InputIterator = llvm::ilist_iterator<llvm::Argument>]’: > /media/work/cpp-workspace/DivComp/lib/Transforms/DivComp/FunctionCloning.cpp:70: >   instantiated from here > /media/work/cpp-workspace/DivComp/include/llvm/ADT/ilist.h:169: error: ‘void > llvm::ilist_iterator<NodeTy>::operator-(T) const [with T = > llvm::ilist_iterator<llvm::Argument>, NodeTy = llvm::Argument]’ is private > /media/work/cpp-wo...
2009 Nov 18
2
[LLVMdev] Strange error using CallInst constructor
Hi, This is probably more of a standard C++ question instead of an actual LLVM question, but here it goes anyway. I'm trying to invoke the following constructor: CallInst::CallInst(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, const Twine &NameStr, BasicBlock *InsertAtEnd); My code is: using namespace llvm; void replaceByClone(Function *f, CallInst *I){ Function *clone =