[PATCH] D129349: [Sparc] Don't claim JIT support on SPARC for now

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 00:32:00 PDT 2022


ro created this revision.
ro added a reviewer: lhames.
Herald added subscribers: StephenFan, jrtc27, fedor.sergeev, hiraditya, mgorny, jyknight.
Herald added a project: All.
ro requested review of this revision.
Herald added a project: LLVM.

Until D118450 <https://reviews.llvm.org/D118450> lands, there's no JIT support on SPARC, but the backend claims otherwise, leading to various testsuite failures.

This patch corrects this.

Tested on `sparcv9-sun-solaris2.11`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129349

Files:
  llvm/lib/Target/Sparc/CMakeLists.txt
  llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp


Index: llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
===================================================================
--- llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
+++ llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
@@ -24,10 +24,10 @@
 }
 
 extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcTargetInfo() {
-  RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(), "sparc",
-                                                   "Sparc", "Sparc");
-  RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y(
+  RegisterTarget<Triple::sparc, /*HasJIT=*/false> X(getTheSparcTarget(),
+                                                    "sparc", "Sparc", "Sparc");
+  RegisterTarget<Triple::sparcv9, /*HasJIT=*/false> Y(
       getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc");
-  RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z(
+  RegisterTarget<Triple::sparcel, /*HasJIT=*/false> Z(
       getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc");
 }
Index: llvm/lib/Target/Sparc/CMakeLists.txt
===================================================================
--- llvm/lib/Target/Sparc/CMakeLists.txt
+++ llvm/lib/Target/Sparc/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_llvm_component_group(Sparc HAS_JIT)
+add_llvm_component_group(Sparc)
 
 set(LLVM_TARGET_DEFINITIONS Sparc.td)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129349.443154.patch
Type: text/x-patch
Size: 1329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220708/46d50474/attachment.bin>


More information about the llvm-commits mailing list