MIR Serialization: Serialize the target index machine operands.
[oota-llvm.git] / include / llvm / Target / TargetInstrInfo.h
index 893ea9c887c378abc8c819a6887034e649a4e06d..370e85a15c9172351044c6df86369c6080995895 100644 (file)
@@ -1262,6 +1262,16 @@ public:
     return 5;
   }
 
+  /// Return an array that contains the ids of the target indices (used for the
+  /// TargetIndex machine operand) and their names.
+  ///
+  /// MIR Serialization is able to serialize only the target indices that are
+  /// defined by this method.
+  virtual ArrayRef<std::pair<int, const char *>>
+  getSerializableTargetIndices() const {
+    return None;
+  }
+
 private:
   unsigned CallFrameSetupOpcode, CallFrameDestroyOpcode;
 };