Files
clang-p2996/mlir/lib/Dialect/ArmSME/Transforms/EnableArmStreaming.cpp
Benjamin Maxwell f7d91faa79 [mlir][ArmSME] Add option to only enable streaming mode/ZA if required (#73931)
This adds a `only-if-required-by-ops` flag to the `enable-arm-streaming`
pass. This flag defaults to `false` (which preserves the original
behaviour), however, if set to `true` the pass will only add the
selected ZA/streaming mode to functions that contain ops that implement
`ArmSMETileOpInterface`.

This simplifies enabling these modes, as we can now first try lowering
ops to ArmSME, then only if we succeed, add the relevant function
attributes.
2023-12-01 10:39:01 +00:00

3.9 KiB