This is an archive of the discontinued LLVM Phabricator instance.

[fir] Update fir.extract_value and fir.insert_value ops
ClosedPublic

Authored by clementval on Sep 28 2021, 1:31 PM.

Details

Summary

Move coor operand from variadic values to ArrayAttr.
Update assembly format.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Sep 28 2021, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2021, 1:31 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Sep 28 2021, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2021, 1:31 PM
mehdi_amini added inline comments.Sep 28 2021, 11:20 PM
flang/include/flang/Optimizer/Dialect/FIROps.td
1933

There is no definition for these builder, which makes think this isn't useful / used right now. Can you remove this? (same below)

Remove unused builder for now

Premerge tests indicates build failures in flang?

Add builders back with their definitions. Build fails without them.

clementval marked an inline comment as done.Sep 29 2021, 11:41 AM

LGTM.

flang/include/flang/Optimizer/Dialect/FIROps.td
2216

Not probably for this patch, but I think we can use TypesMatch for adt and dst.

This revision is now accepted and ready to land.Sep 29 2021, 2:23 PM
clementval marked an inline comment as done.Sep 30 2021, 1:16 AM
clementval added inline comments.
flang/include/flang/Optimizer/Dialect/FIROps.td
2216

Right. I'll keep a note on this and we can make a patch later.

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