@@ -403,11 +403,11 @@ class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo {
403403 PPC32TargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
404404 : PPCTargetInfo(Triple, Opts) {
405405 if (Triple.isOSAIX ())
406- resetDataLayout (" E-m:a-p:32:32-Fi32-i64:64-n32" );
406+ resetDataLayout (" E-m:a-p:32:32-Fi32-i64:64-i128:128- n32" );
407407 else if (Triple.getArch () == llvm::Triple::ppcle)
408- resetDataLayout (" e-m:e-p:32:32-Fn32-i64:64-n32" );
408+ resetDataLayout (" e-m:e-p:32:32-Fn32-i64:64-i128:128- n32" );
409409 else
410- resetDataLayout (" E-m:e-p:32:32-Fn32-i64:64-n32" );
410+ resetDataLayout (" E-m:e-p:32:32-Fn32-i64:64-i128:128- n32" );
411411
412412 switch (getTriple ().getOS ()) {
413413 case llvm::Triple::Linux:
@@ -462,12 +462,12 @@ class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
462462
463463 if (Triple.isOSAIX ()) {
464464 // TODO: Set appropriate ABI for AIX platform.
465- DataLayout = " E-m:a-Fi64-i64:64-n32:64" ;
465+ DataLayout = " E-m:a-Fi64-i64:64-i128:128- n32:64" ;
466466 LongDoubleWidth = 64 ;
467467 LongDoubleAlign = DoubleAlign = 32 ;
468468 LongDoubleFormat = &llvm::APFloat::IEEEdouble ();
469469 } else if ((Triple.getArch () == llvm::Triple::ppc64le)) {
470- DataLayout = " e-m:e-Fn32-i64:64-n32:64" ;
470+ DataLayout = " e-m:e-Fn32-i64:64-i128:128- n32:64" ;
471471 ABI = " elfv2" ;
472472 } else {
473473 DataLayout = " E-m:e" ;
@@ -478,7 +478,7 @@ class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
478478 ABI = " elfv1" ;
479479 DataLayout += " -Fi64" ;
480480 }
481- DataLayout += " -i64:64-n32:64" ;
481+ DataLayout += " -i64:64-i128:128- n32:64" ;
482482 }
483483
484484 if (Triple.isOSFreeBSD () || Triple.isOSOpenBSD () || Triple.isMusl ()) {
0 commit comments