[llvm-branch-commits] [llvm-branch] r104353 - in /llvm/branches/Apple/whitney: include/llvm/Target/Target.td utils/TableGen/X86RecognizableInstr.cpp
Daniel Dunbar
daniel at zuster.org
Fri May 21 12:06:38 PDT 2010
Author: ddunbar
Date: Fri May 21 14:06:38 2010
New Revision: 104353
URL: http://llvm.org/viewvc/llvm-project?rev=104353&view=rev
Log:
tblgen/Target: Add a isAsmParserOnly bit, and teach the disassembler to honor it.
Modified:
llvm/branches/Apple/whitney/include/llvm/Target/Target.td
llvm/branches/Apple/whitney/utils/TableGen/X86RecognizableInstr.cpp
Modified: llvm/branches/Apple/whitney/include/llvm/Target/Target.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/include/llvm/Target/Target.td?rev=104353&r1=104352&r2=104353&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/include/llvm/Target/Target.td (original)
+++ llvm/branches/Apple/whitney/include/llvm/Target/Target.td Fri May 21 14:06:38 2010
@@ -221,6 +221,9 @@
// purposes.
bit isCodeGenOnly = 0;
+ // Is this instruction a pseudo instruction for use by the assembler parser.
+ bit isAsmParserOnly = 0;
+
InstrItinClass Itinerary = NoItinerary;// Execution steps used for scheduling.
string Constraints = ""; // OperandConstraint, e.g. $src = $dst.
Modified: llvm/branches/Apple/whitney/utils/TableGen/X86RecognizableInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/whitney/utils/TableGen/X86RecognizableInstr.cpp?rev=104353&r1=104352&r2=104353&view=diff
==============================================================================
--- llvm/branches/Apple/whitney/utils/TableGen/X86RecognizableInstr.cpp (original)
+++ llvm/branches/Apple/whitney/utils/TableGen/X86RecognizableInstr.cpp Fri May 21 14:06:38 2010
@@ -230,6 +230,10 @@
const CodeGenInstruction &insn,
InstrUID uid)
{
+ // Ignore "asm parser only" instructions.
+ if (insn.TheDef->getValueAsBit("isAsmParserOnly"))
+ return;
+
RecognizableInstr recogInstr(tables, insn, uid);
recogInstr.emitInstructionSpecifier(tables);
More information about the llvm-branch-commits
mailing list