R600/SI: Determine target-specific encoding of READLANE and WRITELANE early v2
[oota-llvm.git] / lib / Target / R600 / AMDGPUInstrInfo.h
index e28ce0f03acc674ed383345a569352fc895197b9..202183c18a8da430c848afec26707e186b0ad780 100644 (file)
@@ -140,6 +140,12 @@ public:
   /// not exist. If Opcode is not a pseudo instruction, this is identity.
   int pseudoToMCOpcode(int Opcode) const;
 
+  /// \brief Return the descriptor of the target-specific machine instruction
+  /// that corresponds to the specified pseudo or native opcode.
+  const MCInstrDesc &getMCOpcodeFromPseudo(unsigned Opcode) const {
+    return get(pseudoToMCOpcode(Opcode));
+  }
+
 //===---------------------------------------------------------------------===//
 // Pure virtual funtions to be implemented by sub-classes.
 //===---------------------------------------------------------------------===//