target_link_libraries(toyc-ch6
PRIVATE
MLIRAffineOps
+ MLIRAffineToStandard
MLIRAnalysis
MLIRExecutionEngine
MLIRIR
)
whole_archive_link(toyc-ch6
+ MLIRAffineToStandard
MLIRAffineOps
MLIRLLVMIR
MLIRStandardOps
#include "toy/Dialect.h"
#include "toy/Passes.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
#include "mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
#include "mlir/Dialect/StandardOps/Ops.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
-#include "mlir/Transforms/LowerAffine.h"
#include "llvm/ADT/Sequence.h"
using namespace mlir;
target_link_libraries(toyc-ch7
PRIVATE
MLIRAffineOps
+ MLIRAffineToStandard
MLIRAnalysis
MLIRExecutionEngine
MLIRIR
)
whole_archive_link(toyc-ch7
+ MLIRAffineToStandard
MLIRAffineOps
MLIRLLVMIR
MLIRStandardOps
#include "toy/Dialect.h"
#include "toy/Passes.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
#include "mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
#include "mlir/Dialect/StandardOps/Ops.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
-#include "mlir/Transforms/LowerAffine.h"
#include "llvm/ADT/Sequence.h"
using namespace mlir;
-//===- LowerAffine.h - Convert Affine to Standard dialect -------*- C++ -*-===//
+//===- AffineToStandard.h - Convert Affine to Standard dialect --*- C++ -*-===//
//
// Copyright 2019 The MLIR Authors.
//
// limitations under the License.
// =============================================================================
-#ifndef MLIR_TRANSFORMS_LOWERAFFINE_H
-#define MLIR_TRANSFORMS_LOWERAFFINE_H
+#ifndef MLIR_CONVERSION_AFFINETOSTANDARD_AFFINETOSTANDARD_H
+#define MLIR_CONVERSION_AFFINETOSTANDARD_AFFINETOSTANDARD_H
#include "mlir/Support/LLVM.h"
-#include <vector>
namespace mlir {
class AffineExpr;
Value *lowerAffineUpperBound(AffineForOp op, OpBuilder &builder);
} // namespace mlir
-#endif // MLIR_TRANSFORMS_LOWERAFFINE_H
+#endif // MLIR_CONVERSION_AFFINETOSTANDARD_AFFINETOSTANDARD_H
-//===- LowerAffine.cpp - Lower affine constructs to primitives ------------===//
+//===- AffineToStandard.cpp - Lower affine constructs to primitives -------===//
//
// Copyright 2019 The MLIR Authors.
//
//
//===----------------------------------------------------------------------===//
-#include "mlir/Transforms/LowerAffine.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
+
#include "mlir/Dialect/AffineOps/AffineOps.h"
#include "mlir/Dialect/LoopOps/LoopOps.h"
#include "mlir/Dialect/StandardOps/Ops.h"
+add_subdirectory(AffineToStandard)
add_subdirectory(GPUToCUDA)
add_subdirectory(GPUToNVVM)
add_subdirectory(GPUToROCDL)
#include "mlir/Conversion/LoopsToGPU/LoopsToGPU.h"
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
#include "mlir/Dialect/AffineOps/AffineOps.h"
#include "mlir/Dialect/GPU/GPUDialect.h"
#include "mlir/Dialect/LoopOps/LoopOps.h"
#include "mlir/IR/AffineExpr.h"
#include "mlir/IR/Builders.h"
#include "mlir/Transforms/LoopUtils.h"
-#include "mlir/Transforms/LowerAffine.h"
#include "mlir/Transforms/RegionUtils.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/Support/Debug.h"
// limitations under the License.
// =============================================================================
+#include "mlir/Conversion/AffineToStandard/AffineToStandard.h"
#include "mlir/Conversion/LoopToStandard/ConvertLoopToStandard.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Support/LogicalResult.h"
#include "mlir/Transforms/DialectConversion.h"
-#include "mlir/Transforms/LowerAffine.h"
#include "mlir/Transforms/Passes.h"
#include "llvm/ADT/SetVector.h"
LoopTiling.cpp
LoopUnrollAndJam.cpp
LoopUnroll.cpp
- LowerAffine.cpp
LowerVectorTransfers.cpp
MaterializeVectors.cpp
MemRefDataFlowOpt.cpp
set(LIBS
MLIRAffineOps
+ MLIRAffineToStandard
MLIRLoopsToGPU
MLIRAnalysis
MLIRLoopToStandard