CodeGen, Target: Move Mach-O-specific symbol name logic to Mach-O lowering.
[oota-llvm.git] / include / llvm / Target / TargetInstrInfo.h
index b9f85a133a36a09bdb925f1a5ff81fd4a7de41f6..0a35d4178d9cf11721c1dbe510a3477d13c3c074 100644 (file)
@@ -62,6 +62,10 @@ public:
 
   virtual ~TargetInstrInfo();
 
+  static bool isGenericOpcode(unsigned Opc) {
+    return Opc <= TargetOpcode::GENERIC_OP_END;
+  }
+
   /// Given a machine instruction descriptor, returns the register
   /// class constraint for OpNum, or NULL.
   const TargetRegisterClass *getRegClass(const MCInstrDesc &TID,