@@ -88,8 +88,6 @@ class LLVM_LIBRARY_VISIBILITY PPCTargetInfo : public TargetInfo {
88
88
PPCTargetInfo (const llvm::Triple &Triple, const TargetOptions &)
89
89
: TargetInfo(Triple) {
90
90
SuitableAlign = 128 ;
91
- LongDoubleWidth = LongDoubleAlign = 128 ;
92
- LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble ();
93
91
HasStrictFP = true ;
94
92
HasIbm128 = true ;
95
93
}
@@ -384,20 +382,11 @@ class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo {
384
382
SizeType = UnsignedLong;
385
383
PtrDiffType = SignedLong;
386
384
IntPtrType = SignedLong;
387
- LongDoubleWidth = 64 ;
388
- LongDoubleAlign = DoubleAlign = 32 ;
389
- LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
390
385
break ;
391
386
default :
392
387
break ;
393
388
}
394
389
395
- if (Triple.isOSFreeBSD () || Triple.isOSNetBSD () || Triple.isOSOpenBSD () ||
396
- Triple.isMusl ()) {
397
- LongDoubleWidth = LongDoubleAlign = 64 ;
398
- LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
399
- }
400
-
401
390
// PPC32 supports atomics up to 4 bytes.
402
391
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32 ;
403
392
}
@@ -422,9 +411,6 @@ class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
422
411
if (Triple.isOSAIX ()) {
423
412
// TODO: Set appropriate ABI for AIX platform.
424
413
DataLayout = " E-m:a-Fi64-i64:64-n32:64" ;
425
- LongDoubleWidth = 64 ;
426
- LongDoubleAlign = DoubleAlign = 32 ;
427
- LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
428
414
} else if ((Triple.getArch () == llvm::Triple::ppc64le)) {
429
415
DataLayout = " e-m:e-Fn32-i64:64-n32:64" ;
430
416
ABI = " elfv2" ;
@@ -440,11 +426,6 @@ class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
440
426
DataLayout += " -i64:64-n32:64" ;
441
427
}
442
428
443
- if (Triple.isOSFreeBSD () || Triple.isOSOpenBSD () || Triple.isMusl ()) {
444
- LongDoubleWidth = LongDoubleAlign = 64 ;
445
- LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
446
- }
447
-
448
429
if (Triple.isOSAIX () || Triple.isOSLinux ())
449
430
DataLayout += " -S128-v256:256:256-v512:512:512" ;
450
431
resetDataLayout (DataLayout);
0 commit comments