projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add X86 MMX type to bitcode and Type.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
TypeBuilder.h
diff --git
a/include/llvm/Support/TypeBuilder.h
b/include/llvm/Support/TypeBuilder.h
index 81c2747b6c05a485fe2390b36ed1471fe7be9d5a..ea63da00edcdb417dcd529a2aa27c26b993d7cc4 100644
(file)
--- a/
include/llvm/Support/TypeBuilder.h
+++ b/
include/llvm/Support/TypeBuilder.h
@@
-88,6
+88,8
@@
class ieee_double {};
class x86_fp80 {};
class fp128 {};
class ppc_fp128 {};
class x86_fp80 {};
class fp128 {};
class ppc_fp128 {};
+// X86 MMX.
+class x86_mmx {};
} // namespace types
// LLVM doesn't have const or volatile types.
} // namespace types
// LLVM doesn't have const or volatile types.
@@
-219,6
+221,10
@@
template<bool cross> class TypeBuilder<types::ppc_fp128, cross> {
public:
static const Type *get(LLVMContext& C) { return Type::getPPC_FP128Ty(C); }
};
public:
static const Type *get(LLVMContext& C) { return Type::getPPC_FP128Ty(C); }
};
+template<bool cross> class TypeBuilder<types::x86_mmx, cross> {
+public:
+ static const Type *get(LLVMContext& C) { return Type::getX86_MMXTy(C); }
+};
template<bool cross> class TypeBuilder<void, cross> {
public:
template<bool cross> class TypeBuilder<void, cross> {
public: