[llvm-branch-commits] [flang] [flang][fir] Add `fir.local` op for locality specifiers (PR #138505)

Kareem Ergawy via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 6 12:00:12 PDT 2025


================
@@ -3485,6 +3485,137 @@ def fir_BoxTotalElementsOp
   let hasCanonicalizer = 1;
 }
 
+def YieldOp : fir_Op<"yield",
----------------
ergawy wrote:

`fir.result` requires its parent op to have the same number of results (https://github.com/llvm/llvm-project/blob/main/flang/lib/Optimizer/Dialect/FIROps.cpp#L3205). The locality specifiers do not have results.

https://github.com/llvm/llvm-project/pull/138505


More information about the llvm-branch-commits mailing list