diff options
author | Maksim Panchenko <maks@fb.com> | 2023-11-13 14:33:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 14:33:39 -0800 |
commit | 2db9b6a93f9fc9b943f52efed51264ef8760cec2 (patch) | |
tree | 8a6ab22d10f3f3d605bcfc63134af5b978c436c0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | b288b412edbe1a9e6f2cf88672a214f29082e2d3 (diff) | |
download | llvm-2db9b6a93f9fc9b943f52efed51264ef8760cec2.zip llvm-2db9b6a93f9fc9b943f52efed51264ef8760cec2.tar.gz llvm-2db9b6a93f9fc9b943f52efed51264ef8760cec2.tar.bz2 |
[BOLT] Make instruction size a first-class annotation (#72167)
When NOP instructions are used to reserve space in the code, e.g. for
patching, it becomes critical to preserve their original size while
emitting the code. On x86, we rely on "Size" annotation for NOP
instructions size, as the original instruction size is lost in the
disassembly/assembly process.
This change makes instruction size a first-class annotation and is
affectively NFCI. A follow-up diff will use the annotation for code
emission.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions