[llvm] [LV][NFC] Introduce LoopVectorizationUtils for shared utility functions (PR #194951)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 13:17:58 PDT 2026


================
@@ -58,15 +59,6 @@ extern cl::opt<bool> PreferInLoopReductions;
 std::optional<unsigned> getMaxVScale(const Function &F,
                                      const TargetTransformInfo &TTI);
 
-/// Reports an informative message: print \p Msg for debugging purposes as well
-/// as an optimization remark. Uses either \p I as location of the remark, or
-/// otherwise \p TheLoop. If \p DL is passed, use it as debug location for the
-/// remark.
-void reportVectorizationInfo(const StringRef Msg, const StringRef ORETag,
-                             OptimizationRemarkEmitter *ORE,
-                             const Loop *TheLoop, Instruction *I = nullptr,
-                             DebugLoc DL = {});
-
----------------
fhahn wrote:

Ah right, maybe it would be simpler to move the other definitions here as well ,instead of introducing a new header, if the initial commit only moves the report helpers + the new namespace if desired?

https://github.com/llvm/llvm-project/pull/194951


More information about the llvm-commits mailing list