Implement and test CtPop and BitReverse in standard, with lowering to LLVM. Test LLVM's cttz.
The cttz lowering is a bit tricky, as the second argument must be set to i1 0,
so that waits until later.
Paths
| Differential D83401
[MLIR] CtPop and BitReverse in LLVMIR and Standard (with lowering), and Cttz in LLVMIR Changes PlannedPublic Authored by shawnl on Jul 8 2020, 8:20 AM.
Details Summary Implement and test CtPop and BitReverse in standard, with lowering to LLVM. Test LLVM's cttz. The cttz lowering is a bit tricky, as the second argument must be set to i1 0,
Diff Detail
Event Timeline
Revision Contents
Diff 276443 mlir/include/mlir/Dialect/CommonFolders.h
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/include/mlir/IR/OpBase.td
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Conversion/StandardToLLVM/standard-to-llvm.mlir
mlir/test/Target/llvmir.mlir
|
clang-format: please reformat the code