[llvm] c438758 - [NFC][SandboxVectorizer] Disable default copy CTOR/assigment for SchedBundle. (#121846)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 17:01:28 PST 2025


Author: offsake
Date: 2025-01-07T17:01:25-08:00
New Revision: c4387583ff79beb98ea9738469219345c13dc0d5

URL: https://github.com/llvm/llvm-project/commit/c4387583ff79beb98ea9738469219345c13dc0d5
DIFF: https://github.com/llvm/llvm-project/commit/c4387583ff79beb98ea9738469219345c13dc0d5.diff

LOG: [NFC][SandboxVectorizer] Disable default copy CTOR/assigment for SchedBundle. (#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.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Scheduler.h

Removed: 
    


################################################################################
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