[flang-commits] [flang] b04dd35 - [fir][NFC] Update doc for pinned attr in fir.alloca
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Fri Oct 1 00:18:17 PDT 2021
Author: Valentin Clement
Date: 2021-10-01T09:18:09+02:00
New Revision: b04dd35f0e36e48aebf28798ad0bb42f1d3baff4
URL: https://github.com/llvm/llvm-project/commit/b04dd35f0e36e48aebf28798ad0bb42f1d3baff4
DIFF: https://github.com/llvm/llvm-project/commit/b04dd35f0e36e48aebf28798ad0bb42f1d3baff4.diff
LOG: [fir][NFC] Update doc for pinned attr in fir.alloca
Add descritpion for the attribute added in D110815.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D110877
Added:
Modified:
flang/include/flang/Optimizer/Dialect/FIROps.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td
index df4451b1bf432..7da7f20952a87 100644
--- a/flang/include/flang/Optimizer/Dialect/FIROps.td
+++ b/flang/include/flang/Optimizer/Dialect/FIROps.td
@@ -123,6 +123,9 @@ def fir_AllocaOp : fir_Op<"alloca", [AttrSizedOperandSegments,
allocated as stack space can often be limited. A legal implementation can
convert these large stack allocations to heap allocations regardless of
whether the procedure is recursive or not.
+
+ The pinned attribute is used to flag fir.alloca operation in a specific
+ region and avoid them being hoisted in an alloca hoisting pass.
}];
let arguments = (ins
More information about the flang-commits
mailing list