This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Math] Add more constant folder for Math ops.
ClosedPublic

Authored by jacquesguan on Mar 21 2022, 1:11 AM.

Details

Summary

This revision add constant folder for abs, copysign, ctlz, cttz and
ctpop.

Diff Detail

Event Timeline

jacquesguan created this revision.Mar 21 2022, 1:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 1:11 AM
jacquesguan requested review of this revision.Mar 21 2022, 1:11 AM
ftynse accepted this revision.Mar 21 2022, 2:20 AM
ftynse added inline comments.
mlir/test/Dialect/Math/canonicalize.mlir
145

Nit: a hex literal would be better here to check the correctness of the test.

This revision is now accepted and ready to land.Mar 21 2022, 2:20 AM

Change constant to hex format.

jacquesguan added inline comments.Mar 21 2022, 4:52 AM
mlir/test/Dialect/Math/canonicalize.mlir
145

Thanks, done.

This revision was automatically updated to reflect the committed changes.