Vectorize.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*===---------------------------Vectorize.h --------------------- -*- C -*-===*\
  2. |*===----------- Vectorization Transformation Library C Interface ---------===*|
  3. |* *|
  4. |* The LLVM Compiler Infrastructure *|
  5. |* *|
  6. |* This file is distributed under the University of Illinois Open Source *|
  7. |* License. See LICENSE.TXT for details. *|
  8. |* *|
  9. |*===----------------------------------------------------------------------===*|
  10. |* *|
  11. |* This header declares the C interface to libLLVMVectorize.a, which *|
  12. |* implements various vectorization transformations of the LLVM IR. *|
  13. |* *|
  14. |* Many exotic languages can interoperate with C code but have a harder time *|
  15. |* with C++ due to name mangling. So in addition to C, this interface enables *|
  16. |* tools written in such languages. *|
  17. |* *|
  18. \*===----------------------------------------------------------------------===*/
  19. #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H
  20. #define LLVM_C_TRANSFORMS_VECTORIZE_H
  21. #include "llvm-c/Core.h"
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /**
  26. * @defgroup LLVMCTransformsVectorize Vectorization transformations
  27. * @ingroup LLVMCTransforms
  28. *
  29. * @{
  30. */
  31. /** See llvm::createBBVectorizePass function. */
  32. void LLVMAddBBVectorizePass(LLVMPassManagerRef PM);
  33. /** See llvm::createLoopVectorizePass function. */
  34. void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
  35. /** See llvm::createSLPVectorizerPass function. */
  36. void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
  37. /**
  38. * @}
  39. */
  40. #ifdef __cplusplus
  41. }
  42. #endif /* defined(__cplusplus) */
  43. #endif