This is an archive of the discontinued LLVM Phabricator instance.

[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,
so that waits until later.

Diff Detail

Event Timeline

shawnl created this revision.Jul 8 2020, 8:20 AM

Please start an RFC on Discourse for any addition to the standard dialect. Thanks!

shawnl edited the summary of this revision. (Show Details)Jul 8 2020, 10:14 AM
shawnl planned changes to this revision.Jul 10 2020, 9:44 AM