Just adding a getHalfTy method to IRBuilder for completeness.
authorPuyan Lotfi <puyan@puyan.org>
Wed, 2 Jul 2014 17:33:00 +0000 (17:33 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Wed, 2 Jul 2014 17:33:00 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212195 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/IRBuilder.h

index cedb87cdb7ccf819a3bf8790b37b0d4e26916ca8..00d368402a7c0aac624cae9441fcd66b25111cc2 100644 (file)
@@ -327,6 +327,11 @@ public:
     return Type::getIntNTy(Context, N);
   }
 
+  /// \brief Fetch the type representing a 16-bit floating point value.
+  Type *getHalfTy() {
+    return Type::getHalfTy(Context);
+  }
+
   /// \brief Fetch the type representing a 32-bit floating point value.
   Type *getFloatTy() {
     return Type::getFloatTy(Context);