search for: calctypenam

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

Did you mean: calctypename
2005 Jun 06
1
[LLVMdev] one question about up reference
hi, I have one question about up reference, why use \nested_level_count in type description. and have to handle it in HandleUpRefs() (AsmParser/llvmAsmParser.y) , why not just insert type name and return in calcTypeName() (AsmWriter.cpp) ; As you mention in "How to build recursively type" , %mylist = type { %mylist*, int } is accepted . Is it neccessary to use \nested_level_count ? I'm very thankful if you can give me some C code example to show it .         aqex         aqex at bsv.com....
2006 Dec 08
0
[LLVMdev] Proposed: first class packed structures
...{ return T->getTypeID() == StructTyID; } + + virtual bool isPacked() const { return packed; } This doesn't need to be virtual. --- lib/VMCore/AsmWriter.cpp 6 Dec 2006 06:40:49 -0000 1.226 +++ lib/VMCore/AsmWriter.cpp 6 Dec 2006 18:03:06 -0000 @@ -286,18 +286,22 @@ static void calcTypeName(const Type *Ty, Result += ")"; break; } case Type::StructTyID: { const StructType *STy = cast<StructType>(Ty); + if (STy->isPacked()) + Result += "<"; Result += "{ "; for (StructType::element_iterator I = STy-&...
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
2005 Jun 07
0
[LLVMdev] one question about up reference
...道:======= >On Mon, 6 Jun 2005, aqex wrote: >> hi, >> I have one question about up reference, why use \nested_level_count in type description. >> and have to handle it in HandleUpRefs() (AsmParser/llvmAsmParser.y) , >> >> why not just insert type name and return in calcTypeName() (AsmWriter.cpp) ; >> >> As you mention in "How to build recursively type" , >> >> %mylist = type { %mylist*, int } is accepted . >> >> Is it neccessary to use \nested_level_count ? >> >> I'm very thankful if you can give me some C co...
2011 Feb 15
3
[LLVMdev] Structure Types and ABI sizes
Hi all, We're hitting some walls here when generating the correct structure layout for specific C++ ABI requirements, and I was wondering how much StructLayout could help. For instance, the ABI has some complicated rules on the size of derived classes (http://www.codesourcery.com/public/cxx-abi/abi.html#class-types) and LLVM struct type cannot reflect that in full. Example: // CHECK: