[clang] [CIR] Add rotate operation (PR #148426)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 06:12:14 PDT 2025
================
@@ -2847,6 +2847,45 @@ def ByteSwapOp : CIR_BitOpBase<"byte_swap", CIR_UIntOfWidths<[16, 32, 64]>> {
}];
}
+//===----------------------------------------------------------------------===//
+// RotateOp
+//===----------------------------------------------------------------------===//
+
+def RotateOp : CIR_Op<"rotate", [Pure, SameOperandsAndResultType]> {
----------------
xlauko wrote:
Yeah, though with LLVM dialect one needs to be cautious that it was written at the beginnings of MLIR, and many parts have not been updated since.
Maybe `UnaryTypePreservingOp` might be a good name candidate?
https://github.com/llvm/llvm-project/pull/148426
More information about the cfe-commits
mailing list