Displaying 6 results from an estimated 6 matches for "itemparentclass".
2010 Jan 13
2
[LLVMdev] How to create forward reference to BasicBlock?
...ock::Create(function,...)
bb.eraseFromParent()
...
add other blocks to function and build instructions in those blocks
...
function.getBasicBlockList.push_back(bb)
but I get an assert failure from push_back:
t1: SymbolTableListTraitsImpl.h:68: void
llvm::SymbolTableListTraits<ValueSubClass,
ItemParentClass>::addNodeToList(ValueSubClass*) [with ValueSubClass =
llvm::BasicBlock, ItemParentClass = llvm::Function]: Assertion
`V->getParent() == 0 && "Value already in a container!!"' failed.
Should I expect this to work? Can a BasicBlock only exist within a
Function's basic...
2010 Jan 13
0
[LLVMdev] How to create forward reference to BasicBlock?
...> add other blocks to function and build instructions in those blocks
> ...
>
> function.getBasicBlockList.push_back(bb)
>
>
> but I get an assert failure from push_back:
>
> t1: SymbolTableListTraitsImpl.h:68: void
> llvm::SymbolTableListTraits<ValueSubClass,
> ItemParentClass>::addNodeToList(ValueSubClass*) [with ValueSubClass =
> llvm::BasicBlock, ItemParentClass = llvm::Function]: Assertion
> `V->getParent() == 0 && "Value already in a container!!"' failed.
>
> Should I expect this to work? Can a BasicBlock only exist within a
&...
2013 Jul 30
2
[LLVMdev] Instruction insertion By Module Pass
...etInt32Ty(getGlobalContext());
AllocaInst* newInst = new AllocaInst(Int32Type,"flag", Bb);
Bb->getInstList().push_back(newInst);
the error:
void llvm::SymbolTableListTraits<llvm::Instruction,
llvm::BasicBlock>::addNodeToList(ValueSubClass *) [ValueSubClass =
llvm::Instruction, ItemParentClass = llvm::BasicBlock]: Assertion
`V->getParent() == 0 && "Value already in a container!!"' failed.
Is there a class I could use to insert while loop in Module Pass?
Thank you in advance
--
* Rasha Salah Omar
Msc Student at E-JUST
Demonestrator at Faculty o...
2013 Jul 30
0
[LLVMdev] Instruction insertion By Module Pass
...ou're inserting the alloca instruction twice.
Remove the last line, and it should fix your problem.
-- John T.
>
> the error:
> void llvm::SymbolTableListTraits<llvm::Instruction,
> llvm::BasicBlock>::addNodeToList(ValueSubClass *) [ValueSubClass =
> llvm::Instruction, ItemParentClass = llvm::BasicBlock]: Assertion
> `V->getParent() == 0 && "Value already in a container!!"' failed.
>
> Is there a class I could use to insert while loop in Module Pass?
>
> Thank you in advance
>
> --
> *Rasha Salah Omar
> Msc Student at E-JUST...
2013 Jul 31
1
[LLVMdev] Instruction insertion By Module Pass
...the alloca instruction twice.
>
> Remove the last line, and it should fix your problem.
>
> -- John T.
>
>
> the error:
> void llvm::SymbolTableListTraits<llvm::Instruction,
> llvm::BasicBlock>::addNodeToList(ValueSubClass *) [ValueSubClass =
> llvm::Instruction, ItemParentClass = llvm::BasicBlock]: Assertion
> `V->getParent() == 0 && "Value already in a container!!"' failed.
>
> Is there a class I could use to insert while loop in Module Pass?
>
> Thank you in advance
>
> --
> * Rasha Salah Omar
> Msc Student...
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...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, SymTabClass = llvm::Function, SubClass = llvm::ilist_traits<llvm::Instruction>]: Assertion `V->getParent() == 0 && "Value already in a contain...