search for: structvaltype

Displaying 5 results from an estimated 5 matches for "structvaltype".

2006 Dec 08
0
[LLVMdev] Proposed: first class packed structures
...vm.org/PR400. It would be great if you were interested in tackling this too, but your patch isn't a regression, so it can go in without it. Comments: *** You need to update LangRef.html. @@ -154,24 +154,28 @@ public: class StructType : public CompositeType { friend class TypeMap<StructValType, StructType>; StructType(const StructType &); // Do not implement const StructType &operator=(const StructType &); // Do not implement + // is this a packed structure? + bool packed; + Instead of adding 4 bytes to each struct instance, please make u...
2006 Dec 06
4
[LLVMdev] Proposed: first class packed structures
Currently, Structure layout is left to targets, which implement them according to the ABI of that platform. While this is fine for most structures, it makes packed structures very ugly. All fields in a packed type must be converted to byte arrays with casts to access fields, which bloats accesses and obsfucates the types. First class support for packed types would clean up the generated code
2011 Feb 27
0
[LLVMdev] LLVM IR Type System Rewrite
...ype of Global Variable with StructType is different from type of Global Variable, current front-end makes an temporary StructType for initializer as unnamed struct ("%42"). In this case, Is temporary StructType for initializer Unnamed sturct (named structs with no names)? And will be key(StructValType) of StructTypes(map) the number of elements and isPacked in current IR plus a name? (if so, isPacked is likely to be redundant in some types.) Thanks, Jin-Gu Kang _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu ht...
2011 Mar 25
1
[LLVMdev] Named metadata to represent language specific logic
Hi all, I was wondering if we could use named metadata to store some of C++ logic without changing the IR. This is primarily only for front-end buiding and the resulting IR (with or without metadata) should be the same as it is today (or better). I say this because of the number of global variables front-ends need to keep because LLVM IR cannot represent all the information of types, vatriables,
2011 Feb 26
17
[LLVMdev] LLVM IR Type System Rewrite
Several people have been proding me to write up my thoughts on how to fix the IR type system for LLVM 3.0. Here are some (fairly stream of conscious) thoughts on the matter: http://nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt Comments welcome! -Chris