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 /* LLVM name for the native AsmParser init function, if available */
     18 #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser
     19 
     20 /* LLVM name for the native AsmPrinter init function, if available */
     21 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
     22 
     23 /* LLVM name for the native Disassembler init function, if available */
     24 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler
     25 
     26 /* LLVM name for the native Target init function, if available */
     27 #define LLVM_NATIVE_TARGET LLVMInitializeX86Target
     28 
     29 /* LLVM name for the native TargetInfo init function, if available */
     30 #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
     31 
     32 /* LLVM name for the native target MC init function, if available */
     33 #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC
     34 
     35 
     36 #elif defined(__arm__)
     37 
     38 /* LLVM architecture name for the native architecture, if available */
     39 #define LLVM_NATIVE_ARCH ARM
     40 
     41 /* LLVM name for the native AsmParser init function, if available */
     42 #define LLVM_NATIVE_ASMPARSER LLVMInitializeARMAsmParser
     43 
     44 /* LLVM name for the native AsmPrinter init function, if available */
     45 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeARMAsmPrinter
     46 
     47 /* LLVM name for the native Disassembler init function, if available */
     48 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeARMDisassembler
     49 
     50 /* LLVM name for the native Target init function, if available */
     51 #define LLVM_NATIVE_TARGET LLVMInitializeARMTarget
     52 
     53 /* LLVM name for the native TargetInfo init function, if available */
     54 #define LLVM_NATIVE_TARGETINFO LLVMInitializeARMTargetInfo
     55 
     56 /* LLVM name for the native target MC init function, if available */
     57 #define LLVM_NATIVE_TARGETMC LLVMInitializeARMTargetMC
     58 
     59 
     60 #elif defined(__mips__)
     61 
     62 /* LLVM architecture name for the native architecture, if available */
     63 #define LLVM_NATIVE_ARCH Mips
     64 
     65 /* LLVM name for the native AsmParser init function, if available */
     66 #define LLVM_NATIVE_ASMPARSER LLVMInitializeMipsAsmParser
     67 
     68 /* LLVM name for the native AsmPrinter init function, if available */
     69 #define LLVM_NATIVE_ASMPRINTER LLVMInitializeMipsAsmPrinter
     70 
     71 /* LLVM name for the native Disassembler init function, if available */
     72 #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeMipsDisassembler
     73 
     74 /* LLVM name for the native Target init function, if available */
     75 #define LLVM_NATIVE_TARGET LLVMInitializeMipsTarget
     76 
     77 /* LLVM name for the native TargetInfo init function, if available */
     78 #define LLVM_NATIVE_TARGETINFO LLVMInitializeMipsTargetInfo
     79 
     80 /* LLVM name for the native target MC init function, if available */
     81 #define LLVM_NATIVE_TARGETMC LLVMInitializeMipsTargetMC
     82 
     83 
     84 #else
     85 
     86 #error "Unknown native architecture"
     87 
     88 #endif
     89 
     90 
     91 
     92 #if defined(_WIN32) || defined(_WIN64)
     93 
     94 /* Define if this is Unixish platform */
     95 /* #undef LLVM_ON_UNIX */
     96 
     97 /* Define if this is Win32ish platform */
     98 #define LLVM_ON_WIN32 1
     99 
    100 /* Define to 1 if you have the <windows.h> header file. */
    101 #define HAVE_WINDOWS_H 1
    102 
    103 /* Define to 1 if you have the `psapi' library (-lpsapi). */
    104 #define HAVE_LIBPSAPI 1
    105 
    106 /* Define to 1 if you have the `imagehlp' library (-limagehlp). */
    107 #define HAVE_LIBIMAGEHLP 1
    108 
    109 /* Type of 1st arg on ELM Callback */
    110 #define WIN32_ELMCB_PCSTR PSTR
    111 
    112 
    113 #else /* Linux, Mac OS X, ... Unixish platform */
    114 
    115 /* Define if this is Unixish platform */
    116 #define LLVM_ON_UNIX 1
    117 
    118 /* Define if this is Win32ish platform */
    119 /* #undef LLVM_ON_WIN32 */
    120 
    121 /* Type of 1st arg on ELM Callback */
    122 /* #undef WIN32_ELMCB_PCSTR */
    123 
    124 #endif
    125 
    126 #endif // LLVM_NATIVE_CONFIG_H
    127