add a csky-unknown-linux-gnuabiv2 target
This commit is contained in:
parent
3071e0aef6
commit
d16409fe22
30 changed files with 313 additions and 4 deletions
|
@ -12,6 +12,7 @@ const OPTIONAL_COMPONENTS: &[&str] = &[
|
|||
"avr",
|
||||
"loongarch",
|
||||
"m68k",
|
||||
"csky",
|
||||
"mips",
|
||||
"powerpc",
|
||||
"systemz",
|
||||
|
|
|
@ -105,6 +105,12 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) {
|
|||
#define SUBTARGET_M68K
|
||||
#endif
|
||||
|
||||
#ifdef LLVM_COMPONENT_CSKY
|
||||
#define SUBTARGET_CSKY SUBTARGET(CSKY)
|
||||
#else
|
||||
#define SUBTARGET_CSKY
|
||||
#endif
|
||||
|
||||
#ifdef LLVM_COMPONENT_MIPS
|
||||
#define SUBTARGET_MIPS SUBTARGET(Mips)
|
||||
#else
|
||||
|
@ -159,6 +165,7 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) {
|
|||
SUBTARGET_AARCH64 \
|
||||
SUBTARGET_AVR \
|
||||
SUBTARGET_M68K \
|
||||
SUBTARGET_CSKY \
|
||||
SUBTARGET_MIPS \
|
||||
SUBTARGET_PPC \
|
||||
SUBTARGET_SYSTEMZ \
|
||||
|
|
|
@ -102,6 +102,14 @@ pub fn initialize_available_targets() {
|
|||
LLVMInitializeM68kAsmPrinter,
|
||||
LLVMInitializeM68kAsmParser
|
||||
);
|
||||
init_target!(
|
||||
llvm_component = "csky",
|
||||
LLVMInitializeCSKYTargetInfo,
|
||||
LLVMInitializeCSKYTarget,
|
||||
LLVMInitializeCSKYTargetMC,
|
||||
LLVMInitializeCSKYAsmPrinter,
|
||||
LLVMInitializeCSKYAsmParser
|
||||
);
|
||||
init_target!(
|
||||
llvm_component = "loongarch",
|
||||
LLVMInitializeLoongArchTargetInfo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue