[flang-commits] [clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

Ming Yan via flang-commits flang-commits at lists.llvm.org
Thu Nov 27 00:11:24 PST 2025


================
@@ -0,0 +1,311 @@
+//===-- FIRToCoreMLIR.cpp -------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "flang/Optimizer/Dialect/FIRCG/CGOps.h"
+#include "flang/Optimizer/Dialect/FIRDialect.h"
+#include "flang/Optimizer/Transforms/Passes.h"
+#include "mlir/Dialect/Affine/IR/AffineOps.h"
----------------
NexMing wrote:

It’s something left over from my various experiments (such as using memrefs with AffineMaps or trying to map array indices with `affine.apply`). I recommend keeping it, as it’s often very useful.

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


More information about the flang-commits mailing list