diff options
author | wanglei <wanglei@loongson.cn> | 2023-01-17 15:10:00 +0800 |
---|---|---|
committer | wanglei <wanglei@loongson.cn> | 2023-01-18 20:49:20 +0800 |
commit | f10d452db841f5367f84f6db4841233365a2d03e (patch) | |
tree | c6635a8f92444304698a4f45fe53ad273675f889 /clang/lib/ExtractAPI/API.cpp | |
parent | cb5440104ada1b3738003275fd2fb9bdc9b30cc3 (diff) | |
download | llvm-f10d452db841f5367f84f6db4841233365a2d03e.zip llvm-f10d452db841f5367f84f6db4841233365a2d03e.tar.gz llvm-f10d452db841f5367f84f6db4841233365a2d03e.tar.bz2 |
Reland "[JITLink] Add an initial implementation of JITLink for ELF/LoongArch"
This implementation supports basic relocation types and adds EHFrame,
Got/Plt handling passes.
This patch also enables JIT support for LoongArch64.
With this patch, I successfully run hello.ll and simple_throw.ll
(which is generated from test-suite/SingleSource/Regression/C++/EH/simple_throw.cpp)
using the `lli` command with options `--jit-kind=orc --jit-linker=jitlink`.
Note: `hasJIT` property of LoongArch32 remains false as there is no
validation environment.
New changes: Since LoongArch does not support RuntimeDyld, JITLink is set
by default. Add a null-terminator to eh-frame sections. This should fix
the test failure on LoongArch bot.
(https://lab.llvm.org/staging/#/builders/236/builds/896)
Reviewed By: lhames
Differential Revision: https://reviews.llvm.org/D141036
Diffstat (limited to 'clang/lib/ExtractAPI/API.cpp')
0 files changed, 0 insertions, 0 deletions