aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-11-17 21:44:42 +0000
committerNate Begeman <natebegeman@mac.com>2005-11-17 21:44:42 +0000
commit395cba8d41a170e86d16d37ec4c31f6e441b82f6 (patch)
tree40885e36018491e8d9f5f266a2953779b0d9e03b
parent9542f9714e4b4b1c5cf7b0faef40c67af1f1e0bb (diff)
Teach the type lowering code about turning packed types into vector types.
Next step: generating vector dag nodes, and legalizing them into scalar code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24404 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/ValueTypes.h14
-rw-r--r--include/llvm/Target/TargetLowering.h1
2 files changed, 10 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h
index 91c3526f0d..600c188868 100644
--- a/include/llvm/CodeGen/ValueTypes.h
+++ b/include/llvm/CodeGen/ValueTypes.h
@@ -36,13 +36,17 @@ namespace MVT { // MVT = Machine Value Types
i64 = 5, // This is a 64 bit integer value
i128 = 6, // This is a 128 bit integer value
- f32 = 7, // This is a 32 bit floating point value
- f64 = 8, // This is a 64 bit floating point value
- f80 = 9, // This is a 80 bit floating point value
- f128 = 10, // This is a 128 bit floating point value
+ f32 = 7, // This is a 32 bit floating point value
+ f64 = 8, // This is a 64 bit floating point value
+ f80 = 9, // This is a 80 bit floating point value
+ f128 = 10, // This is a 128 bit floating point value
Flag = 11, // This is a condition code or machine flag.
- isVoid = 12, // This has no value
+ isVoid = 12, // This has no value
+
+ Vector = 13, // This is an abstract vector type, which will
+ // be refined into a target vector type, or
+ // scalarized.
LAST_VALUETYPE, // This always remains at the end of the list.
};
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 734eda042b..08865e0927 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -189,6 +189,7 @@ public:
case Type::FloatTyID: return MVT::f32;
case Type::DoubleTyID: return MVT::f64;
case Type::PointerTyID: return PointerTy;
+ case Type::PackedTyID: return MVT::Vector;
}
}