[llvm] [PM] Move PassInfoMixin to detail namespace (PR #218198)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 20:35:04 PDT 2026


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/218198

>From cfba34e0de96c006d3ba8f22cf72652427111a4f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sun, 23 Aug 2026 05:27:35 +0000
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?=
 =?UTF-8?q?s=20to=20main=20this=20commit=20is=20based=20on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.7

[skip ci]
---
 llvm/include/llvm/Transforms/Instrumentation/CopyProf.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/include/llvm/Transforms/Instrumentation/CopyProf.h b/llvm/include/llvm/Transforms/Instrumentation/CopyProf.h
index 5755b4ccd693b..53586b5d6c01f 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/CopyProf.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/CopyProf.h
@@ -20,7 +20,7 @@ namespace llvm {
 
 // Early-stage pass that instruments special member functions to call into the
 // CopyProf runtime.
-class CopyProfPass : public PassInfoMixin<CopyProfPass> {
+class CopyProfPass : public RequiredPassInfoMixin<CopyProfPass> {
 public:
   CopyProfPass() = default;
   LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM);
@@ -30,7 +30,7 @@ class CopyProfPass : public PassInfoMixin<CopyProfPass> {
 
 // Module-level pass that inserts the CopyProf runtime initialization
 // constructor and hooks it into @llvm.global_ctors.
-class ModuleCopyProfPass : public PassInfoMixin<ModuleCopyProfPass> {
+class ModuleCopyProfPass : public RequiredPassInfoMixin<ModuleCopyProfPass> {
 public:
   ModuleCopyProfPass() = default;
   LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
@@ -40,7 +40,7 @@ class ModuleCopyProfPass : public PassInfoMixin<ModuleCopyProfPass> {
 
 // Late-stage pass that instruments store instructions to detect whether an
 // object copy has been modified before it is destructed.
-class CopyProfStoresPass : public PassInfoMixin<CopyProfStoresPass> {
+class CopyProfStoresPass : public RequiredPassInfoMixin<CopyProfStoresPass> {
 public:
   CopyProfStoresPass() = default;
   LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM);



More information about the llvm-commits mailing list