aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-04-09 21:01:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-04-09 21:01:02 +0000
commit1808e4d251005b122b1d3f7a08a01a55c328da1c (patch)
tree76e89c61ebcf2fbe16fc10f9edfa05f061856c3f /utils/TableGen/Record.h
parente3a39d40db3893be37107356f0c1680bef8a8ec1 (diff)
downloadexternal_llvm-1808e4d251005b122b1d3f7a08a01a55c328da1c.zip
external_llvm-1808e4d251005b122b1d3f7a08a01a55c328da1c.tar.gz
external_llvm-1808e4d251005b122b1d3f7a08a01a55c328da1c.tar.bz2
If all the bit positions are not specified; do not decode the instructions.
We are bound to fail! For proper disassembly, the well-known encoding bits of the instruction must be fully specified. This also removes pseudo instructions from considerations of disassembly, which is a better design and less fragile than the name matchings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index 55c1a80..576d626 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -609,6 +609,11 @@ public:
if (!getBit(i)->isComplete()) return false;
return true;
}
+ bool allInComplete() const {
+ for (unsigned i = 0; i != getNumBits(); ++i)
+ if (getBit(i)->isComplete()) return false;
+ return true;
+ }
virtual std::string getAsString() const;
virtual Init *resolveReferences(Record &R, const RecordVal *RV);