This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add lowering from math::Log1p to LLVM
ClosedPublic

Authored by ezhulenev on Mar 15 2021, 2:39 PM.

Details

Summary

[mlir] Add lowering from math::Log1p to LLVM

Diff Detail

Event Timeline

ezhulenev created this revision.Mar 15 2021, 2:39 PM
ezhulenev requested review of this revision.Mar 15 2021, 2:39 PM
ezhulenev edited the summary of this revision. (Show Details)Mar 15 2021, 2:40 PM
ezhulenev added a reviewer: cota.
cota accepted this revision.Mar 16 2021, 7:17 AM
This revision is now accepted and ready to land.Mar 16 2021, 7:17 AM

I wonder if this is something that should be instead implemented as an "expansion" pass on math dialect, converting it to std.constant, std.addf and math.log that are already handled by further lowerings.

This revision was automatically updated to reflect the committed changes.

I wonder if this is something that should be instead implemented as an "expansion" pass on math dialect, converting it to std.constant, std.addf and math.log that are already handled by further lowerings.

I haven't seen an answer to this. Is there any reason why we should grow "standard-to-llvm" further instead of having more local conversions?

I haven't seen an answer to this. Is there any reason why we should grow "standard-to-llvm" further instead of having more local conversions?

+1