Home | History | Annotate | Download | only in Config
      1 #ifndef LLVM_NATIVE_CONFIG_H
      2 
      3 /*===-- llvm/config/llvm-native-config.h --------------------------*- C -*-===*/
      4 /*                                                                            */
      5 /*                     The LLVM Compiler Infrastructure                       */
      6 /*                                                                            */
      7 /* This file is distributed under the University of Illinois Open Source      */
      8 /* License. See LICENSE.TXT for details.                                      */
      9 /*                                                                            */
     10 /*===----------------------------------------------------------------------===*/
     11 
     12 #if defined(__i386__) || defined(__x86_64__)
     13 
     14 /* LLVM architecture name for the native architecture, if available */
     15 #define LLVM_NATIVE_ARCH X86
     16 
     17 /* Host triple LLVM will be executed on */
     18 #define LLVM_HOST_TRIPLE "i686-unknown-linux-gnu"
     19 
     20 /* LLVM name for the native AsmParser init function, if available */
     21 #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
     22 
     23 /* LLVM name for the native AsmPrinter init function, if available */
     24 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
     25 
     26 /* LLVM name for the native Disassembler init function, if available */
     27 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
     28 
     29 /* LLVM name for the native Target init function, if available */
     30 #define LLVM_NATIVE_TARGET LLVMInitializeX86Target
     31 
     32 /* LLVM name for the native TargetInfo init function, if available */
     33 #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
     34 
     35 /* LLVM name for the native target MC init function, if available */
     36 #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
     37 
     38 
     39 #elif defined(__arm__)
     40 
     41 /* LLVM architecture name for the native architecture, if available */
     42 #define LLVM_NATIVE_ARCH ARM
     43 
     44 /* Host triple LLVM will be executed on */
     45 #define LLVM_HOST_TRIPLE "arm-unknown-linux-gnu"
     46 
     47 /* LLVM name for the native AsmParser init function, if available */
     48 #define LLVM_NATIVE_ASMPARSER LLVMInitializeARMAsmParser
     49 
     50 /* LLVM name for the native AsmPrinter init function, if available */
     51 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeARMAsmPrinter
     52 
     53 /* LLVM name for the native Disassembler init function, if available */
     54 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeARMDisassembler
     55 
     56 /* LLVM name for the native Target init function, if available */
     57 #define LLVM_NATIVE_TARGET LLVMInitializeARMTarget
     58 
     59 /* LLVM name for the native TargetInfo init function, if available */
     60 #define LLVM_NATIVE_TARGETINFO LLVMInitializeARMTargetInfo
     61 
     62 /* LLVM name for the native target MC init function, if available */
     63 #define LLVM_NATIVE_TARGETMC LLVMInitializeARMTargetMC
     64 
     65 
     66 #elif defined(__mips__)
     67 
     68 /* LLVM architecture name for the native architecture, if available */
     69 #define LLVM_NATIVE_ARCH Mips
     70 
     71 /* Host triple LLVM will be executed on */
     72 #define LLVM_HOST_TRIPLE "mipsel-unknown-linux-gnu"
     73 
     74 /* LLVM name for the native AsmParser init function, if available */
     75 #define LLVM_NATIVE_ASMPARSER LLVMInitializeMipsAsmParser
     76 
     77 /* LLVM name for the native AsmPrinter init function, if available */
     78 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeMipsAsmPrinter
     79 
     80 /* LLVM name for the native Disassembler init function, if available */
     81 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeMipsDisassembler
     82 
     83 /* LLVM name for the native Target init function, if available */
     84 #define LLVM_NATIVE_TARGET LLVMInitializeMipsTarget
     85 
     86 /* LLVM name for the native TargetInfo init function, if available */
     87 #define LLVM_NATIVE_TARGETINFO LLVMInitializeMipsTargetInfo
     88 
     89 /* LLVM name for the native target MC init function, if available */
     90 #define LLVM_NATIVE_TARGETMC LLVMInitializeMipsTargetMC
     91 
     92 
     93 #else
     94 
     95 #error "Unknown native architecture"
     96 
     97 #endif
     98 
     99 
    100 
    101 #if defined(_WIN32) || defined(_WIN64)
    102 
    103 /* Define if this is Unixish platform */
    104 /* #undef LLVM_ON_UNIX */
    105 
    106 /* Define if this is Win32ish platform */
    107 #define LLVM_ON_WIN32 1
    108 
    109 /* Define to 1 if you have the <windows.h> header file. */
    110 #define HAVE_WINDOWS_H 1
    111 
    112 /* Define to 1 if you have the `psapi' library (-lpsapi). */
    113 #define HAVE_LIBPSAPI 1
    114 
    115 /* Define to 1 if you have the `imagehlp' library (-limagehlp). */
    116 #define HAVE_LIBIMAGEHLP 1
    117 
    118 /* Type of 1st arg on ELM Callback */
    119 #define WIN32_ELMCB_PCSTR PSTR
    120 
    121 
    122 #else /* Linux, Mac OS X, ... Unixish platform */
    123 
    124 /* Define if this is Unixish platform */
    125 #define LLVM_ON_UNIX 1
    126 
    127 /* Define if this is Win32ish platform */
    128 /* #undef LLVM_ON_WIN32 */
    129 
    130 /* Type of 1st arg on ELM Callback */
    131 /* #undef WIN32_ELMCB_PCSTR */
    132 
    133 #endif
    134 
    135 #endif // LLVM_NATIVE_CONFIG_H
    136