[llvm] d652da3 - [CopyProf] Prefer RequirePassInfoMixin
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 23 20:34:21 PDT 2026
Author: Aiden Grossman
Date: 2026-08-23T20:34:17-07:00
New Revision: d652da3416fea39653fdc1014d14e8b46ce11423
URL: https://github.com/llvm/llvm-project/commit/d652da3416fea39653fdc1014d14e8b46ce11423
DIFF: https://github.com/llvm/llvm-project/commit/d652da3416fea39653fdc1014d14e8b46ce11423.diff
LOG: [CopyProf] Prefer RequirePassInfoMixin
PassInfoMixin will be removed soon. Given these passes are sanitizer
passes, we also probably want them to run regardless of the presence of
optnone.
Reviewers: aeubanks, snehasish
Pull Request: https://github.com/llvm/llvm-project/pull/218197
Added:
Modified:
llvm/include/llvm/Transforms/Instrumentation/CopyProf.h
Removed:
################################################################################
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