[llvm] 09c1ee1 - [Sparc] Don't claim JIT support on SPARC for now

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 23:19:08 PDT 2022


Author: Rainer Orth
Date: 2022-07-15T08:18:40+02:00
New Revision: 09c1ee1086a43bb09677971ebd49d82627342d3b

URL: https://github.com/llvm/llvm-project/commit/09c1ee1086a43bb09677971ebd49d82627342d3b
DIFF: https://github.com/llvm/llvm-project/commit/09c1ee1086a43bb09677971ebd49d82627342d3b.diff

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

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`.

Differential Revision: https://reviews.llvm.org/D129349

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Sparc/CMakeLists.txt b/llvm/lib/Target/Sparc/CMakeLists.txt
index 5ad871be8771e..70dbba290c5af 100644
--- a/llvm/lib/Target/Sparc/CMakeLists.txt
+++ b/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)
 

diff  --git a/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp b/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
index 1138788ac7fa2..1f8837eb01949 100644
--- a/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
+++ b/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
@@ -24,10 +24,10 @@ Target &llvm::getTheSparcelTarget() {
 }
 
 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");
 }


        


More information about the llvm-commits mailing list