mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 09:27:27 +00:00
Add accessor for getting UndefValue's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e27be3aae9
commit
480752e9f6
@ -30,6 +30,7 @@ class ConstantAggregateZero;
|
|||||||
class ConstantArray;
|
class ConstantArray;
|
||||||
class ConstantFP;
|
class ConstantFP;
|
||||||
class ConstantVector;
|
class ConstantVector;
|
||||||
|
class UndefValue;
|
||||||
class IntegerType;
|
class IntegerType;
|
||||||
class PointerType;
|
class PointerType;
|
||||||
class StructType;
|
class StructType;
|
||||||
@ -57,6 +58,9 @@ public:
|
|||||||
Constant* getNullValue(const Type* Ty);
|
Constant* getNullValue(const Type* Ty);
|
||||||
Constant* getAllOnesValue(const Type* Ty);
|
Constant* getAllOnesValue(const Type* Ty);
|
||||||
|
|
||||||
|
// UndefValue accessors
|
||||||
|
UndefValue* getUndef(const Type* Ty);
|
||||||
|
|
||||||
// ConstantInt accessors
|
// ConstantInt accessors
|
||||||
ConstantInt* getConstantIntTrue();
|
ConstantInt* getConstantIntTrue();
|
||||||
ConstantInt* getConstantIntFalse();
|
ConstantInt* getConstantIntFalse();
|
||||||
|
@ -38,6 +38,11 @@ Constant* LLVMContext::getAllOnesValue(const Type* Ty) {
|
|||||||
return Constant::getAllOnesValue(Ty);
|
return Constant::getAllOnesValue(Ty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// UndefValue accessors.
|
||||||
|
UndefValue* LLVMContext::getUndef(const Type* Ty) {
|
||||||
|
return UndefValue::get(Ty);
|
||||||
|
}
|
||||||
|
|
||||||
// ConstantInt accessors.
|
// ConstantInt accessors.
|
||||||
ConstantInt* LLVMContext::getConstantIntTrue() {
|
ConstantInt* LLVMContext::getConstantIntTrue() {
|
||||||
return ConstantInt::getTrue();
|
return ConstantInt::getTrue();
|
||||||
|
Loading…
Reference in New Issue
Block a user