[BOLT] Align constant islands to 8 bytes
authorVladislav Khmelevsky <och95@yandex.ru>
Sat, 19 Mar 2022 10:26:38 +0000 (13:26 +0300)
committerVladislav Khmelevsky <och95@yandex.ru>
Sun, 27 Mar 2022 19:30:42 +0000 (22:30 +0300)
commitaf9bdcfc46ef73179797ebd406ab413cd047a8c7
treecd98eff4eefef61cbf8d0e84a9af8867de72ea17
parent8b245ab41dfaed153e9ce768470107ec71551e1f
[BOLT] Align constant islands to 8 bytes

AArch64 requires CI to be aligned to 8 bytes due to access instructions
restrictions. E.g. the ldr with imm, where imm must be aligned to 8 bytes.

Differential Revision: https://reviews.llvm.org/D122065
bolt/include/bolt/Core/BinaryFunction.h
bolt/lib/Core/BinaryEmitter.cpp
bolt/lib/Passes/LongJmp.cpp
bolt/test/AArch64/constant-island-alignment.s [new file with mode: 0644]
bolt/test/runtime/AArch64/adrrelaxationpass.s