aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2021-03-08 11:23:33 -0800
committerSam Clegg <sbc@chromium.org>2021-03-08 11:34:10 -0800
commitaa0c571a5fa9130ccd932f9b6970440a1bae177f (patch)
tree05f5d6418d8126ce18c65017f675d22d6f363ec4 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd9a29a67527fbabd0e0388aefa8e6aa9b19f3f03 (diff)
downloadllvm-aa0c571a5fa9130ccd932f9b6970440a1bae177f.zip
llvm-aa0c571a5fa9130ccd932f9b6970440a1bae177f.tar.gz
llvm-aa0c571a5fa9130ccd932f9b6970440a1bae177f.tar.bz2
[WebAssembly] Add new relocation for location relative data
This `R_WASM_MEMORY_ADDR_SELFREL_I32` relocation represents an offset between its relocating address and the symbol address. It's very similar to `R_X86_64_PC32` but restricted to be used for only data segments. ``` S + A - P ``` A: Represents the addend used to compute the value of the relocatable field. P: Represents the place of the storage unit being relocated. S: Represents the value of the symbol whose index resides in the relocation entry. Proposal: https://github.com/WebAssembly/tool-conventions/issues/162 Differential Revision: https://reviews.llvm.org/D96659
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions