Initialization.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. /*===-- llvm-c/Initialization.h - Initialization C Interface ------*- C -*-===*\
  7. |* *|
  8. |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
  9. |* Exceptions. *|
  10. |* See https://llvm.org/LICENSE.txt for license information. *|
  11. |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
  12. |* *|
  13. |*===----------------------------------------------------------------------===*|
  14. |* *|
  15. |* This header declares the C interface to LLVM initialization routines, *|
  16. |* which must be called before you can use the functionality provided by *|
  17. |* the corresponding LLVM library. *|
  18. |* *|
  19. \*===----------------------------------------------------------------------===*/
  20. #ifndef LLVM_C_INITIALIZATION_H
  21. #define LLVM_C_INITIALIZATION_H
  22. #include "llvm-c/ExternC.h"
  23. #include "llvm-c/Types.h"
  24. LLVM_C_EXTERN_C_BEGIN
  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. void LLVMInitializeCore(LLVMPassRegistryRef R);
  34. void LLVMInitializeTransformUtils(LLVMPassRegistryRef R);
  35. void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
  36. void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R);
  37. void LLVMInitializeVectorization(LLVMPassRegistryRef R);
  38. void LLVMInitializeInstCombine(LLVMPassRegistryRef R);
  39. void LLVMInitializeAggressiveInstCombiner(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. LLVM_C_EXTERN_C_END
  50. #endif
  51. #ifdef __GNUC__
  52. #pragma GCC diagnostic pop
  53. #endif