20#define DEBUG_TYPE "transform-warning"
35 "FailedRequestedUnrolling",
36 L->getStartLoc(), L->getHeader())
38 "loop not unrolled: the optimizer was unable to perform the "
39 "requested transformation; the transformation might be disabled "
41 "specified as part of an unsupported transformation ordering");
48 "FailedRequestedUnrollAndJamming",
49 L->getStartLoc(), L->getHeader())
50 <<
"loop not unroll-and-jammed: the optimizer was unable to perform "
51 "the requested transformation; the transformation might be disabled "
52 "or specified as part of an unsupported transformation ordering");
57 std::optional<ElementCount> VectorizeWidth =
59 std::optional<int> InterleaveCount =
62 if (!VectorizeWidth || VectorizeWidth->isVector())
65 "FailedRequestedVectorization",
66 L->getStartLoc(), L->getHeader())
67 <<
"loop not vectorized: the optimizer was unable to perform the "
68 "requested transformation; the transformation might be disabled "
69 "or specified as part of an unsupported transformation ordering");
70 else if (InterleaveCount.value_or(0) != 1)
73 "FailedRequestedInterleaving",
74 L->getStartLoc(), L->getHeader())
75 <<
"loop not interleaved: the optimizer was unable to perform the "
76 "requested transformation; the transformation might be disabled "
77 "or specified as part of an unsupported transformation ordering");
84 "FailedRequestedDistribution",
85 L->getStartLoc(), L->getHeader())
86 <<
"loop not distributed: the optimizer was unable to perform the "
87 "requested transformation; the transformation might be disabled or "
88 "specified as part of an unsupported transformation ordering");
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
Diagnostic information for optimization failures.
Analysis pass that exposes the LoopInfo for a function.
SmallVector< LoopT *, 4 > getLoopsInPreorder() const
Return all of the loops in the function in preorder across the loop nests, with siblings in forward p...
Represents a single loop in the control flow graph.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
StringRef - Represent a constant reference to a string, i.e.
std::string str() const
str - Get the contents as an std::string.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::optional< ElementCount > getOptionalElementCountLoopAttribute(const Loop *TheLoop)
Find a combination of metadata ("llvm.loop.vectorize.width" and "llvm.loop.vectorize....
LLVM_ABI TransformationMode hasVectorizeTransformation(const Loop *L)
LLVM_ABI TransformationMode hasUnrollAndJamTransformation(const Loop *L)
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
LLVM_ABI TransformationMode hasUnrollTransformation(const Loop *L)
LLVM_ABI TransformationMode hasDistributeTransformation(const Loop *L)
LLVM_ABI std::optional< int > getOptionalIntLoopAttribute(const Loop *TheLoop, StringRef Name)
Find named metadata for a loop with an integer value.
@ TM_ForcedByUser
The transformation was directed by the user, e.g.
LLVM_ABI StringRef getLoopVectorizeKindPrefix(const Loop *L)
Return a short prefix describing the loop's vectorizer origin based on the llvm.loop....
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.