Introduced llvm.intr.bitreverse and llvm.intr.ctpop LLVM bit intrinsics to LLVM dialect. These intrinsics help with SPIR-V to LLVM conversion, allowing a direct mapping from spv.BitReverse and spv.BitCount respectively. Tests are added to roundtrip.mlir and llvm-intrinsics.mlir.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/LLVMIR/roundtrip.mlir | ||
---|---|---|
106 | Let's not pattern-match against SSA value name - llvm.intr.bitreverse"(%{{.*}}) - I know this file needs to be updated in that direction, but at least let's have new code clean. |
Comment Actions
- [MLIR][LLVMDialect] Removed pattern match on args
Removed pattern-match against SSA value name when testing bitreverse and ctpop intrinsivs in roundtrip.mlir.
Let's not pattern-match against SSA value name - llvm.intr.bitreverse"(%{{.*}}) - I know this file needs to be updated in that direction, but at least let's have new code clean.