[llvm] CodeGen: Add subtarget to TargetLoweringBase constructor (PR #168620)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 01:47:38 PST 2025
================
@@ -41,8 +41,9 @@ using namespace llvm;
using namespace llvm::SDPatternMatch;
/// NOTE: The TargetMachine owns TLOF.
-TargetLowering::TargetLowering(const TargetMachine &tm)
- : TargetLoweringBase(tm) {}
+TargetLowering::TargetLowering(const TargetMachine &tm,
+ const TargetSubtargetInfo &sti)
+ : TargetLoweringBase(tm, sti) {}
----------------
s-barannikov wrote:
```suggestion
const TargetSubtargetInfo &STI)
: TargetLoweringBase(tm, STI) {}
```
https://github.com/llvm/llvm-project/pull/168620
More information about the llvm-commits
mailing list