[llvm] [MCA] Enable customization of individual instructions (PR #155420)

Roman Belenov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 00:53:40 PDT 2025


================
@@ -42,19 +43,91 @@ CustomBehaviour::getEndViews(llvm::MCInstPrinter &IP,
   return std::vector<std::unique_ptr<View>>();
 }
 
+class CustomInstrument : public Instrument {
----------------
r-belenov wrote:

Also, supportsIntrumentType() is normally overridden in target-specific IMs, while we need to check for both common and target specific instruments.

https://github.com/llvm/llvm-project/pull/155420


More information about the llvm-commits mailing list