diff options
| author | Puyan Lotfi <puyan@puyan.org> | 2014-07-02 17:33:00 +0000 |
|---|---|---|
| committer | Puyan Lotfi <puyan@puyan.org> | 2014-07-02 17:33:00 +0000 |
| commit | c7e4457a31d5a2e786addfda68ee60a01bafc06b (patch) | |
| tree | 8e07d187bc784c68c2df44ef28c0867436dd1f88 | |
| parent | c4db656221f5038753f5636589b0a98e669eae63 (diff) | |
| download | bcm5719-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.h | 5 |
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); |

