aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/IRBuilder.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index e216d4c956..549b89eda5 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -124,6 +124,42 @@ public:
}
//===--------------------------------------------------------------------===//
+ // Type creation methods
+ //===--------------------------------------------------------------------===//
+
+ const Type *getInt1Ty() {
+ return Type::getInt1Ty(Context);
+ }
+
+ const Type *getInt8Ty() {
+ return Type::getInt8Ty(Context);
+ }
+
+ const Type *getInt16Ty() {
+ return Type::getInt16Ty(Context);
+ }
+
+ const Type *getInt32Ty() {
+ return Type::getInt32Ty(Context);
+ }
+
+ const Type *getInt64Ty() {
+ return Type::getInt64Ty(Context);
+ }
+
+ const Type *getFloatTy() {
+ return Type::getFloatTy(Context);
+ }
+
+ const Type *getDoubleTy() {
+ return Type::getDoubleTy(Context);
+ }
+
+ const Type *getVoidTy() {
+ return Type::getVoidTy(Context);
+ }
+
+ //===--------------------------------------------------------------------===//
// Instruction creation methods: Terminators
//===--------------------------------------------------------------------===//