[clang] [CIR] Add a points-to analysis skeleton (PR #244356)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 03:49:06 PST 2026
================
@@ -0,0 +1,69 @@
+//===- TestCIRPointsToAnalysis.cpp - Test CIR points-to analysis ----------===//
+//
+// 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/Pass/Pass.h"
+#include "clang/CIR/Dialect/Analysis/CIRPointsToAnalysis.h"
+
+using namespace mlir;
+
+namespace {
+
+/// Compute the points-to analysis of the operation, with limits that can be
+/// overridden, and report its results as remarks, which the tests check.
+struct TestCIRPointsToAnalysisPass
+ : PassWrapper<TestCIRPointsToAnalysisPass, OperationPass<>> {
----------------
xlauko wrote:
Every RUN line nests this pass under `cir.func`, and `Function=` is only filled in when the root is a `cir::FuncOp`. Should it be `OperationPass<cir::FuncOp>`?
https://github.com/llvm/llvm-project/pull/244356
More information about the cfe-commits
mailing list