[all-commits] [llvm/llvm-project] a2edbd: [MLIR][LLVMDialect] Added bitreverse and ctpop int...
George Mitenkov via All-commits
all-commits at lists.llvm.org
Tue Jun 23 11:26:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a2edbd8170bd55ea64466a0719e4adda4b08a195
https://github.com/llvm/llvm-project/commit/a2edbd8170bd55ea64466a0719e4adda4b08a195
Author: George Mitenkov <georgemitenk0v at gmail.com>
Date: 2020-06-23 (Tue, 23 Jun 2020)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/test/Dialect/LLVMIR/roundtrip.mlir
M mlir/test/Target/llvmir-intrinsics.mlir
Log Message:
-----------
[MLIR][LLVMDialect] Added bitreverse and ctpop intrinsics
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`.
Differential Revision: https://reviews.llvm.org/D82285
More information about the All-commits
mailing list