[libclc] [libclc] Move rotate to CLC library; optimize (PR #125713)

2025-02-05 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/125713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move rotate to CLC library; optimize (PR #125713)

2025-02-04 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: CC @rjodinchr - you might not need to custom replace rotate yourselves in clspv after this PR? https://github.com/llvm/llvm-project/pull/125713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[libclc] [libclc] Move rotate to CLC library; optimize (PR #125713)

2025-02-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/125713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move rotate to CLC library; optimize (PR #125713)

2025-02-04 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/125713 This commit moves the rotate builtin to the CLC library. It also optimizes rotate(x, n) to generate the @llvm.fshl(x, x, n) intrinsic directly, for both scalar and vector types. The previous implementation