summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-12-20 02:04:49 +0000
committerEric Christopher <echristo@gmail.com>2013-12-20 02:04:49 +0000
commitc0a5aaeab0de2cd345efb6afb372d7dff2c36ee7 (patch)
tree5ff6a35959b8896adfaeb7f1c80e4610dd6ba2f5 /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent78f80710decdcb838a57e24e8a085891e4f66481 (diff)
downloadbcm5719-llvm-c0a5aaeab0de2cd345efb6afb372d7dff2c36ee7.tar.gz
bcm5719-llvm-c0a5aaeab0de2cd345efb6afb372d7dff2c36ee7.zip
[x86] Rename In32BitMode predicate to Not64BitMode
That's what it actually means, and with 16-bit support it's going to be a little more relevant since in a few corner cases we may actually want to distinguish between 16-bit and 32-bit mode (for example the bare 'push' aliases to pushw/pushl etc.) Patch by David Woodhouse llvm-svn: 197768
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index 6b5123a4963..3472c8a046c 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -265,11 +265,12 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables,
// FIXME: Is there some better way to check for In64BitMode?
std::vector<Record*> Predicates = Rec->getValueAsListOfDefs("Predicates");
for (unsigned i = 0, e = Predicates.size(); i != e; ++i) {
- if (Predicates[i]->getName().find("32Bit") != Name.npos) {
+ if (Predicates[i]->getName().find("Not64Bit") != Name.npos ||
+ Predicates[i]->getName().find("In32Bit") != Name.npos) {
Is32Bit = true;
break;
}
- if (Predicates[i]->getName().find("64Bit") != Name.npos) {
+ if (Predicates[i]->getName().find("In64Bit") != Name.npos) {
Is64Bit = true;
break;
}
OpenPOWER on IntegriCloud