diff options
| author | zhaixiaojuan <zhaixiaojuan@loongson.cn> | 2022-07-07 15:46:10 +0800 |
|---|---|---|
| committer | wangrui <wangrui@loongson.cn> | 2023-04-04 17:05:08 +0800 |
| commit | ccf54177990bd569ec1903735e2c55b6b68471a8 (patch) | |
| tree | 4ec068d491a4f637081b8011ff83ce633cc4e03b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 10f7ba562a2f84ff2cfc6d5beec795c24c7e15cd (diff) | |
| download | rust-ccf54177990bd569ec1903735e2c55b6b68471a8.tar.gz rust-ccf54177990bd569ec1903735e2c55b6b68471a8.zip | |
Enable loongarch64 LLVM target
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index e604e44a715..d48b3a30fc1 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -146,6 +146,12 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) { #define SUBTARGET_HEXAGON #endif +#ifdef LLVM_COMPONENT_LOONGARCH +#define SUBTARGET_LOONGARCH SUBTARGET(LoongArch) +#else +#define SUBTARGET_LOONGARCH +#endif + #define GEN_SUBTARGETS \ SUBTARGET_X86 \ SUBTARGET_ARM \ @@ -159,6 +165,7 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) { SUBTARGET_SPARC \ SUBTARGET_HEXAGON \ SUBTARGET_RISCV \ + SUBTARGET_LOONGARCH \ #define SUBTARGET(x) \ namespace llvm { \ |
