MLIR
20.0.0git
|
#include "mlir/Dialect/Affine/Passes.h"
#include "mlir/Dialect/Affine/Analysis/Utils.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Interfaces/SideEffectInterfaces.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "mlir/Dialect/Affine/Passes.h.inc"
Go to the source code of this file.
Namespaces | |
mlir | |
Include the generated interface declarations. | |
mlir::affine | |
Macros | |
#define | GEN_PASS_DEF_AFFINELOOPINVARIANTCODEMOTION |
#define | DEBUG_TYPE "affine-licm" |
Functions | |
static bool | checkInvarianceOfNestedIfOps (AffineIfOp ifOp, AffineForOp loop, SmallPtrSetImpl< Operation * > &opsWithUsers, SmallPtrSetImpl< Operation * > &opsToHoist) |
static bool | isOpLoopInvariant (Operation &op, AffineForOp loop, SmallPtrSetImpl< Operation * > &opsWithUsers, SmallPtrSetImpl< Operation * > &opsToHoist) |
Returns true if op is invariant on loop . More... | |
static bool | areAllOpsInTheBlockListInvariant (Region &blockList, AffineForOp loop, SmallPtrSetImpl< Operation * > &opsWithUsers, SmallPtrSetImpl< Operation * > &opsToHoist) |
#define DEBUG_TYPE "affine-licm" |
Definition at line 28 of file AffineLoopInvariantCodeMotion.cpp.
#define GEN_PASS_DEF_AFFINELOOPINVARIANTCODEMOTION |
Definition at line 23 of file AffineLoopInvariantCodeMotion.cpp.
|
static |
Definition at line 141 of file AffineLoopInvariantCodeMotion.cpp.
References isOpLoopInvariant().
Referenced by checkInvarianceOfNestedIfOps(), and isOpLoopInvariant().
|
static |
Definition at line 157 of file AffineLoopInvariantCodeMotion.cpp.
References areAllOpsInTheBlockListInvariant().
Referenced by isOpLoopInvariant().
|
static |
Returns true if op
is invariant on loop
.
Definition at line 65 of file AffineLoopInvariantCodeMotion.cpp.
References areAllOpsInTheBlockListInvariant(), checkInvarianceOfNestedIfOps(), mlir::affine::getAffineForIVs(), mlir::Value::getDefiningOp(), mlir::Operation::getNumOperands(), mlir::Operation::getOperand(), mlir::Value::getUsers(), and mlir::isMemoryEffectFree().
Referenced by areAllOpsInTheBlockListInvariant().