Skip to content

Commit

Permalink
[RISCV] Re-enable JIT support
Browse files Browse the repository at this point in the history
Commit 8922adf 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
  • Loading branch information
hahnjo committed Aug 11, 2022
1 parent 91b6f76 commit 940733d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 940733d

Please sign in to comment.