mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Add helpers for fetching basic types.
llvm-svn: 78969
This commit is contained in:
parent
22969c64d0
commit
c78a800e7e
@ -123,6 +123,42 @@ public:
|
||||
I->setName(Name);
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Type creation methods
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
const Type *getInt1Ty() {
|
||||
return Type::getInt1Ty(Context);
|
||||
}
|
||||
|
||||
const Type *getInt8Ty() {
|
||||
return Type::getInt8Ty(Context);
|
||||
}
|
||||
|
||||
const Type *getInt16Ty() {
|
||||
return Type::getInt16Ty(Context);
|
||||
}
|
||||
|
||||
const Type *getInt32Ty() {
|
||||
return Type::getInt32Ty(Context);
|
||||
}
|
||||
|
||||
const Type *getInt64Ty() {
|
||||
return Type::getInt64Ty(Context);
|
||||
}
|
||||
|
||||
const Type *getFloatTy() {
|
||||
return Type::getFloatTy(Context);
|
||||
}
|
||||
|
||||
const Type *getDoubleTy() {
|
||||
return Type::getDoubleTy(Context);
|
||||
}
|
||||
|
||||
const Type *getVoidTy() {
|
||||
return Type::getVoidTy(Context);
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Instruction creation methods: Terminators
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user