This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Print bbArgs and attrs of linalg.map/reduce/tranpose on the next line.
ClosedPublic

Authored by pifon2a on Oct 27 2022, 12:37 AM.

Details

Summary
%mapped = linalg.map
  ins(%arg0 : tensor<64xf32>)
  outs(%arg1 : tensor<64xf32>)
  (%in: f32) {
    %0 = math.absf %in : f32
    linalg.yield %0 : f32
  }
%reduced = linalg.reduce
  ins(%arg0 : tensor<16x32x64xf32>)
  outs(%arg1 : tensor<16x64xf32>)
  dimensions = [1]
  (%in: f32, %init: f32) {
    %0 = arith.addf %in, %init : f32
    linalg.yield %0 : f32
  }
%transposed = linalg.transpose
  ins(%arg0 : tensor<16x32x64xf32>)
  outs(%arg1 : tensor<32x64x16xf32>)
  permutation = [1, 2, 0]

Diff Detail

Event Timeline

pifon2a created this revision.Oct 27 2022, 12:37 AM
Herald added a project: Restricted Project. · View Herald Transcript
pifon2a requested review of this revision.Oct 27 2022, 12:37 AM
nicolasvasilache accepted this revision.Oct 27 2022, 1:03 AM
This revision is now accepted and ready to land.Oct 27 2022, 1:03 AM
This revision was landed with ongoing or failed builds.Oct 27 2022, 1:19 AM
This revision was automatically updated to reflect the committed changes.