[all-commits] [llvm/llvm-project] 977880: [RISCV] Make it explicit that attributes use the M...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jan 18 11:32:11 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9778802cb0f62d9e8588117b0a444d3d5c874250
https://github.com/llvm/llvm-project/commit/9778802cb0f62d9e8588117b0a444d3d5c874250
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-01-18 (Wed, 18 Jan 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
Log Message:
-----------
[RISCV] Make it explicit that attributes use the MCSubtargetInfo from TargetMachine. NFC
The MCSTI variable is initialized to TM.getMCSubtargetInfo(), but is
re-assigned in every call to runOnMachineFunction. emitAttributes is
called before any call to runOnMachineFunction, but it's not
immediately obvious.
This patch removes the MCSTI variable, and instead queries
TM.getMCSubtargetInfo() at the time emitAttributes is called.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D142037
More information about the All-commits
mailing list