Displaying 9 results from an estimated 9 matches for "symboltablelisttraitsimpl".
2010 Jan 13
2
[LLVMdev] How to create forward reference to BasicBlock?
...s not yet known.
I've tried:
Function function
Builder builder;
bb = BasicBlock::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 expec...
2010 Jan 13
0
[LLVMdev] How to create forward reference to BasicBlock?
...lder;
>
> bb = BasicBlock::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!!"' fai...
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...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, SymTabClass = llvm::Function, SubClass = llvm::ilist_traits<llvm::Instruction>]: Asse...
2012 Oct 08
0
[LLVMdev] Inserting a function call using LLVM
Hi Teja,
> I am new to LLVM and interested in using LLVM to work on a research project for
> my Master's degree.
> My idea is following -
>
> 1. I have a simple C program basic.c -
> #include <stdio.h>
> int main() {
> printf("Hello World");
> return 0;
> }
>
> 2. I will generate IR byte code for this basic.c using -
> llvm-gcc
2012 Oct 07
2
[LLVMdev] Inserting a function call using LLVM
Hi,
I am new to LLVM and interested in using LLVM to work on a research project
for my Master's degree.
My idea is following -
1. I have a simple C program basic.c -
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
2. I will generate IR byte code for this basic.c using -
llvm-gcc -emit-llvm -S basic.c
This will give me basic.s which has IR byte code
2016 Aug 04
4
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
...R/ValueSymbolTable.cpp:59
#3 0x00000000022f0551 in
llvm::SymbolTableListTraits<llvm::GlobalVariable>::transferNodesFromList (this=0x7fffffffabd8,
L2=..., first=...,
last=...)
at
/work/Abe/non-backup-worthy/build_dirs/Clang/pre-3.9/2016-07-17-22-54-42-1cb1a4c-master/llvm/lib/IR/SymbolTableListTraitsImpl.h:102
#4 0x00000000023b1fd9 in llvm::iplist<llvm::GlobalVariable,
llvm::SymbolTableListTraits<llvm::GlobalVariable> >::transfer (
this=0x7fffffffabd8, position=..., L2=..., first=..., last=...)
at
/work/Abe/non-backup-worthy/build_dirs/Clang/pre-3.9/2016-07-17-22-54-42-1c...
2016 Jul 27
2
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
Dear all,
In the process of trying to add optimization for better layout of global variables, I have run
up against a roadblock: I don`t seem to be able to sort the contents of a
"SymbolTableListTraits<GlobalVariable>" -- or even swap two elements in that list -- without
causing LLVM to crash.
I have tried writing a comparator class and then using "llvm::iplist<
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...ctor.h:71)
==10132== by 0x848D194: llvm::BasicBlock::setParent(llvm::Function*) (
BasicBlock.cpp:89)
==10132== by 0x84C4938: llvm::SymbolTableListTraits<llvm::BasicBlock,
llvm::Function, llvm::Function, llvm::ilist_traits<llvm::BasicBlock>
>::removeNodeFromList(llvm::BasicBlock*) (SymbolTableListTraitsImpl.h :63)
==10132== by 0x84C491A: llvm::iplist<llvm::BasicBlock,
llvm::ilist_traits<llvm::BasicBlock>
>::remove(llvm::ilist_iterator<llvm::BasicBlock>&) (ilist:312)
==10132== by 0x84C4988: llvm::iplist<llvm::BasicBlock,
llvm::ilist_traits<llvm::BasicBlock>
>::er...
2004 Dec 03
2
[LLVMdev] [Fwd: Updated LLVM Visual Studio project files]
...ile>
> <File
> RelativePath="..\..\include\llvm\SymbolTable.h">
> </File>
> <File
> RelativePath="..\..\include\llvm\SymbolTableListTraits.h">
> </File>
> <File
> RelativePath="..\..\lib\VMCore\SymbolTableListTraitsImpl.h">
> </File>
> <File
> RelativePath="..\..\include\llvm\Type.h">
> </File>
> <File
> RelativePath="..\..\include\llvm\Use.h">
> </File>
> <File
> RelativePath="..\..\include\l...