search for: cntpass

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

Did you mean: ntpass
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...it? And is it necessary to add push_back() after new CallInst ? And if I used those two instructions , it works well. Thanks Instruction *InstrCall = new CallInst (InstrFn, Args , ""); BB->getInstList().insert(InsertPos,InstrCall); Error inforamtion: %opt -load ../../lib/Debug/libcntPass.so -cntPass<insert.bc -f -o i.bc BB name : entry opt: SymbolTableListTraitsImpl.h:53: void llvm::SymbolTableListTraits<ValueSubClass, ItemParentClass, SymTabClass, SubClass>::addNodeToList(ValueSubClass*) [with ValueSubClass = llvm::Instruction, ItemParentClass = llvm::BasicBlock, SymTab...
2004 May 19
2
[LLVMdev] Question about insert function or instruction.
...n? Thanks in advance for any response. --fengy-- The following code is what I do #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" #include "llvm/Instruction.h" #include "llvm/iOther.h" namespace llvm { struct cntPass : public FunctionPass{ virtual bool runOnFunction(Function &F){ std::cerr <<"funtion name : "<< F.getName()<<"\n"; for(Function::iterator BB = F.begin(),E=F.end(); BB != E;++BB){ std::cerr<< "BB name : "<<BB->getNam...