summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-06 23:44:32 +0000
committerDevang Patel <dpatel@apple.com>2009-07-06 23:44:32 +0000
commit5832e7fd23ecb2234827eff9493a52563ac10c88 (patch)
treee46ca7fa006265ac8509347c3cc70048cb8136a0 /llvm/utils/TableGen
parent78b7c1bfe7082afc4bcab99df80c36c31939acac (diff)
downloadbcm5719-llvm-5832e7fd23ecb2234827eff9493a52563ac10c88.tar.gz
bcm5719-llvm-5832e7fd23ecb2234827eff9493a52563ac10c88.zip
Add new ValueType for metadata.
llvm-svn: 74882
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp1
-rw-r--r--llvm/utils/TableGen/IntrinsicEmitter.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index c17cd0eef2d..c449660c429 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/utils/TableGen/CodeGenTarget.cpp
@@ -118,6 +118,7 @@ std::string llvm::getEnumName(MVT::SimpleValueType T) {
case MVT::v4f64: return "MVT::v4f64";
case MVT::v3i32: return "MVT::v3i32";
case MVT::v3f32: return "MVT::v3f32";
+ case MVT::Metadata: return "MVT::Metadata";
case MVT::iPTR: return "MVT::iPTR";
case MVT::iPTRAny: return "MVT::iPTRAny";
default: assert(0 && "ILLEGAL VALUE TYPE!"); return "";
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index 36768316bc0..f4157bb4609 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -159,6 +159,8 @@ static void EmitTypeForValueType(raw_ostream &OS, MVT::SimpleValueType VT) {
OS << "Type::PPC_FP128Ty";
} else if (VT == MVT::isVoid) {
OS << "Type::VoidTy";
+ } else if (VT == MVT::Metadata) {
+ OS << "Type::MetadataTy";
} else {
assert(false && "Unsupported ValueType!");
}
OpenPOWER on IntegriCloud