[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:43 PDT 2025
================
@@ -1104,7 +1106,8 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
OS << "extern const MCInstrInfo::ComplexDeprecationPredicate " << TargetName
<< "InstrComplexDeprecationInfos[];\n";
OS << ClassName << "::" << ClassName
- << "(unsigned CFSetupOpcode, unsigned CFDestroyOpcode, unsigned "
+ << "(const TargetSubtargetInfo &STI, unsigned CFSetupOpcode, unsigned "
+ "CFDestroyOpcode, unsigned "
"CatchRetOpcode, unsigned ReturnOpcode)\n"
----------------
s-barannikov wrote:
```suggestion
"CFDestroyOpcode, unsigned CatchRetOpcode, unsigned ReturnOpcode)\n"
```
https://github.com/llvm/llvm-project/pull/157337
More information about the llvm-commits
mailing list