aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorfourdim <fourdim@foxmail.com>2022-02-17 23:00:55 +0800
committerfourdim <fourdim@foxmail.com>2022-02-17 23:03:36 +0800
commit3af7bbca4a0ef64de64b8bb38d3b167673ec60f0 (patch)
tree3682372622166be71cfc2155f8320e68ebaa6fc4 /clang/lib/Frontend/InitPreprocessor.cpp
parenteeb7754f6853626c8ac1cb6b1436c1a3599ea182 (diff)
downloadllvm-3af7bbca4a0ef64de64b8bb38d3b167673ec60f0.zip
llvm-3af7bbca4a0ef64de64b8bb38d3b167673ec60f0.tar.gz
llvm-3af7bbca4a0ef64de64b8bb38d3b167673ec60f0.tar.bz2
[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.
This patch supports the R_RISCV_JAL relocation. Moreover, it will fix the extractBits function's behavior as it extracts Size + 1 bits. In the test ELF_jal.s: Before: ``` Hi: 4294836480 extractBits(Hi, 12, 8): 480 ``` After: ``` Hi: 4294836480 extractBits(Hi, 12, 8): 224 ``` Reviewed By: StephenFan Differential Revision: https://reviews.llvm.org/D117975
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions