mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
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
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.