From: Puyan Lotfi Date: Wed, 2 Jul 2014 17:33:00 +0000 (+0000) Subject: Just adding a getHalfTy method to IRBuilder for completeness. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=411b036f8b497f7869ca042518e9eb379ad0c303;p=llvm Just adding a getHalfTy method to IRBuilder for completeness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212195 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index cedb87cdb7c..00d368402a7 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -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);