Skip to content

Commit 577f81e

Browse files
authored
[fir][NFC] Update doc for pinned attr in fir.alloca
Sync back after upstreaming review https://reviews.llvm.org/D110815
1 parent cf1fa29 commit 577f81e

File tree

1 file changed

+3
-0
lines changed
  • flang/include/flang/Optimizer/Dialect

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def fir_AllocaOp : fir_Op<"alloca", [AttrSizedOperandSegments,
123123
allocated as stack space can often be limited. A legal implementation can
124124
convert these large stack allocations to heap allocations regardless of
125125
whether the procedure is recursive or not.
126+
127+
The pinned attribute is used to flag fir.alloca operation in a specific
128+
region and avoid them being hoisted in an alloca hoisting pass.
126129
}];
127130

128131
let arguments = (ins

0 commit comments

Comments
 (0)