[llvm] 125a37e - [LoongArch] Add Scalar link component

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 07:58:36 PDT 2023


Author: Xiaodong Liu
Date: 2023-03-24T09:58:26-05:00
New Revision: 125a37e09ba6e60495e1c0fa4c1b5ea05478a4b6

URL: https://github.com/llvm/llvm-project/commit/125a37e09ba6e60495e1c0fa4c1b5ea05478a4b6
DIFF: https://github.com/llvm/llvm-project/commit/125a37e09ba6e60495e1c0fa4c1b5ea05478a4b6.diff

LOG: [LoongArch] Add Scalar link component

Fix the lld link error on ppc64le builders:
```
ld.lld: error: undefined symbol: llvm::createLoopDataPrefetchPass()
>>> referenced by LoongArchTargetMachine.cpp
>>>               lib/Target/LoongArch/CMakeFiles/LLVMLoongArchCodeGen.dir/LoongArchTargetMachine.cpp.o:((anonymous namespace)::LoongArchPassConfig::addIRPasses())
collect2: error: ld returned 1 exit status`
```

Reviewed By: sdesmalen

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

Added: 
    

Modified: 
    llvm/lib/Target/LoongArch/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/LoongArch/CMakeLists.txt b/llvm/lib/Target/LoongArch/CMakeLists.txt
index 3239dd7776eba..58709f5fe7daf 100644
--- a/llvm/lib/Target/LoongArch/CMakeLists.txt
+++ b/llvm/lib/Target/LoongArch/CMakeLists.txt
@@ -35,6 +35,7 @@ add_llvm_target(LoongArchCodeGen
   MC
   LoongArchDesc
   LoongArchInfo
+  Scalar
   SelectionDAG
   Support
   Target


        


More information about the llvm-commits mailing list