Closed Lancern closed 7 months ago
This PR adds support for the following intrinsic functions:
__builtin_bswap{16, 32, 64}
_byteswap_{ushort, ulong, uint64}
This PR adds a new cir.bswap operation to represent such an intrinsic call. CIRGen and LLVMIR lowering for the new operation is included in this PR.
cir.bswap
Nice, this needs some rebasing post Nathan's latest upstream update.
Rebased onto the latest main.
main
This PR adds support for the following intrinsic functions:
__builtin_bswap{16, 32, 64}
_byteswap_{ushort, ulong, uint64}
This PR adds a new
cir.bswap
operation to represent such an intrinsic call. CIRGen and LLVMIR lowering for the new operation is included in this PR.