Make structs and arrays first-class types, and add assembly

and bitcode support for the extractvalue and insertvalue
instructions and constant expressions.

Note that this does not yet include CodeGen support.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-05-23 01:55:30 +00:00
parent 8f8e269270
commit e4977cf750
13 changed files with 1680 additions and 1285 deletions

View File

@@ -216,8 +216,8 @@ public:
/// is a valid type for a Value.
///
inline bool isFirstClassType() const {
// Coming soon: first-class struct and array types...
return isSingleValueType();
return isSingleValueType() ||
ID == StructTyID || ID == ArrayTyID;
}
/// isSingleValueType - Return true if the type is a valid type for a