[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)
Lei Huang via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 07:48:42 PST 2024
================
@@ -473,7 +473,7 @@ class LLVM_LIBRARY_VISIBILITY PS3PPUTargetInfo : public OSTargetInfo<Target> {
this->IntMaxType = TargetInfo::SignedLongLong;
this->Int64Type = TargetInfo::SignedLongLong;
this->SizeType = TargetInfo::UnsignedInt;
- this->resetDataLayout("E-m:e-p:32:32-Fi64-i64:64-n32:64");
+ this->resetDataLayout("E-m:e-p:32:32-Fi64-i64:64-i128:128-n32:64");
----------------
lei137 wrote:
This class is specific for powerpc64 PPU, triple `powerpc64-lv2`, based on it's macro defines on line 461->465. Am I missing something or do we not want to update this specifically for PPC PS3 target for some reason?
In `llvm/lib/Target/PowerPC/PPCTargetMachine.cpp` I also see the comment:
```
The PS3 (OS Lv2) is a PPC64 machine with 32 bit
```
https://github.com/llvm/llvm-project/pull/118004
More information about the cfe-commits
mailing list