Skip to content

Commit db89199

Browse files
committed
[CIR] Add bit reverse and byte reverse operations
1 parent cf2bf0b commit db89199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,7 @@ def BitReverseOp : CIR_BitOpBase<"bit.reverse",
26792679
}];
26802680
}
26812681

2682-
def ByteSwapOp : CIR_BitOpBase<"bit.bswap", CIR_UIntOfWidths<[16, 32, 64]>> {
2682+
def ByteSwapOp : CIR_BitOpBase<"bit.byte_swap", CIR_UIntOfWidths<[16, 32, 64]>> {
26832683
let summary = "Reverse the bytes in the object representation of the operand";
26842684
let description = [{
26852685
The `cir.bswap` operation takes an integer as operand, reverse the bytes in

0 commit comments

Comments
 (0)