HomePhabricator

[mlir] add permutation utility

Authored by aartbik on Aug 23 2021, 7:00 PM.

Description

[mlir] add permutation utility

I found myself typing this code several times at different places
by now, so time to make this a general utility instead. Given
a permutation, it returns the permuted position of the input,
for example (i,j,k) -> (k,i,j) yields position 1 for input 0.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D108347

Details

Committed
aartbikAug 24 2021, 8:07 AM
Reviewer
ftynse
Differential Revision
D108347: [mlir] add permutation utility
Parents
rG194b08000c1c: [DAG] LoadedSlice::canMergeExpensiveCrossRegisterBankCopy - replace…
Branches
Unknown
Tags
Unknown