From 79f06f3cbcf2cb0394d33382186c31f2967cb400 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Sat, 26 Nov 2011 14:18:36 +0800 Subject: Add build rules for MIPS. Change-Id: Id929ad67b41e048102e89617bf6d2ba390aac1f1 --- device/include/llvm/Config/AsmParsers.def | 3 +++ device/include/llvm/Config/AsmPrinters.def | 2 ++ device/include/llvm/Config/Disassemblers.def | 3 +++ device/include/llvm/Config/Targets.def | 2 ++ device/include/llvm/Config/config.h | 4 ++++ 5 files changed, 14 insertions(+) (limited to 'device/include/llvm/Config') diff --git a/device/include/llvm/Config/AsmParsers.def b/device/include/llvm/Config/AsmParsers.def index 45903a4..106734f 100644 --- a/device/include/llvm/Config/AsmParsers.def +++ b/device/include/llvm/Config/AsmParsers.def @@ -26,6 +26,9 @@ #if defined(__arm__) LLVM_ASM_PARSER(ARM) +#elif defined(__mips__) + // MIPS does not support assembly parser. + //LLVM_ASM_PARSER(Mips) #elif defined(__i386__) LLVM_ASM_PARSER(X86) #else diff --git a/device/include/llvm/Config/AsmPrinters.def b/device/include/llvm/Config/AsmPrinters.def index b7311ba..c9c7902 100644 --- a/device/include/llvm/Config/AsmPrinters.def +++ b/device/include/llvm/Config/AsmPrinters.def @@ -26,6 +26,8 @@ #if defined(__arm__) LLVM_ASM_PRINTER(ARM) +#elif defined(__mips__) + LLVM_ASM_PRINTER(Mips) #elif defined(__i386__) LLVM_ASM_PRINTER(X86) #else diff --git a/device/include/llvm/Config/Disassemblers.def b/device/include/llvm/Config/Disassemblers.def index 39df62e..c6d6a60 100644 --- a/device/include/llvm/Config/Disassemblers.def +++ b/device/include/llvm/Config/Disassemblers.def @@ -26,6 +26,9 @@ #if defined(__arm__) LLVM_DISASSEMBLER(ARM) +#elif defined(__mips__) + // MIPS does not support disassembler. + //LLVM_DISASSEMBLER(Mips) #elif defined(__i386__) LLVM_DISASSEMBLER(X86) #else diff --git a/device/include/llvm/Config/Targets.def b/device/include/llvm/Config/Targets.def index 4094606..4a16bb3 100644 --- a/device/include/llvm/Config/Targets.def +++ b/device/include/llvm/Config/Targets.def @@ -25,6 +25,8 @@ #if defined(__arm__) LLVM_TARGET(ARM) +#elif defined(__mips__) + LLVM_TARGET(Mips) #elif defined(__i386__) LLVM_TARGET(X86) #else diff --git a/device/include/llvm/Config/config.h b/device/include/llvm/Config/config.h index c2599c9..8f6b8f6 100644 --- a/device/include/llvm/Config/config.h +++ b/device/include/llvm/Config/config.h @@ -501,6 +501,8 @@ /* LLVM architecture name for the native architecture, if available */ #if defined(__arm__) # define LLVM_NATIVE_ARCH ARMTarget +#elif defined(__mips__) +# define LLVM_NATIVE_ARCH MipsTarget #elif defined(__i386__) # define LLVM_NATIVE_ARCH X86Target #else @@ -510,6 +512,8 @@ /* Short LLVM architecture name for the native architecture, if available */ #if defined(__arm__) # define LLVM_NATIVE_ARCHNAME ARM +#elif defined(__mips__) +# define LLVM_NATIVE_ARCHNAME Mips #elif defined(__i386__) # define LLVM_NATIVE_ARCHNAME X86 #else -- cgit v1.1