[llvm] [SandboxVectorizer] New class to actually collect and manage seeds (PR #112979)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 19:16:28 PDT 2024
================
@@ -284,6 +284,36 @@ class SeedContainer {
#endif // NDEBUG
};
+class SeedCollector {
+ SeedContainer StoreSeeds;
+ SeedContainer LoadSeeds;
+ BasicBlock *BB;
+ Context &Ctx;
+
+ /// \Returns the number of SeedBundle groups for all seed types.
+ /// This is to be used for limiting compilation time.
+ unsigned totalNumSeedGroups() const {
+ return StoreSeeds.size() + LoadSeeds.size();
+ }
+
+public:
+ SeedCollector(BasicBlock *SBBB, ScalarEvolution &SE);
+ ~SeedCollector();
+
+ BasicBlock *getBasicBlock() { return BB; }
----------------
vporpo wrote:
Shouldn't we remove it until we have a use for it then?
https://github.com/llvm/llvm-project/pull/112979
More information about the llvm-commits
mailing list