[llvm] CodeGen: Pass SubtargetInfo to TargetGenInstrInfo constructors (PR #157337)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 7 05:33:42 PDT 2025
================
@@ -20,12 +20,13 @@
#include "XCoreGenInstrInfo.inc"
namespace llvm {
+class XCoreSubtarget;
class XCoreInstrInfo : public XCoreGenInstrInfo {
const XCoreRegisterInfo RI;
virtual void anchor();
public:
- XCoreInstrInfo();
+ XCoreInstrInfo(const XCoreSubtarget &ST);
----------------
s-barannikov wrote:
```suggestion
explicit XCoreInstrInfo(const XCoreSubtarget &ST);
```
https://github.com/llvm/llvm-project/pull/157337
More information about the llvm-commits
mailing list