[llvm] [NFC][SandboxVectorizer] Disable default copy CTOR/assigment for SchedBundle. (PR #121846)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 19:57:46 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-vectorizers
@llvm/pr-subscribers-llvm-transforms
Author: None (offsake)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/121846.diff
1 Files Affected:
- (modified) llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h (+4)
``````````diff
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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/121846
More information about the llvm-commits
mailing list