summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-24 00:31:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-24 00:31:16 +0000
commit94ed4d42f8ef85ce2ac1424682a5575025d1fb92 (patch)
treeaedd58be09d666dccafad1fa831f5165cc6afcf7 /llvm/utils/TableGen/CodeGenInstruction.h
parentacf7c47e640c028c830466f9171908260c67e06b (diff)
downloadbcm5719-llvm-94ed4d42f8ef85ce2ac1424682a5575025d1fb92.tar.gz
bcm5719-llvm-94ed4d42f8ef85ce2ac1424682a5575025d1fb92.zip
Heed guessInstructionProperties, and stop warning on redundant flags.
Emit TableGen errors if guessInstructionProperties is 0 and instruction properties can't be inferred from patterns. Allow explicit instruction properties even when they can be inferred. This patch doesn't change the TableGen output. Redundant properties are not yet verified because the tree has errors. llvm-svn: 162516
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 7637a5b5c8e..f601a8318f5 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -249,6 +249,14 @@ namespace llvm {
bool isCodeGenOnly;
bool isPseudo;
+ /// Are there any undefined flags?
+ bool hasUndefFlags() const {
+ return mayLoad_Unset || mayStore_Unset || hasSideEffects_Unset;
+ }
+
+ // The record used to infer instruction flags, or NULL if no flag values
+ // have been inferred.
+ Record *InferredFrom;
CodeGenInstruction(Record *R);
OpenPOWER on IntegriCloud