This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add fir.box_typecode operation
ClosedPublic

Authored by clementval on Nov 11 2022, 4:22 AM.

Details

Summary

fir.box_typecode operation allows to retrieve the type code
from a boxed value. This will be used in the fir.select_type conversion
to if-then-else ladder for type guard statement with intrinsic type spec
instead of using a runtime call.

Diff Detail

Event Timeline

clementval created this revision.Nov 11 2022, 4:22 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 11 2022, 4:22 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Nov 11 2022, 4:22 AM
clementval edited the summary of this revision. (Show Details)Nov 11 2022, 11:53 AM
jeanPerier accepted this revision.Nov 14 2022, 1:17 AM

Looks good

This revision is now accepted and ready to land.Nov 14 2022, 1:17 AM
This revision was automatically updated to reflect the committed changes.