Skip to content

Commit ff9509e

Browse files
committed
[SandboxVec][BottomUpVec][NFC] Add some comments
1 parent a17f11b commit ff9509e

File tree

1 file changed

+6
-1
lines changed
  • llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes

1 file changed

+6
-1
lines changed

llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ class BottomUpVec final : public FunctionPass {
3030
/// Creates and returns a vector instruction that replaces the instructions in
3131
/// \p Bndl. \p Operands are the already vectorized operands.
3232
Value *createVectorInstr(ArrayRef<Value *> Bndl, ArrayRef<Value *> Operands);
33+
/// Erases all dead instructions from the dead instruction candidates
34+
/// collected during vectorization.
3335
void tryEraseDeadInstrs();
36+
/// Packs all elements of \p ToPack into a vector and returns that vector.
3437
Value *createPack(ArrayRef<Value *> ToPack);
38+
/// Recursively try to vectorize \p Bndl and its operands.
3539
Value *vectorizeRec(ArrayRef<Value *> Bndl, unsigned Depth);
40+
/// Entry point for vectorization starting from \p Seeds.
3641
bool tryVectorize(ArrayRef<Value *> Seeds);
3742

38-
// The PM containing the pipeline of region passes.
43+
/// The PM containing the pipeline of region passes.
3944
RegionPassManager RPM;
4045

4146
public:

0 commit comments

Comments
 (0)