Home | History | Annotate | Download | only in llvm-c
      1 /*===-- llvm-c/Initialization.h - Initialization C Interface ------*- C -*-===*\
      2 |*                                                                            *|
      3 |*                     The LLVM Compiler Infrastructure                       *|
      4 |*                                                                            *|
      5 |* This file is distributed under the University of Illinois Open Source      *|
      6 |* License. See LICENSE.TXT for details.                                      *|
      7 |*                                                                            *|
      8 |*===----------------------------------------------------------------------===*|
      9 |*                                                                            *|
     10 |* This header declares the C interface to LLVM initialization routines,      *|
     11 |* which must be called before you can use the functionality provided by      *|
     12 |* the corresponding LLVM library.                                            *|
     13 |*                                                                            *|
     14 \*===----------------------------------------------------------------------===*/
     15 
     16 #ifndef LLVM_C_INITIALIZATION_H
     17 #define LLVM_C_INITIALIZATION_H
     18 
     19 #include "llvm-c/Types.h"
     20 
     21 #ifdef __cplusplus
     22 extern "C" {
     23 #endif
     24 
     25 /**
     26  * @defgroup LLVMCInitialization Initialization Routines
     27  * @ingroup LLVMC
     28  *
     29  * This module contains routines used to initialize the LLVM system.
     30  *
     31  * @{
     32  */
     33 
     34 void LLVMInitializeCore(LLVMPassRegistryRef R);
     35 void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
     36 void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
     37 void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R);
     38 void LLVMInitializeVectorization(LLVMPassRegistryRef R);
     39 void LLVMInitializeInstCombine(LLVMPassRegistryRef R);
     40 void LLVMInitializeIPO(LLVMPassRegistryRef R);
     41 void LLVMInitializeInstrumentation(LLVMPassRegistryRef R);
     42 void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
     43 void LLVMInitializeIPA(LLVMPassRegistryRef R);
     44 void LLVMInitializeCodeGen(LLVMPassRegistryRef R);
     45 void LLVMInitializeTarget(LLVMPassRegistryRef R);
     46 
     47 /**
     48  * @}
     49  */
     50 
     51 #ifdef __cplusplus
     52 }
     53 #endif
     54 
     55 #endif
     56