2012-04-14 13:54:10 +00:00
|
|
|
/*===---------------------------Vectorize.h --------------------- -*- C -*-===*\
|
|
|
|
|*===----------- Vectorization Transformation Library C Interface ---------===*|
|
|
|
|
|* *|
|
|
|
|
|* The LLVM Compiler Infrastructure *|
|
|
|
|
|* *|
|
|
|
|
|* This file is distributed under the University of Illinois Open Source *|
|
|
|
|
|* License. See LICENSE.TXT for details. *|
|
|
|
|
|* *|
|
|
|
|
|*===----------------------------------------------------------------------===*|
|
|
|
|
|* *|
|
|
|
|
|* This header declares the C interface to libLLVMVectorize.a, which *|
|
|
|
|
|* implements various vectorization transformations of the LLVM IR. *|
|
|
|
|
|* *|
|
|
|
|
|* Many exotic languages can interoperate with C code but have a harder time *|
|
|
|
|
|* with C++ due to name mangling. So in addition to C, this interface enables *|
|
|
|
|
|* tools written in such languages. *|
|
|
|
|
|* *|
|
|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
|
|
|
|
#ifndef LLVM_C_TRANSFORMS_VECTORIZE_H
|
|
|
|
#define LLVM_C_TRANSFORMS_VECTORIZE_H
|
|
|
|
|
2015-12-30 11:46:15 +00:00
|
|
|
#include "llvm-c/Types.h"
|
2012-04-14 13:54:10 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup LLVMCTransformsVectorize Vectorization transformations
|
|
|
|
* @ingroup LLVMCTransforms
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** See llvm::createBBVectorizePass function. */
|
|
|
|
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM);
|
|
|
|
|
2012-12-02 13:10:19 +00:00
|
|
|
/** See llvm::createLoopVectorizePass function. */
|
|
|
|
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
|
|
|
|
|
2013-06-10 20:36:52 +00:00
|
|
|
/** See llvm::createSLPVectorizerPass function. */
|
|
|
|
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
|
|
|
|
|
2012-04-14 13:54:10 +00:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
|
|
|
#endif
|