Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLIR][SPIRVToLLVM] Conversion for bitrverse and bitcount ops
Implemented conversion for `spv.BitReverse` and `spv.BitCount`. Since ODS generates builders in a different way for LLVM dialect intrinsics, I added attributes to build method in `DirectConversionPattern` class. The tests for these ops are in `bitwise-ops-to-llvm.mlir`. Differential Revision: https://reviews.llvm.org/D82286
- Loading branch information
1 parent
056a539
commit c8295de
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters