[llvm] r212195 - Just adding a getHalfTy method to IRBuilder for completeness.
Puyan Lotfi
puyan at puyan.org
Wed Jul 2 10:33:01 PDT 2014
Author: zer0
Date: Wed Jul 2 12:33:00 2014
New Revision: 212195
URL: http://llvm.org/viewvc/llvm-project?rev=212195&view=rev
Log:
Just adding a getHalfTy method to IRBuilder for completeness.
Modified:
llvm/trunk/include/llvm/IR/IRBuilder.h
Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=212195&r1=212194&r2=212195&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Wed Jul 2 12:33:00 2014
@@ -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);
More information about the llvm-commits
mailing list