This is an archive of the discontinued LLVM Phabricator instance.

[flang] lower intrinsic constants to HLFIR
ClosedPublic

Authored by jeanPerier on Oct 31 2022, 8:12 AM.

Details

Summary

Use the utility to lower Constant<T> that was split from current lowering
in https://reviews.llvm.org/D136955.

The difference in HLFIR is the addition of a fir.declare on constant
outlined in memory so that all the information about them is available.

Lowering to HLFIR is enabled in Brideg::genExprValue to allow testing
of scalar constant lowering.

Diff Detail

Event Timeline

jeanPerier created this revision.Oct 31 2022, 8:12 AM
Herald added a project: Restricted Project. · View Herald Transcript
jeanPerier requested review of this revision.Oct 31 2022, 8:12 AM
PeteSteinfeld accepted this revision.Oct 31 2022, 8:39 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 31 2022, 8:39 AM
This revision was automatically updated to reflect the committed changes.