Just adding a getHalfTy method to IRBuilder for completeness.

llvm-svn: 212195
This commit is contained in:
Puyan Lotfi 2014-07-02 17:33:00 +00:00
parent c4db656221
commit c7e4457a31
1 changed files with 5 additions and 0 deletions

View File

@ -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);