diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-07 23:54:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-07 23:54:19 +0000 |
commit | f8dbee7cea072eb63ae343759975109553697bcb (patch) | |
tree | a200a06bc5c88ef39c60b3fab3b1d76c3052c8e6 /include/llvm/Value.h | |
parent | fd06aa7c076f397b307ddd638a2666f4090ee2b1 (diff) | |
download | llvm-f8dbee7cea072eb63ae343759975109553697bcb.tar.gz llvm-f8dbee7cea072eb63ae343759975109553697bcb.tar.bz2 llvm-f8dbee7cea072eb63ae343759975109553697bcb.tar.xz |
Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index fdc3aeb956..415b8fbb2b 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -146,12 +146,6 @@ public: // Only use when in type resolution situations! void uncheckedReplaceAllUsesWith(Value *V); - /// clearOptionalData - Clear any optional optimization data from this Value. - /// Transformation passes must call this method whenever changing the IR - /// in a way that would affect the values produced by this Value, unless - /// it takes special care to ensure correctness in some other way. - void clearOptionalData() { SubclassOptionalData = 0; } - //---------------------------------------------------------------------- // Methods for handling the chain of uses of this Value. // @@ -240,6 +234,13 @@ public: return SubclassID; } + /// getRawSubclassOptionalData - Return the raw optional flags value + /// contained in this value. This should only be used when testing two + /// Values for equivalence. + unsigned getRawSubclassOptionalData() const { + return SubclassOptionalData; + } + /// hasSameSubclassOptionalData - Test whether the optional flags contained /// in this value are equal to the optional flags in the given value. bool hasSameSubclassOptionalData(const Value *V) const { |