[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 "BPFGenInstrInfo.inc"
namespace llvm {
+class BPFSubtarget;
class BPFInstrInfo : public BPFGenInstrInfo {
const BPFRegisterInfo RI;
public:
- BPFInstrInfo();
+ BPFInstrInfo(const BPFSubtarget &STI);
----------------
s-barannikov wrote:
```suggestion
explicit BPFInstrInfo(const BPFSubtarget &STI);
```
https://github.com/llvm/llvm-project/pull/157337
More information about the llvm-commits
mailing list