This is an archive of the discontinued LLVM Phabricator instance.

[fir] Update fir.alloca op
ClosedPublic

Authored by clementval on Sep 30 2021, 5:22 AM.

Details

Summary

Add pinned attributes and speicifc builders.

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

Coming from PR: https://github.com/flang-compiler/f18-llvm-project/pull/1065

Co-authored-by: Kiran Chandramohan <kiran.chandramohan@arm.com>

Diff Detail

Event Timeline

clementval created this revision.Sep 30 2021, 5:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2021, 5:22 AM
clementval requested review of this revision.Sep 30 2021, 5:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2021, 5:22 AM
clementval edited the summary of this revision. (Show Details)Sep 30 2021, 5:34 AM

The pinned attribute helps mark those allocas in OpenMP regions that should not be hoisted out by an alloca hoisting pass.

LGTM.

This revision is now accepted and ready to land.Sep 30 2021, 7:49 AM
This revision was automatically updated to reflect the committed changes.

Thansk for the review Kiran. Patch pushed with you as the initial author.

mehdi_amini added inline comments.Sep 30 2021, 10:52 AM
flang/include/flang/Optimizer/Dialect/FIROps.td
282

Could the doc for the op be updated?

clementval marked an inline comment as done.Sep 30 2021, 1:25 PM
clementval added inline comments.
flang/include/flang/Optimizer/Dialect/FIROps.td
282

Added in D110877