diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-17 18:56:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-17 18:56:23 +0000 |
commit | 47128fe2969b90880c5ffdbeb8c699a06bbaa9f9 (patch) | |
tree | 22a3a4b2d87abee6f972a7374380936ec0f10b23 /include/llvm/Value.h | |
parent | 0cb896a8f80cc988128b59103e64957c5e2ea08a (diff) | |
download | llvm-47128fe2969b90880c5ffdbeb8c699a06bbaa9f9.tar.gz llvm-47128fe2969b90880c5ffdbeb8c699a06bbaa9f9.tar.bz2 llvm-47128fe2969b90880c5ffdbeb8c699a06bbaa9f9.tar.xz |
Add a method to clear optional optimization information from a Value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 35a30a81d5..7e7b415ffd 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -146,6 +146,12 @@ 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. // |