diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-24 00:31:16 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-24 00:31:16 +0000 |
commit | 94ed4d42f8ef85ce2ac1424682a5575025d1fb92 (patch) | |
tree | aedd58be09d666dccafad1fa831f5165cc6afcf7 /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | acf7c47e640c028c830466f9171908260c67e06b (diff) | |
download | llvm-94ed4d42f8ef85ce2ac1424682a5575025d1fb92.zip llvm-94ed4d42f8ef85ce2ac1424682a5575025d1fb92.tar.gz llvm-94ed4d42f8ef85ce2ac1424682a5575025d1fb92.tar.bz2 |
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.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index e3a05d0..38e2b83 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -287,7 +287,8 @@ void CGIOperandList::ProcessDisableEncoding(std::string DisableEncoding) { // CodeGenInstruction Implementation //===----------------------------------------------------------------------===// -CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R), Operands(R) { +CodeGenInstruction::CodeGenInstruction(Record *R) + : TheDef(R), Operands(R), InferredFrom(0) { Namespace = R->getValueAsString("Namespace"); AsmString = R->getValueAsString("AsmString"); |