summaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-17 17:16:59 +0000
committerDan Gohman <gohman@apple.com>2009-07-17 17:16:59 +0000
commit9491c16e14f9fb56d5d71cd855c2d8c315fbb5ae (patch)
tree9d11324dc2c7b002aeae1439c140e8831d4253ff /include/llvm/Value.h
parent445c89a83c97176179c54bf5fbc344a597f0ed38 (diff)
downloadllvm-9491c16e14f9fb56d5d71cd855c2d8c315fbb5ae.tar.gz
llvm-9491c16e14f9fb56d5d71cd855c2d8c315fbb5ae.tar.bz2
llvm-9491c16e14f9fb56d5d71cd855c2d8c315fbb5ae.tar.xz
Add a SubclassOptionalData field to Value. See the doxygen comment for
details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index a38d8cb8d9..35a30a81d5 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -62,6 +62,12 @@ class Value {
const unsigned char SubclassID; // Subclass identifier (for isa/dyn_cast)
unsigned char HasValueHandle : 1; // Has a ValueHandle pointing to this?
protected:
+ /// SubclassOptionalData - This member is similar to SubclassData, however it
+ /// is for holding information which may be used to aid optimization, but
+ /// which may be cleared to zero without affecting conservative
+ /// interpretation.
+ unsigned char SubclassOptionalData : 7;
+
/// SubclassData - This member is defined by this class, but is not used for
/// anything. Subclasses can use it to hold whatever state they find useful.
/// This field is initialized to zero by the ctor.