mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-10 02:38:50 +00:00
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
This commit is contained in:
parent
445c89a83c
commit
9491c16e14
@ -62,6 +62,12 @@ class Value {
|
|||||||
const unsigned char SubclassID; // Subclass identifier (for isa/dyn_cast)
|
const unsigned char SubclassID; // Subclass identifier (for isa/dyn_cast)
|
||||||
unsigned char HasValueHandle : 1; // Has a ValueHandle pointing to this?
|
unsigned char HasValueHandle : 1; // Has a ValueHandle pointing to this?
|
||||||
protected:
|
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
|
/// 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.
|
/// anything. Subclasses can use it to hold whatever state they find useful.
|
||||||
/// This field is initialized to zero by the ctor.
|
/// This field is initialized to zero by the ctor.
|
||||||
|
@ -40,7 +40,8 @@ static inline const Type *checkType(const Type *Ty) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Value::Value(const Type *ty, unsigned scid)
|
Value::Value(const Type *ty, unsigned scid)
|
||||||
: SubclassID(scid), HasValueHandle(0), SubclassData(0), VTy(checkType(ty)),
|
: SubclassID(scid), HasValueHandle(0), SubclassOptionalData(0),
|
||||||
|
SubclassData(0), VTy(checkType(ty)),
|
||||||
UseList(0), Name(0) {
|
UseList(0), Name(0) {
|
||||||
if (isa<CallInst>(this) || isa<InvokeInst>(this))
|
if (isa<CallInst>(this) || isa<InvokeInst>(this))
|
||||||
assert((VTy->isFirstClassType() || VTy == Type::VoidTy ||
|
assert((VTy->isFirstClassType() || VTy == Type::VoidTy ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user