[clang] [mlir] [CIR] Add CIRABIRewriteContext for ABI function/call rewriting (PR #192119)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 14:50:03 PDT 2026


================
@@ -0,0 +1,406 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// Unit tests for CIRABIRewriteContext, the CIR dialect's concrete
+// implementation of the shared ABIRewriteContext interface.  Each test
+// constructs a FunctionClassification manually (no ABI library needed)
+// and verifies the resulting IR after rewriting.
+//
+//===----------------------------------------------------------------------===//
----------------
andykaylor wrote:

Do you have tests here for coercion that goes through memory?

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


More information about the cfe-commits mailing list