diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-06 23:44:32 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-06 23:44:32 +0000 |
commit | bee9e35ba25c0f1c4fba7e4b01fef29dbfd859f3 (patch) | |
tree | fb53a884ba749934502cbb1171a0a42cac7b57c6 /utils/TableGen | |
parent | a41a5dc3b761c175b21c3c2b18efb0edc07567de (diff) | |
download | external_llvm-bee9e35ba25c0f1c4fba7e4b01fef29dbfd859f3.zip external_llvm-bee9e35ba25c0f1c4fba7e4b01fef29dbfd859f3.tar.gz external_llvm-bee9e35ba25c0f1c4fba7e4b01fef29dbfd859f3.tar.bz2 |
Add new ValueType for metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 1 | ||||
-rw-r--r-- | utils/TableGen/IntrinsicEmitter.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index c17cd0e..c449660 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/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/utils/TableGen/IntrinsicEmitter.cpp b/utils/TableGen/IntrinsicEmitter.cpp index 3676831..f4157bb 100644 --- a/utils/TableGen/IntrinsicEmitter.cpp +++ b/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!"); } |