similar to: [LLVMdev] Regarding anonymous types

Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] Regarding anonymous types"

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 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
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 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
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
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
2005 Apr 21
0
[LLVMdev] Using LLVM for a dynamically typed language
On Thu, 2005-21-04 at 10:28 -0400, Vyacheslav Akhmechet wrote: > The problem is that I do not know the type of a target function at > compile time. If you consider my code example, I don't know the type > of 'i' until runtime (in fact, I can't even know a possible range of > types 'i' may assume). I don't think I properly understand what the issue is here.
2005 Apr 21
5
[LLVMdev] Using LLVM for a dynamically typed language
Evan, The problem is that I do not know the type of a target function at compile time. If you consider my code example, I don't know the type of 'i' until runtime (in fact, I can't even know a possible range of types 'i' may assume). Thanks, - Slava. On 4/21/05, Evan Jones <ejones at uwaterloo.ca> wrote: > On Thu, 2005-21-04 at 09:31 -0400, Vyacheslav Akhmechet
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
2011 Jun 25
3
[LLVMdev] inefficiencies in ConstantUniqueMap ?
Hi Chris, > 3. Clang/dragonegg need to adapt to the new API (help appreciated!) what needs to be done exactly? Ciao, Duncan.
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
Hi all, I am working on my Master's project in security and I am trying to iterate over the argument list of the function. Basically I need to do following things : 1. Check data type of each argument of the argument list of the function. 2. Based on its data type like character array or integer array, pointer, int, char, take different action. 3. I have added following code to check its
2015 Apr 15
2
[LLVMdev] where is type symbol table now
Hello, I found some source code using llvm 2.5 that has a call to Module::getTypeName(Type*), which I can't find it anymore in llvm newer than 3.3, so how can I get the name of a type(e.g a user-defined structure) if we have Type* of that ? Besides, I checked that old llvm maintains a TypeSymbolTable that enabled type name look-up, so what's the replacement and mechanism of it in the
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
2003 Jul 31
2
mysql323 + gcc on 4.8-s
4.8-stable as/of jun 9th (update scheduled) has gcc version, 2.95.4 i'm building mod_php3 (some local stuff needs a php3 processor) with mysql support. using the mysql323 client/server from ports. mysql (which i know i've built before on older stable's) reports gcc can't convert longlong to something or other... basicly saying i need a newer compiler. i'm installing gcc33
2010 Mar 29
6
[LLVMdev] Union types
Hi All, I've noticed the union type in the language manual [1] but it seems it's not used too much. According to the manual, the code: union { int a; double b; } a; Could be compiled to: %union.anon = type union { i32, double } @a = common global %union.anon zeroinitializer, align 8 ; <%union.anon*> [#uses=0] But when I try to assemble it, I get: $ llvm-as union.ll
2012 Sep 22
2
[LLVMdev] Typedef struct types
Hi All,   I was searching for, extracting information about 'typedefed struct types' from 'module'. I have 'struct' typedefed in a .h file. I try to use this structure instance inside a function.   My .ll file rightly defines this type in the beginning so that it can be used later. (for example below) %struct.DEBLOCK_UNIT = type { i8*, i8*, i8*, i8, i32, i32,
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
2006 Feb 28
1
Ajax functions with embedded objects
Hi, In my project, there is an rhtml page with an embedded SVG file. In my javascript functions, I can find an object by id inside the SVG file with the following: ObjectInSVG = top.document.embeds[0].getSVGDocument().getElementById("rect"); Now, I want to use Ajax methods, like link_to_remote, in the rhtml page to manipulate the SVG objects. The problem is that link_to_remote
2010 Aug 06
1
[LLVMdev] How to access Debug Type Information (from Cbackend)
Hi, I'm trying to recover the inheritance relations for a class type (so a list of base classes) from a llvm ir file generated via compiling some cpp file using clang. I have access to the TypeSymbolTable and have found the class type I want to know the base classes for in the table. How do I go about extracting this (debug) information? I'm stuck here: if(StructType*