aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorwanglei <wanglei@loongson.cn>2022-12-08 18:08:51 +0800
committerwanglei <wanglei@loongson.cn>2022-12-08 18:44:28 +0800
commit1d3baf21b673db0c99a3560ec0653e63e0e4b01a (patch)
tree6f2f9afdcea7df8ce5ea4d1a457a4dee93d0f9c6 /llvm/lib/Transforms/Utils/Debugify.cpp
parentd03e9f8fb0741a510308be09b29a13d0a66a6e41 (diff)
downloadllvm-1d3baf21b673db0c99a3560ec0653e63e0e4b01a.zip
llvm-1d3baf21b673db0c99a3560ec0653e63e0e4b01a.tar.gz
llvm-1d3baf21b673db0c99a3560ec0653e63e0e4b01a.tar.bz2
[LoongArch] Allow writing unaligned nop sequences
In case of unaligned nop sequences, pad to the nearest 4-byte boundary with zeros before filling with `nop` instructions. This is consistent with gas behavior, and is necessary to compile the Linux kernel with LLVM IAS. Replace `support::endian::write` with `OS.write` while at it. This is simpler and correct because we only have little endian. Reviewed By: SixWeining, xen0n Differential Revision: https://reviews.llvm.org/D139285
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions