#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Affine/Utils.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/MemRef/Transforms/Passes.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/Support/Debug.h"
#include "mlir/Dialect/MemRef/Transforms/Passes.h.inc"
Go to the source code of this file.
◆ DEBUG_TYPE
#define DEBUG_TYPE "normalize-memrefs" |
◆ GEN_PASS_DEF_NORMALIZEMEMREFS
#define GEN_PASS_DEF_NORMALIZEMEMREFS |
◆ isMemRefNormalizable()
Check whether all the uses of oldMemRef are either dereferencing uses or the op is of type : DeallocOp, CallOp or ReturnOp.
Only if these constraints are satisfied will the value become a candidate for replacement. TODO: Extend this for DimOps.
Definition at line 105 of file NormalizeMemRefs.cpp.