aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-19 00:57:40 +0000
committerChris Lattner <sabre@nondot.org>2004-07-19 00:57:40 +0000
commit66a434692b63ac76c99a0d259c7fedc0b75a1d6a (patch)
treec59bf85233c34fcc6875df17fc21506d91f485b3
parentf8083b7f20e0985b3c1848d25a56b1f527c0a255 (diff)
Add new enum entries for ConstantAggregateZeroVal/ConstantExprVal and
rename ConstantVal to SimpleConstantVal git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14984 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Value.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 8d70933926..73501995fd 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -122,13 +122,15 @@ public:
/// (and Instruction must be last).
///
enum ValueTy {
- ArgumentVal, // This is an instance of Argument
- BasicBlockVal, // This is an instance of BasicBlock
- FunctionVal, // This is an instance of Function
- GlobalVariableVal, // This is an instance of GlobalVariable
- ConstantVal, // This is an instance of Constant
- InstructionVal, // This is an instance of Instruction
- ValueListVal // This is for bcreader, a special ValTy
+ ArgumentVal, // This is an instance of Argument
+ BasicBlockVal, // This is an instance of BasicBlock
+ FunctionVal, // This is an instance of Function
+ GlobalVariableVal, // This is an instance of GlobalVariable
+ ConstantExprVal, // This is an instance of ConstantExpr
+ ConstantAggregateZeroVal, // This is an instance of ConstantAggregateNull
+ SimpleConstantVal, // This is some other type of Constant
+ InstructionVal, // This is an instance of Instruction
+ ValueListVal // This is for bcreader, a special ValTy
};
unsigned getValueType() const {
return SubclassID;
@@ -178,7 +180,9 @@ void Use::set(Value *V) {
// the subtype header files to test to see if the value is a subclass...
//
template <> inline bool isa_impl<Constant, Value>(const Value &Val) {
- return Val.getValueType() == Value::ConstantVal ||
+ return Val.getValueType() == Value::ConstantExprVal ||
+ Val.getValueType() == Value::SimpleConstantVal ||
+ Val.getValueType() == Value::ConstantAggregateZeroVal ||
Val.getValueType() == Value::FunctionVal ||
Val.getValueType() == Value::GlobalVariableVal;
}