projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ec4365
)
Just adding a getHalfTy method to IRBuilder for completeness.
author
Puyan Lotfi
<puyan@puyan.org>
Wed, 2 Jul 2014 17:33:00 +0000
(17:33 +0000)
committer
Puyan 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
patch
|
blob
|
history
diff --git
a/include/llvm/IR/IRBuilder.h
b/include/llvm/IR/IRBuilder.h
index cedb87cdb7ccf819a3bf8790b37b0d4e26916ca8..00d368402a7c0aac624cae9441fcd66b25111cc2 100644
(file)
--- 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);