[llvm] CSKY: Consume "float-abi" module flag (PR #212975)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 08:44:15 PDT 2026
================
@@ -89,10 +89,12 @@ CSKYSubtarget &CSKYSubtarget::initializeSubtargetDependencies(
}
CSKYSubtarget::CSKYSubtarget(const Triple &TT, StringRef CPU, StringRef TuneCPU,
- StringRef FS, const TargetMachine &TM)
+ StringRef FS, FloatABI::ABIType FloatABI,
+ const TargetMachine &TM)
: CSKYGenSubtargetInfo(TT, CPU, TuneCPU, FS),
FrameLowering(initializeSubtargetDependencies(TT, CPU, TuneCPU, FS)),
- InstrInfo(*this, RegInfo), TLInfo(TM, *this) {
+ InstrInfo(*this, RegInfo), TLInfo(TM, *this),
+ UseHardFloatABI(FloatABI == FloatABI::Hard) {
----------------
s-barannikov wrote:
This overwrites the value that was set by initializeSubtargetDependencies. Is this intended?
This makes the corresponding subtarget feature dead.
https://github.com/llvm/llvm-project/pull/212975
More information about the llvm-commits
mailing list