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

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 09:01:17 PDT 2025


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

> unless all target IMs call base class createInstrument for unrecognized types.

yes, thats what i meant when I said "call this base implementation for the target-specific override, if a target overrides it"

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


More information about the llvm-commits mailing list