[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 16 11:06:18 PDT 2004
Changes in directory llvm/include/llvm:
Value.h updated: 1.64 -> 1.65
---
Log message:
Add new UndefValueVal type
---
Diffs of the changes: (+6 -4)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.64 llvm/include/llvm/Value.h:1.65
--- llvm/include/llvm/Value.h:1.64 Thu Sep 23 09:49:45 2004
+++ llvm/include/llvm/Value.h Sat Oct 16 13:06:07 2004
@@ -126,6 +126,7 @@
BasicBlockVal, // This is an instance of BasicBlock
FunctionVal, // This is an instance of Function
GlobalVariableVal, // This is an instance of GlobalVariable
+ UndefValueVal, // This is an instance of UndefValue
ConstantExprVal, // This is an instance of ConstantExpr
ConstantAggregateZeroVal, // This is an instance of ConstantAggregateNull
SimpleConstantVal, // This is some other type of Constant
@@ -189,11 +190,12 @@
// 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::ConstantExprVal ||
- Val.getValueType() == Value::SimpleConstantVal ||
- Val.getValueType() == Value::ConstantAggregateZeroVal ||
+ return Val.getValueType() == Value::SimpleConstantVal ||
Val.getValueType() == Value::FunctionVal ||
- Val.getValueType() == Value::GlobalVariableVal;
+ Val.getValueType() == Value::GlobalVariableVal ||
+ Val.getValueType() == Value::ConstantExprVal ||
+ Val.getValueType() == Value::ConstantAggregateZeroVal ||
+ Val.getValueType() == Value::UndefValueVal;
}
template <> inline bool isa_impl<Argument, Value>(const Value &Val) {
return Val.getValueType() == Value::ArgumentVal;
More information about the llvm-commits
mailing list