[all-commits] [llvm/llvm-project] b4130e: [MLIR][PDL] Integration test of multi-root matchin...
Stanislav Funiak via All-commits
all-commits at lists.llvm.org
Mon Jan 3 18:40:36 PST 2022
Author: Stanislav Funiak <stano at cerebras.net>
Date: 2022-01-04 (Tue, 04 Jan 2022)
[MLIR][PDL] Integration test of multi-root matching and related fixes.
This diff adds an integration test to multi-root PDL matching. It consists of two subtests:
1) A 1-layer perceptron with split forward / backward operations.
2) A 2-layer perceptron with fused forward / backward operations.
These tests use a collection of hand-written patterns and TensorFlow operations to be matched. The first test has a DAG / SSA dominant resulting match; the second does not and is therefore stored in a graph region.
This diff also includes two bug fixes:
1) Mark the pdl_interp dialect as a dependent in the TestPDLByteCodePass. This is needed, because we create ops from that dialect as a part of the PDL-to-PDLInterp lowering.
2) Fix of the starting index in the liveness range for the ForEach operations (bug exposed by the integration test).
Reviewed By: Mogball
Differential Revision: https://reviews.llvm.org/D116082
More information about the All-commits