[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 8 05:23:38 PDT 2025
================
@@ -2661,6 +2661,55 @@ def BitPopcountOp : CIR_BitOpBase<"bit.popcnt",
}];
}
+def BitReverseOp : CIR_BitOpBase<"bit.reverse", CIR_UIntOfWidths<[8, 16, 32, 64]>> {
----------------
xlauko wrote:
I would also suggest to rename to `bitreverse` to mirror builtins name. Also dot slightly implies some "namespace".
https://github.com/llvm/llvm-project/pull/147200
More information about the cfe-commits
mailing list