summaryrefslogtreecommitdiff
path: root/include/llvm/TableGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-23 19:34:46 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-23 19:34:46 +0000
commitc1f10fd5b9a780d1c42dca7143d7a8acd9bd9377 (patch)
tree46fdaf33b0229d8d1e181de9f10f58281a4facfe /include/llvm/TableGen
parentf104bf65b9d748618d23caa37b2407fe9c2b174c (diff)
downloadllvm-c1f10fd5b9a780d1c42dca7143d7a8acd9bd9377.tar.gz
llvm-c1f10fd5b9a780d1c42dca7143d7a8acd9bd9377.tar.bz2
llvm-c1f10fd5b9a780d1c42dca7143d7a8acd9bd9377.tar.xz
Tristate mayLoad, mayStore, and hasSideEffects.
Keep track of the set/unset state of these bits along with their true/false values, but treat '?' as '0' for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/TableGen')
-rw-r--r--include/llvm/TableGen/Record.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h
index add5131da5..75ca88a1ed 100644
--- a/include/llvm/TableGen/Record.h
+++ b/include/llvm/TableGen/Record.h
@@ -1511,6 +1511,12 @@ public:
///
bool getValueAsBit(StringRef FieldName) const;
+ /// getValueAsBitOrUnset - This method looks up the specified field and
+ /// returns its value as a bit. If the field is unset, sets Unset to true and
+ /// retunrs false.
+ ///
+ bool getValueAsBitOrUnset(StringRef FieldName, bool &Unset) const;
+
/// getValueAsInt - This method looks up the specified field and returns its
/// value as an int64_t, throwing an exception if the field does not exist or
/// if the value is not the right type.