Skip to content

Commit c7e4457

Browse files
committed
Just adding a getHalfTy method to IRBuilder for completeness.
llvm-svn: 212195
1 parent c4db656 commit c7e4457

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/IR/IRBuilder.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,11 @@ class IRBuilderBase {
327327
return Type::getIntNTy(Context, N);
328328
}
329329

330+
/// \brief Fetch the type representing a 16-bit floating point value.
331+
Type *getHalfTy() {
332+
return Type::getHalfTy(Context);
333+
}
334+
330335
/// \brief Fetch the type representing a 32-bit floating point value.
331336
Type *getFloatTy() {
332337
return Type::getFloatTy(Context);

0 commit comments

Comments
 (0)