[llvm] [NFC][SandboxVectorizer] Disable default copy CTOR/assigment for SchedBundle. (PR #121846)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 14:02:37 PST 2025
https://github.com/offsake created https://github.com/llvm/llvm-project/pull/121846
Explicitly disable copy CTOR/assigment for SchedBundle to avoid acsidentional
usage of default versions that do not handle Nodes copies properly.
A developer will need to implement them once required.
>From 3a1fdd2c782e5a1f9cb29180794d9aaadfaf065e Mon Sep 17 00:00:00 2001
From: SergeyZ <sergey.i.zverev at intel.com>
Date: Mon, 6 Jan 2025 13:04:09 -0800
Subject: [PATCH] [NFC][SandboxVectorizer] Disable default copy CTOR/assigment
for SchedBundle.
Explicitly disable copy CTOR/assigment for SchedBundle to avoid acsidentional
usage of default versions that do not handle Nodes copies properly.
A developer will need to implement them once required.
---
.../llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
index 3959f84c601e04..9b68d47ce39aac 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h
@@ -79,6 +79,10 @@ class SchedBundle {
for (auto *N : this->Nodes)
N->setSchedBundle(*this);
}
+ /// Copy CTOR (unimplemented).
+ SchedBundle(const SchedBundle &Other) = delete;
+ /// Copy Assignment (unimplemented).
+ SchedBundle &operator=(const SchedBundle &Other) = delete;
~SchedBundle() {
for (auto *N : this->Nodes)
N->clearSchedBundle();
More information about the llvm-commits
mailing list