diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-29 20:43:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-29 20:43:05 +0000 |
commit | a938ac6223c5fd315ab745086d843df5e0604e09 (patch) | |
tree | f227b4a80405e6bbd2ce037939fde9f5a050bdf1 /utils/TableGen/InstrInfoEmitter.cpp | |
parent | 2cfd52c507bd5790457a171eb9bcb39019cc6860 (diff) | |
download | llvm-a938ac6223c5fd315ab745086d843df5e0604e09.tar.gz llvm-a938ac6223c5fd315ab745086d843df5e0604e09.tar.bz2 llvm-a938ac6223c5fd315ab745086d843df5e0604e09.tar.xz |
make ptr_rc derive from a new PointerLikeRegClass tblgen class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 4502da176f..c0e441cc48 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -100,7 +100,7 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) { Res += "0"; // Ptr value whose register class is resolved via callback. - if (OpR->getName() == "ptr_rc") + if (OpR->isSubClassOf("PointerLikeRegClass")) Res += "|(1<<TOI::LookupPtrRegClass)"; // Predicate operands. Check to see if the original unexpanded operand |