This is an archive of the discontinued LLVM Phabricator instance.

[fir] Avoid slice with substr in fir.array_load, fir.array_coor and fir.array_merge_store
ClosedPublic

Authored by clementval on Oct 26 2021, 12:06 PM.

Details

Summary

Substring information on slice operation has been added in D112441.
The operations fir.array_load, fir.array_coor and fir.array_merge_store can take
a slice but not with a substring. This patch add this check in their verifier.

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

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

Diff Detail

Event Timeline

clementval created this revision.Oct 26 2021, 12:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 12:06 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 26 2021, 12:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2021, 12:06 PM
schweitz accepted this revision.Oct 26 2021, 12:10 PM
This revision is now accepted and ready to land.Oct 26 2021, 12:10 PM