summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2014-07-02 17:33:00 +0000
committerPuyan Lotfi <puyan@puyan.org>2014-07-02 17:33:00 +0000
commitc7e4457a31d5a2e786addfda68ee60a01bafc06b (patch)
tree8e07d187bc784c68c2df44ef28c0867436dd1f88
parentc4db656221f5038753f5636589b0a98e669eae63 (diff)
downloadbcm5719-llvm-c7e4457a31d5a2e786addfda68ee60a01bafc06b.tar.gz
bcm5719-llvm-c7e4457a31d5a2e786addfda68ee60a01bafc06b.zip
Just adding a getHalfTy method to IRBuilder for completeness.
llvm-svn: 212195
-rw-r--r--llvm/include/llvm/IR/IRBuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index cedb87cdb7c..00d368402a7 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud