search for: createstructtype

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

2014 Dec 18
2
[LLVMdev] question about the DIBuilder::createStructType
...mation, I'm not clear about two things: [1] Could you help explain the meaning and the difference between"alignment" and "offset" of a type ? e.g class Actor{ int age; const char* name; } Besides, I found the denotation of createMemberType and createStructType both have "Member Alignment" and "Member Size" fields, are they the same thing ? If they are, then for the "Actor", which member is it referring to ? [2] In createMemberType, the last arg “Ty” is parent type, does it mean "Actor" in the example ? thanks --...
2014 Dec 19
2
[LLVMdev] question about the DIBuilder::createStructType
..., and to think about how that variable is laid out in > store. > > You must use createMemberType to create a DIType for *each* field (aka > member) in the structure; you then store those DIType's as the elements of > a DIArray which you pass as the 'Elements' parameter to createStructType. > > When creating a structure member, you have to specify this information : > > SizeinBits - the actual size of the member > OffsetInBits - the number of bits between the start of the > member in the layout of the structure and the start of the s...
2014 Sep 11
3
[LLVMdev] patch for DragonEgg 3.3
Hi - attached is a patch to enable building DragonEgg (x86_64) for LLVM3.3 and LLVM3.4. That is, add these changes to the 3.3 release, and it becomes possible to build DragonEgg against a llvm3.4 compiler. Regards, Richard Gorton Cognitive Electronics rcgorton at cog-e.com ---------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name:
2016 Feb 24
0
How to resolve debug info forward types
...dwarf::DW_TAG_structure_type, name, m_DICompileUnit, file, loc.m_Line); And then, once the final value of the temporary is known (and you GOTTA do this step otherwise you get an assert): DICompositeType *result = m_DIBuilder->createStructType( m_DICompileUnit, name, file, loc.m_Line, sizeOf(actual) * 8, alignOf(actual) * 8, 0, nullptr, elts); it = m_TmpStructDI.find(name); if (it != m_TmpStructDI.end()) { MDNode *node = /* the result from c...
2016 Feb 24
3
How to resolve debug info forward types
Before metadata was separated from values, I could create a debug info forward declaration and eventually resolve it using LLVMReplaceAllUsesWith in core.h. Now, I can't figure out how to resolve it. I can find no function that seems to do this. My one wild guess that giving the forward decl and the resolving decl the same UniqueId might do it is not working. I am currently using 3.6.1, but