[PATCH] D88659: [FE]Split SuitableAlign into two parts
Xiangling Liao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 1 07:51:57 PDT 2020
Xiangling_L created this revision.
Xiangling_L added reviewers: hubert.reinterpretcast, zarko, Jason, jyknight, efriedma.
Herald added subscribers: cfe-commits, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, atanasyan, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, fedor.sergeev, kbarton, jgravelle-google, sbc100, nemanjai, sdardis, dylanmckay, dschuff.
Herald added a project: clang.
Xiangling_L requested review of this revision.
Herald added subscribers: MaskRay, aheejin.
There are only two places where "SuitableAlign" is used:
- calculate 'BIGGEST_ALIGNMENT' macro
- alignment for 'Alloca' Inst
On some targets, like AIX, the two value are not equal. So we split `SuitableAlign` into two parts to meet the needs.
One is 'GuanranteedAlign'[?any better name] which is used to calculate 'BIGGEST_ALIGNMENT' and represent fundamental alignment requirement; the other one is still 'SuitableAlign' used to calculate alignment for 'Alloca' Inst.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88659
Files:
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/TargetInfo.cpp
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/ARC.h
clang/lib/Basic/Targets/ARM.cpp
clang/lib/Basic/Targets/AVR.h
clang/lib/Basic/Targets/MSP430.h
clang/lib/Basic/Targets/Mips.h
clang/lib/Basic/Targets/PPC.h
clang/lib/Basic/Targets/RISCV.h
clang/lib/Basic/Targets/Sparc.h
clang/lib/Basic/Targets/TCE.h
clang/lib/Basic/Targets/WebAssembly.h
clang/lib/Basic/Targets/X86.h
clang/lib/Basic/Targets/XCore.h
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/CodeGen/aix_alloca_align.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88659.295569.patch
Type: text/x-patch
Size: 12143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201001/32a3aeb9/attachment.bin>
More information about the cfe-commits
mailing list