-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds flags to print IR during different points within the default pipeline. The runner extension exposes the same upstream print IR debug capabilities available in opt e.g., -mlir-print-if-after=<pass> Co-authored-by: Kavitha Madhu <[email protected]>
- Loading branch information
1 parent
7155e41
commit 0434913
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// RUN: tpp-run %s -e entry -entry-point-result=void -mlir-print-ir-before=bufferize 2>&1 | FileCheck %s --check-prefix=BEFORE | ||
// RUN: tpp-run %s -e entry -entry-point-result=void -mlir-print-ir-after=bufferize 2>&1 | FileCheck %s --check-prefix=AFTER | ||
|
||
func.func @entry(%arg0: tensor<128x512xf32>, %arg1: tensor<512x256xf32>, %arg2: tensor<128x256xf32>) | ||
-> tensor<128x256xf32> { | ||
%0 = linalg.matmul ins(%arg0, %arg1: tensor<128x512xf32>, tensor<512x256xf32>) | ||
outs(%arg2: tensor<128x256xf32>) -> tensor<128x256xf32> | ||
return %0 : tensor<128x256xf32> | ||
} | ||
|
||
// BEFORE: IR Dump Before Bufferize (bufferize) | ||
// BEFORE-LABEL: @_entry( | ||
// BEFORE: linalg.batch_reduce_matmul{{.*}}tensor< | ||
|
||
// AFTER: IR Dump After Bufferize (bufferize) | ||
// AFTER-LABEL: @_entry( | ||
// AFTER: linalg.batch_reduce_matmul{{.*}}memref< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters