daphne-project/daphne

More readable DaphneIR: split/combine of vectorized pipelines

開放

#211 建立於 2022年3月8日

 (0 則留言) (0 個反應) (0 位負責人)C++ (84 個分叉)auto 404
good first issue

倉庫指標

星標
 (80 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

In GitLab by @pdamme on Mar 8, 2022, 17:58

For a vectorized pipeline (VectorizedPipelineOp), both the way the inputs and split and the way the outputs are combined are represented by enums (see src/ir/daphneir/DaphneVectorizableOpInterface.td, VectorSplitAttr/VectorCombineAttr). When printing the IR, these are displayed as integers. To make the IR more readable, it would be great to display actual words.

For instance, instead of:

'Reference to deleted milestone 12' = "daphne.vectorizedPipeline"(...) ( {...},  {...}) {combines = [1], ..., splits = [1, 1]} : (...) -> ...

it should print something like:

'Reference to deleted milestone 12' = "daphne.vectorizedPipeline"(...) ( {...},  {...}) {combines = [rows], ..., splits = [rows, rows]} : (...) -> ...

Some useful documentation can be found at:

貢獻者指南