llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
383 stars 100 forks source link

[CIR] Add support for byteswap intrinsic #523

Closed Lancern closed 7 months ago

Lancern commented 7 months ago

This PR adds support for the following intrinsic functions:

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.

bcardosolopes commented 7 months ago

Nice, this needs some rebasing post Nathan's latest upstream update.

Lancern commented 7 months ago

Rebased onto the latest main.