[clang] [CIR][Passes] Add CallConvLowering pass skeleton (PR #189613)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 31 09:10:14 PDT 2026
================
@@ -0,0 +1,58 @@
+//===- CallConvLowering.cpp - Rewrites functions according to call convs --===//
+//
+// 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 "mlir/IR/BuiltinOps.h"
+#include "mlir/Pass/Pass.h"
+#include "clang/CIR/Dialect/IR/CIRDialect.h"
+
+#define GEN_PASS_DEF_CALLCONVLOWERING
+#include "clang/CIR/Dialect/Passes.h.inc"
+
+namespace cir {
+
+struct CallConvLowering {
+ CallConvLowering(mlir::ModuleOp module) : module(module) {}
----------------
Lancern wrote:
The name `module` conflicts with the C++20 keyword.
```suggestion
CallConvLowering(mlir::ModuleOp modOp) : modOp(modOp) {}
```
https://github.com/llvm/llvm-project/pull/189613
More information about the cfe-commits
mailing list