search for: gettypesymboltable

Displaying 9 results from an estimated 9 matches for "gettypesymboltable".

2011 Dec 06
3
[LLVMdev] Regarding anonymous types
...ype {[4 x i8]}   Whereas, LLVM 2.9 defines the types as %0 = type { i32, i8} %anonanonct. = type {%anonanonn.} %anonanonn.  = type { [ 4x i8] } %struct.test = type { %anonanonct., %0}   In case of LLVM2.9, "%0" is interesting case.  When I try to extract types using " Module_Ptr->getTypeSymbolTable()".   Though struct{  union {    char a[4];  }; }; too is anonymous, but a name is given to it, i.e anonanonct.   I need this information as I want to collect all type-names.     Thanks & Regards, Pankaj     for(TypeSymbolTable::const_iterator I = M->getTypeSymbolTable().begin(),    ...
2011 Dec 06
0
[LLVMdev] Regarding anonymous types
...9 defines the types as > %0 = type { i32, i8} > %anonanonct. = type {%anonanonn.} > %anonanonn. = type { [ 4x i8] } > %struct.test = type { %anonanonct., %0} > > In case of LLVM2.9, "%0" is interesting case. > When I try to extract types using "Module_Ptr->getTypeSymbolTable()". > for(TypeSymbolTable::const_iterator I = M->getTypeSymbolTable().begin(), > E = M->getTypeSymbolTable().end(); I != E; ++I) { > if( I->second->isStructTy() ) > { > //code to collect type names > } > } > > I don't get thi...
2008 Oct 31
0
[LLVMdev] No of Datastructures
...r > example the number of arrays in a given code. Which pass would give > me this info? And what do I need to use in it? What are you trying to achieve here with this information ? You can iterate over types to collect the info you need. For example, TypeSymbolTable &TST = MyModule.getTypeSymbolTable(); for(TypeSymbolTable::iterator TI = TST.begin(), TE =TST.end(); TI != TE; ++TI) { const Type *Ty = TI->second; ... } http://llvm.org/docs/ProgrammersManual.html is very useful document for beginners. > > Thanks for the help > > Cheers > Nipun :) > ____________...
2008 Oct 31
3
[LLVMdev] No of Datastructures
Hi I am trying to count the no of datastructures and the type, say for example the number of arrays in a given code. Which pass would give me this info? And what do I need to use in it? Thanks for the help Cheers Nipun :) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081031/ffceddee/attachment.html>
2008 Nov 02
2
[LLVMdev] No of Datastructures
...arrays in a given code. Which pass would give me this info? > And what do I need to use in it? > > > What are you trying to achieve here with this information ? > > You can iterate over types to collect the info you need. For example, > > TypeSymbolTable &TST = MyModule.getTypeSymbolTable(); > for(TypeSymbolTable::iterator TI = TST.begin(), TE =TST.end(); TI != TE; > ++TI) { > const Type *Ty = TI->second; > ... > } > > http://llvm.org/docs/ProgrammersManual.html is very useful document for > beginners. > > > Thanks for the help > > C...
2008 Nov 05
1
[LLVMdev] No of Datastructures
...arrays in a given code. Which pass would give me this info? > And what do I need to use in it? > > > What are you trying to achieve here with this information ? > > You can iterate over types to collect the info you need. For example, > > TypeSymbolTable &TST = MyModule.getTypeSymbolTable(); > for(TypeSymbolTable::iterator TI = TST.begin(), TE =TST.end(); TI != TE; > ++TI) { > const Type *Ty = TI->second; > ... > } > > http://llvm.org/docs/ProgrammersManual.html is very useful document for > beginners. > > > Thanks for the help > >...
2008 Nov 02
0
[LLVMdev] No of Datastructures
...arrays in a given code. Which pass would give >> me this info? And what do I need to use in it? > > What are you trying to achieve here with this information ? > > You can iterate over types to collect the info you need. For example, > > TypeSymbolTable &TST = MyModule.getTypeSymbolTable(); > for(TypeSymbolTable::iterator TI = TST.begin(), TE =TST.end(); TI != > TE; ++TI) { > const Type *Ty = TI->second; > ... > } > > http://llvm.org/docs/ProgrammersManual.html is very useful document > for beginners. > >> >> Thanks for the help...
2008 Nov 03
1
[LLVMdev] No of Datastructures
...s would give > >> me this info? And what do I need to use in it? > > > > What are you trying to achieve here with this information ? > > > > You can iterate over types to collect the info you need. For example, > > > > TypeSymbolTable &TST = MyModule.getTypeSymbolTable(); > > for(TypeSymbolTable::iterator TI = TST.begin(), TE =TST.end(); TI != > > TE; ++TI) { > > const Type *Ty = TI->second; > > ... > > } > > > > http://llvm.org/docs/ProgrammersManual.html is very useful document > > for beginners. > &...
2008 Nov 17
1
[LLVMdev] getting debug type info
Hi, Is there a way to get all the basic and derived types defined in a C++ module? I was looking through MachineModuleInfo class but it seems that I need to first get hold of a Value before being able to get its DebugInfoDesc. Thanks, Alvin