summaryrefslogtreecommitdiffstats
path: root/mlir/examples
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2019-11-14 10:34:46 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-14 10:35:21 -0800
commit971b8dd4d881cdc21b6aa73a3797bf9a6d48ca14 (patch)
tree09a30489967cbb9d63a7d7dd6fbaa40a0cec8228 /mlir/examples
parentb34a861d5a50fa380ddd578290baf9b819d3b5df (diff)
downloadbcm5719-llvm-971b8dd4d881cdc21b6aa73a3797bf9a6d48ca14.tar.gz
bcm5719-llvm-971b8dd4d881cdc21b6aa73a3797bf9a6d48ca14.zip
Move Affine to Standard conversion to lib/Conversion
This is essentially a dialect conversion and conceptually belongs to conversions. PiperOrigin-RevId: 280460034
Diffstat (limited to 'mlir/examples')
-rw-r--r--mlir/examples/toy/Ch6/CMakeLists.txt2
-rw-r--r--mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp2
-rw-r--r--mlir/examples/toy/Ch7/CMakeLists.txt2
-rw-r--r--mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp2
4 files changed, 6 insertions, 2 deletions
diff --git a/mlir/examples/toy/Ch6/CMakeLists.txt b/mlir/examples/toy/Ch6/CMakeLists.txt
index d66c921b15e..c342ed1d4a0 100644
--- a/mlir/examples/toy/Ch6/CMakeLists.txt
+++ b/mlir/examples/toy/Ch6/CMakeLists.txt
@@ -31,6 +31,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
target_link_libraries(toyc-ch6
PRIVATE
MLIRAffineOps
+ MLIRAffineToStandard
MLIRAnalysis
MLIRExecutionEngine
MLIRIR
@@ -45,6 +46,7 @@ target_link_libraries(toyc-ch6
)
whole_archive_link(toyc-ch6
+ MLIRAffineToStandard
MLIRAffineOps
MLIRLLVMIR
MLIRStandardOps
diff --git a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp
index 091eada5ac3..ba79c348894 100644
--- a/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp
+++ b/mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp
@@ -24,6 +24,7 @@
#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"
@@ -33,7 +34,6 @@
#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;
diff --git a/mlir/examples/toy/Ch7/CMakeLists.txt b/mlir/examples/toy/Ch7/CMakeLists.txt
index fc26425f038..5956d7f4d9b 100644
--- a/mlir/examples/toy/Ch7/CMakeLists.txt
+++ b/mlir/examples/toy/Ch7/CMakeLists.txt
@@ -31,6 +31,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
target_link_libraries(toyc-ch7
PRIVATE
MLIRAffineOps
+ MLIRAffineToStandard
MLIRAnalysis
MLIRExecutionEngine
MLIRIR
@@ -45,6 +46,7 @@ target_link_libraries(toyc-ch7
)
whole_archive_link(toyc-ch7
+ MLIRAffineToStandard
MLIRAffineOps
MLIRLLVMIR
MLIRStandardOps
diff --git a/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp b/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
index 091eada5ac3..ba79c348894 100644
--- a/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
+++ b/mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp
@@ -24,6 +24,7 @@
#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"
@@ -33,7 +34,6 @@
#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;
OpenPOWER on IntegriCloud