[LoongArch] Add Scalar link component
authorXiaodong Liu <liuxiaodong@loongson.cn>
Fri, 24 Mar 2023 14:57:22 +0000 (09:57 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 24 Mar 2023 14:58:26 +0000 (09:58 -0500)
commit125a37e09ba6e60495e1c0fa4c1b5ea05478a4b6
tree019ee2c90578f84652e88f2dd0302cedae686a6e
parente7c35d71007fab6e6729a0cfa821023128de2f74
[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
llvm/lib/Target/LoongArch/CMakeLists.txt