Remove lowerAffineConstructs and lowerControlFlow in favor of providing patterns.
authorRiver Riddle <riverriddle@google.com>
Mon, 15 Jul 2019 19:52:44 +0000 (12:52 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 16 Jul 2019 20:44:45 +0000 (13:44 -0700)
commit2087bf6386de400115c16d93ffc99ffe899505c2
treeee0b73330b5561f2bab331bbac0495cdbeba87e5
parente7a2ef21f9fc9f10e03b97e9e73055e3447a1aa7
Remove lowerAffineConstructs and lowerControlFlow in favor of providing patterns.

These methods don't compose well with the rest of conversion framework, and create artificial breaks in conversion. Replace these methods with two(populateAffineToStdConversionPatterns and populateLoopToStdConversionPatterns respectively) that populate a list of patterns to perform the same behavior.

PiperOrigin-RevId: 258219277
mlir/examples/Linalg/Linalg1/lib/ConvertToLLVMDialect.cpp
mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp
mlir/include/mlir/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.h
mlir/include/mlir/Transforms/LowerAffine.h
mlir/lib/Conversion/ControlFlowToCFG/ConvertControlFlowToCFG.cpp
mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp
mlir/lib/Linalg/Transforms/LowerToLLVMDialect.cpp
mlir/lib/Transforms/LowerAffine.cpp