summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorBenjamin Maxwell <benjamin.maxwell@arm.com>2024-07-26 14:45:51 +0100
committerGitHub <noreply@github.com>2024-07-26 14:45:51 +0100
commit88accd9aaa20c6a30661c48cc2ca6dbbdf991ec0 (patch)
tree03e64858ee3dd605cd9c3b74fc887d912cd7987a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent49cb1701389ac3cff3e2c552531bfd3a607311d8 (diff)
[mlir][ArmSME] Pattern to swap shape_cast(tranpose) with transpose(shape_cast) (#100731)
This applies when the shape_cast is simply for dropping unit dims, and the result rank is >= 2. This simplifies the transpose making it possible for other ArmSME legalization patterns to handle it. Example: ```mlir %0 = vector.transpose %vector, [3, 0, 1, 2] : vector<1x1x4x[4]xf32> to vector<[4]x1x1x4xf32> %1 = vector.shape_cast %0 : vector<[4]x1x1x4xf32> to vector<[4]x4xf32> ``` ```mlir %0 = vector.shape_cast %arg0 : vector<1x1x4x[4]xf32> to vector<4x[4]xf32> %1 = vector.transpose %0, [1, 0] : vector<4x[4]xf32> to vector<[4]x4xf32> ```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions