move target-independent opcodes out of TargetInstrInfo
into TargetOpcodes.h. #include the new TargetOpcodes.h
into MachineInstr. Add new inline accessors (like isPHI())
to MachineInstr, and start using them throughout the
codebase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95687 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ca2085f..570916f 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -348,18 +348,18 @@
processDebugLoc(II, true);
switch (II->getOpcode()) {
- case TargetInstrInfo::DBG_LABEL:
- case TargetInstrInfo::EH_LABEL:
- case TargetInstrInfo::GC_LABEL:
+ case TargetOpcode::DBG_LABEL:
+ case TargetOpcode::EH_LABEL:
+ case TargetOpcode::GC_LABEL:
printLabelInst(II);
break;
- case TargetInstrInfo::INLINEASM:
+ case TargetOpcode::INLINEASM:
printInlineAsm(II);
break;
- case TargetInstrInfo::IMPLICIT_DEF:
+ case TargetOpcode::IMPLICIT_DEF:
printImplicitDef(II);
break;
- case TargetInstrInfo::KILL:
+ case TargetOpcode::KILL:
printKill(II);
break;
default: