This is an archive of the discontinued LLVM Phabricator instance.

[flang] Improve runtime interface with C99 complex
ClosedPublic

Authored by jeanPerier on Sep 30 2021, 10:49 AM.

Details

Summary

Follow up of https://reviews.llvm.org/D83397.

In folding, make pgmath usage conditional to C99 complex
support in C++. Disable warning in such case.

In lowering, use an empty class type to indicate C99 complex
type in runtime interface.

Add a unit test enforcing C99 complex can be processed
by FIR runtime interface builder.

Diff Detail

Event Timeline

jeanPerier created this revision.Sep 30 2021, 10:49 AM
jeanPerier requested review of this revision.Sep 30 2021, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2021, 10:49 AM
klausler accepted this revision.Sep 30 2021, 10:52 AM
klausler added inline comments.
flang/include/flang/Evaluate/pgmath.h.inc
71

Minor English point: "distinction" is a better word than "difference" here

This revision is now accepted and ready to land.Sep 30 2021, 10:52 AM
jeanPerier marked an inline comment as done.Sep 30 2021, 11:47 PM
jeanPerier added inline comments.
flang/include/flang/Evaluate/pgmath.h.inc
71

Thanks, updated before merge

This revision was automatically updated to reflect the committed changes.
jeanPerier marked an inline comment as done.