2012-02-01 03:51:43 +00:00
|
|
|
//===-- Vectorize.h - Vectorization Transformations -------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This header file defines prototypes for accessor functions that expose passes
|
|
|
|
// in the Vectorize transformations library.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TRANSFORMS_VECTORIZE_H
|
|
|
|
#define LLVM_TRANSFORMS_VECTORIZE_H
|
|
|
|
|
|
|
|
namespace llvm {
|
2012-04-05 08:05:16 +00:00
|
|
|
class BasicBlock;
|
2012-02-01 03:51:43 +00:00
|
|
|
class BasicBlockPass;
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// BBVectorize - A basic-block vectorization pass.
|
|
|
|
//
|
|
|
|
BasicBlockPass *createBBVectorizePass();
|
|
|
|
|
2012-04-05 08:05:16 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// @brief Vectorize the BasicBlock.
|
|
|
|
///
|
|
|
|
/// @param BB The BasicBlock to be vectorized
|
|
|
|
/// @param P The current running pass, should require AliasAnalysis and
|
|
|
|
/// ScalarEvolution. After the vectorization, AliasAnalysis,
|
|
|
|
/// ScalarEvolution and CFG are preserved.
|
|
|
|
///
|
|
|
|
/// @return True if the BB is changed, false otherwise.
|
|
|
|
///
|
|
|
|
bool vectorizeBasicBlock(Pass *P, BasicBlock &BB);
|
|
|
|
|
2012-02-01 03:51:43 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|