Skip to content

Commit 91af5e8

Browse files
committed
fmt
1 parent 15be99f commit 91af5e8

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

llvm/include/llvm/TargetParser/Triple.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ class Triple {
262262
EABIHF,
263263
Android,
264264
Musl,
265-
MuslABIN32, // MIPS N32 ABI
266-
MuslABI64, // MIPS N64 ABI
267-
MuslEABI, // Arm32 EABI
268-
MuslEABIHF, // Arm32 EABI + HF
269-
MuslF32, // LoongArch ILP32F/LP64F
270-
MuslSF, // LoongArch ILP32S/LP64S
271-
MuslX32, // Musl using 32-bit ABI on x86_64
265+
MuslABIN32, // MIPS N32 ABI
266+
MuslABI64, // MIPS N64 ABI
267+
MuslEABI, // Arm32 EABI
268+
MuslEABIHF, // Arm32 EABI + HF
269+
MuslF32, // LoongArch ILP32F/LP64F
270+
MuslSF, // LoongArch ILP32S/LP64S
271+
MuslX32, // Musl using 32-bit ABI on x86_64
272272
LLVM,
273273

274274
MSVC,

llvm/lib/IR/RuntimeLibcalls.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) {
210210
// Unfortunately many platforms only have the `*l` (`long double`) symbols,
211211
// which vary by architecture and compilation flags, so we have to use them
212212
// sometimes.
213-
if(TT.shouldLowerf128AsLongDouble())
213+
if (TT.shouldLowerf128AsLongDouble())
214214
setF128LibcallFormat(F128LibcallFormat::LongDouble);
215215
}
216216

@@ -230,11 +230,13 @@ void RuntimeLibcallsInfo::setF128LibcallFormat(F128LibcallFormat Format) {
230230
setLibcallName(RTLIB::EXP2_F128, UseLD ? "exp2l" : "exp2f128");
231231
setLibcallName(RTLIB::EXP_F128, UseLD ? "expl" : "expf128");
232232
setLibcallName(RTLIB::FLOOR_F128, UseLD ? "floorl" : "floorf128");
233-
setLibcallName(RTLIB::FMAXIMUMNUM_F128, UseLD ? "fmaximum_numl" : "fmaximum_numf128");
233+
setLibcallName(RTLIB::FMAXIMUMNUM_F128,
234+
UseLD ? "fmaximum_numl" : "fmaximum_numf128");
234235
setLibcallName(RTLIB::FMAXIMUM_F128, UseLD ? "fmaximuml" : "fmaximumf128");
235236
setLibcallName(RTLIB::FMAX_F128, UseLD ? "fmaxl" : "fmaxf128");
236237
setLibcallName(RTLIB::FMA_F128, UseLD ? "fmal" : "fmaf128");
237-
setLibcallName(RTLIB::FMINIMUMNUM_F128, UseLD ? "fminimum_numl" : "fminimum_numf128");
238+
setLibcallName(RTLIB::FMINIMUMNUM_F128,
239+
UseLD ? "fminimum_numl" : "fminimum_numf128");
238240
setLibcallName(RTLIB::FMINIMUM_F128, UseLD ? "fminimuml" : "fminimumf128");
239241
setLibcallName(RTLIB::FMIN_F128, UseLD ? "fminl" : "fminf128");
240242
setLibcallName(RTLIB::FREXP_F128, UseLD ? "frexpl" : "frexpf128");

llvm/lib/TargetParser/Triple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ bool Triple::shouldLowerf128AsLongDouble() const {
21752175
// that works, so use those.
21762176
if (isGNUEnvironment())
21772177
return false;
2178-
2178+
21792179
// Windows and Apple always use f64 as `long double`.
21802180
if (isOSWindows() || isOSDarwin())
21812181
return false;

0 commit comments

Comments
 (0)