diff options
| author | Alex Zinenko <zinenko@google.com> | 2019-11-14 10:34:46 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-14 10:35:21 -0800 |
| commit | 971b8dd4d881cdc21b6aa73a3797bf9a6d48ca14 (patch) | |
| tree | 09a30489967cbb9d63a7d7dd6fbaa40a0cec8228 /mlir/examples | |
| parent | b34a861d5a50fa380ddd578290baf9b819d3b5df (diff) | |
| download | bcm5719-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.txt | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch6/mlir/LowerToLLVM.cpp | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch7/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | mlir/examples/toy/Ch7/mlir/LowerToLLVM.cpp | 2 |
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; |

