From 13606105127f1c4c96ceff8cfe507da3d162ea6e Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Wed, 1 Dec 2021 11:14:53 +0800 Subject: [PATCH] mmm ./bionic/tests/ --skip-soong-tests Change-Id: Ia7a0ade64e049ed291104028962619068b6fddef --- include/llvm/Config/llvm-platform-config.h | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/llvm/Config/llvm-platform-config.h b/include/llvm/Config/llvm-platform-config.h index c9e82dabcc8..feacbde99e8 100644 --- a/include/llvm/Config/llvm-platform-config.h +++ b/include/llvm/Config/llvm-platform-config.h @@ -115,6 +115,32 @@ /* LLVM name for the native target MC init function, if available */ #define LLVM_NATIVE_TARGETMC LLVMInitializeAArch64TargetMC +#elif defined(__riscv) && (__riscv_xlen == 64) + +/* LLVM architecture name for the native architecture, if available */ +#define LLVM_NATIVE_ARCH Riscv64 + +/* Host triple LLVM will be executed on */ +#define LLVM_HOST_TRIPLE "riscv64-none-linux-gnu" + +/* LLVM name for the native AsmParser init function, if available */ +#define LLVM_NATIVE_ASMPARSER LLVMInitializeRiscv64AsmParser + +/* LLVM name for the native AsmPrinter init function, if available */ +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeRiscv64AsmPrinter + +/* LLVM name for the native Disassembler init function, if available */ +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeRiscv64Disassembler + +/* LLVM name for the native Target init function, if available */ +#define LLVM_NATIVE_TARGET LLVMInitializeRiscv64Target + +/* LLVM name for the native TargetInfo init function, if available */ +#define LLVM_NATIVE_TARGETINFO LLVMInitializeRiscv64TargetInfo + +/* LLVM name for the native target MC init function, if available */ +#define LLVM_NATIVE_TARGETMC LLVMInitializeRiscv64TargetMC + #else #error "Unknown native architecture" -- Gitee