similar to: [LLVMdev] Iterate through a Module's StructTypes

Displaying 20 results from an estimated 400 matches similar to: "[LLVMdev] Iterate through a Module's StructTypes"

2013 Oct 18
1
[LLVMdev] Iterate through a Module's StructTypes
Hello, I'm updating a legacy code using LLVM 2.5 where it has an iteration through a Module's TypeSymbolTable to process each StructType. In LLVM 3.4, TypeSymbolTable has been removed. I can only find the LLVMContextImpl instance of a Module's LLVMContext which has AnonStructTypes and NamedStructTypes two maps. However, LLVMContextImpl is an opaque class which cannot be directly
2013 Dec 05
2
[LLVMdev] Unable to perform LLVM LTO using clang
Dear Rafael, Thank you for your answer. The verbose mode -v shows that clang uses the old ld in /usr/bin while I install the gold in /usr/local/bin. Regards, Chunbai On Tue, Dec 3, 2013 at 9:23 PM, Rafael Espíndola <rafael.espindola at gmail.com > wrote: > > Could anyone tell me where my mistake is? > > Try running > > clang -flto a.o b.o -o main -v > > it should
2013 Dec 05
0
[LLVMdev] Unable to perform LLVM LTO using clang
On 5 December 2013 07:46, Chunbai YANG <chunbyang2 at gapps.cityu.edu.hk> wrote: > Dear Rafael, > > Thank you for your answer. The verbose mode -v shows that clang uses the old > ld in /usr/bin while I install the gold in /usr/local/bin. Clang should be searching the path. What does $ which ld print? Maybe all that you have to do is $ export PATH=/usr/local/bin:$PATH Cheers,
2011 Jul 25
4
[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes
Several people on this list have reported issues with the linker regarding a named StructType instance with the same name in two different modules being resolved into two StructTypes with different names due to StructType:: setName(…) collision behavior. Looking at BitcodeReader::ParseTypeTableBody(…), I don't see use of LLVMContextImpl::NamedStructTypes or of Module::getTypeByName(…). Nor do
2011 Jul 26
0
[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes
On Jul 25, 2011, at 10:50 AM, Garrison Venn wrote: > Several people on this list have reported issues with the linker regarding a > named StructType instance with the same name in two different modules > being resolved into two StructTypes with different names due to StructType:: > setName(…) collision behavior. Looking at BitcodeReader::ParseTypeTableBody(…), > I don't see
2011 Jul 26
2
[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes
Thanks for the response Chris, On Jul 26, 2011, at 0:44, Chris Lattner wrote: > > On Jul 25, 2011, at 10:50 AM, Garrison Venn wrote: > >> Several people on this list have reported issues with the linker regarding a >> named StructType instance with the same name in two different modules >> being resolved into two StructTypes with different names due to StructType::
2011 Jul 25
0
[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes
On Mon, Jul 25, 2011 at 10:50 AM, Garrison Venn <gvenn.cfe.dev at gmail.com> wrote: > Several people on this list have reported issues with the linker regarding a > named StructType instance with the same name in two different modules > being resolved into two StructTypes with different names due to StructType:: > setName(…) collision behavior. Looking at
2013 Dec 17
0
[LLVMdev] llvmContext::removeModule doesn't remove NamedStructTypes
Hi, LLVM community, I found an issue in my using scenario. We deliberately parse a bitcode file twice. It contains a named struct type. eg. %struct.cmd = type { float, float, float, float, float, i32 }. In the second module->dump, %struct.cmd becomes %struct.cmd0. my code is simplified like this. int main() { llvm::LLVMContext &llvmCtx = llvm::getGlobalContext(); string ErrMsg;
2011 Jun 25
0
[LLVMdev] inefficiencies in ConstantUniqueMap ?
On 25 June 2011 13:00, Duncan Sands <baldrick at free.fr> wrote: >> 3. Clang/dragonegg need to adapt to the new API (help appreciated!) > > what needs to be done exactly? Background info: http://www.nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt As I understand it, PATypeHolder, OpaqueType and the Module's TypeSymbolTable are gone. Instead, StructTypes can optionally be
2015 Mar 28
2
[LLVMdev] LLVMContextImpl.h not installed?
Hi all, I 'd like to fetch a list of structures, and found that it could be done via LLVMContextImpl *pImpl = Context.pImpl; pImpl->AnonStructTypes This however needs the inclusion of LLVMContextImpl.h, which is not contained in the includes dir, but in the lib/IR dir (next to the .cpp files) and is not installed under /usr/local/include... Whats the reason for this? Isn't it
2011 Jun 30
0
[LLVMdev] inefficiencies in ConstantUniqueMap ?
On 30 June 2011 14:07, Duncan Sands <baldrick at free.fr> wrote: > Hi Jay, > >> As I understand it, PATypeHolder, OpaqueType and the Module's >> TypeSymbolTable are gone. Instead, StructTypes can optionally be >> named, and if they are then: >> >> - they use name equivalence instead of structural equivalence. >> - you can create them without any
2011 Jun 30
5
[LLVMdev] inefficiencies in ConstantUniqueMap ?
Hi Jay, > As I understand it, PATypeHolder, OpaqueType and the Module's > TypeSymbolTable are gone. Instead, StructTypes can optionally be > named, and if they are then: > > - they use name equivalence instead of structural equivalence. > - you can create them without any fields, and then add the fields > later when the struct is complete. I find this distinction between
2011 Jul 27
0
[LLVMdev] Lack of use of LLVMContextImpl::NamedStructTypes
On Jul 26, 2011, at 4:03 AM, Garrison Venn wrote: >> Hi Garrison, >> >> Do the other two threads answer the question here? >> >> -Chris > > Yes I believe the other threads concerning the same issue answer why the system, because > of the lack of type linkage, is lenient in "unioning" types. What I'm still uncomfortable with is, I >
2008 Oct 31
0
[LLVMdev] No of Datastructures
Hi Nipun, On Oct 30, 2008, at 9:31 PM, Nipun Arora wrote: > 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? What are you trying to achieve here with this information ? You can iterate over types to collect the info you need. For
2011 Dec 06
0
[LLVMdev] Regarding anonymous types
Pankaj, I encourage you to read Chris's excellent blog entry on type system @ http://blog.llvm.org/2011/11/llvm-30-type-system-rewrite.html - Devang On Dec 6, 2011, at 3:54 AM, Pankaj Gode wrote: > Hi All, > > While collecting type information for "anonymous types", I had below observation. > > For the example with anonymous types, given below > struct test
2008 Nov 05
1
[LLVMdev] No of Datastructures
Hi I was having just one more problem. I would like to find these datastructures/ primitive types etc inside a block, however the valuesymbol table is available only at a functional level. What can I do so as to get the number + type of datastructs(eg. arrays etc) inside a single block? Thanks Nipun On Fri, Oct 31, 2008 at 12:05 PM, Devang Patel <dpatel at apple.com> wrote: > Hi
2011 Dec 06
3
[LLVMdev] Regarding anonymous types
Hi All,   While collecting type information for "anonymous types", I had below observation.   For the example with anonymous types, given below struct test {   struct {     union {       Char a[4];     };   };   struct {     int b;     char c;   }; };   LLVM 2.6 defines the types as %struct.anon1 = type { %union.anon0} %struct.anon2 = type { i32, i8} %struct.test = type {
2008 Nov 02
2
[LLVMdev] No of Datastructures
Hey Devang, Thanks for the assist, I'm trying to extract a signature which uniquely identifies a block of code.... this is required for a project I am doing. The no of data structures is one of the identifying features of this signature. Thanks Nipun On Fri, Oct 31, 2008 at 1:05 PM, Devang Patel <dpatel at apple.com> wrote: > Hi Nipun, > On Oct 30, 2008, at 9:31 PM, Nipun
2008 Nov 02
0
[LLVMdev] No of Datastructures
How do you define a data structure for this purpose? Do you mean individual data types like structs or arrays? Or higher-level "logical" structures like lists, trees, or hash tables? The former is obviously easier but even the latter is possible, in some cases. --Vikram Associate Professor, Computer Science University of Illinois at Urbana-Champaign http://llvm.org/~vadve On
2008 Nov 03
1
[LLVMdev] No of Datastructures
Right now I am writing passes just to look for arrays & structs I am trying to identify the array by parsing the memory description(use regex's) ex./ { [20 x i8], i32 } *- for a struct. is a structure with a character array of size 20 and an integer. I'm not sure if llvm provides an easier way to do this? The type id for most arrays comes out to be a pointer rather than an array, its