[llvm] 940733d - [RISCV] Re-enable JIT support
Jonas Hahnfeld via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 02:41:18 PDT 2022
Author: Jonas Hahnfeld
Date: 2022-08-11T11:41:02+02:00
New Revision: 940733d6a0a92245912361bf116514172a15f4f8
URL: https://github.com/llvm/llvm-project/commit/940733d6a0a92245912361bf116514172a15f4f8
DIFF: https://github.com/llvm/llvm-project/commit/940733d6a0a92245912361bf116514172a15f4f8.diff
LOG: [RISCV] Re-enable JIT support
Commit 8922adf646 recently made JITTargetMachineBuilder honor the
hasJIT property of the target. LLVM supports just-in-time compilation
on RISC-V, so set the flag.
Differential Revision: https://reviews.llvm.org/D131617
Added:
Modified:
llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp b/llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
index 27d1326d5f6c4..7b63b060dd9c1 100644
--- a/llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
+++ b/llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
@@ -21,8 +21,8 @@ Target &llvm::getTheRISCV64Target() {
}
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetInfo() {
- RegisterTarget<Triple::riscv32> X(getTheRISCV32Target(), "riscv32",
- "32-bit RISC-V", "RISCV");
- RegisterTarget<Triple::riscv64> Y(getTheRISCV64Target(), "riscv64",
- "64-bit RISC-V", "RISCV");
+ RegisterTarget<Triple::riscv32, /*HasJIT=*/true> X(
+ getTheRISCV32Target(), "riscv32", "32-bit RISC-V", "RISCV");
+ RegisterTarget<Triple::riscv64, /*HasJIT=*/true> Y(
+ getTheRISCV64Target(), "riscv64", "64-bit RISC-V", "RISCV");
}
More information about the llvm-commits
mailing list