Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions llvm/docs/LangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4678,9 +4678,9 @@ elementtype may be any integer, floating-point, pointer type, or a sized
target extension type that has the ``CanBeVectorElement`` property. Vectors
of size zero are not allowed. For scalable vectors, the total number of
elements is a constant multiple (called vscale) of the specified number
of elements; vscale is a positive integer that is unknown at compile time
and the same hardware-dependent constant for all scalable vectors at run
time. The size of a specific scalable vector type is thus constant within
of elements; vscale is a positive power-of-two integer that is unknown at
compile time and the same hardware-dependent constant for all scalable vectors
at run time. The size of a specific scalable vector type is thus constant within
IR, even if the exact size in bytes cannot be determined until run time.

:Examples:
Expand Down Expand Up @@ -31501,8 +31501,8 @@ vectors such as ``<vscale x 16 x i8>``.
Semantics:
""""""""""

``vscale`` is a positive value that is constant throughout program
execution, but is unknown at compile time.
``vscale`` is a positive power-of-two integer that is constant throughout
program execution, but is unknown at compile time.
If the result value does not fit in the result type, then the result is
a :ref:`poison value <poisonvalues>`.

Expand Down
9 changes: 5 additions & 4 deletions mlir/docs/Dialects/Vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ Finally, MLIR takes the same view on scalable Vectors as LLVM (c.f.
[VectorType](https://llvm.org/docs/LangRef.html#vector-type)):
> For scalable vectors, the total number of elements is a constant multiple
> (called vscale) of the specified number of elements; vscale is a positive
> integer that is unknown at compile time and the same hardware-dependent
> constant for all scalable vectors at run time. The size of a specific
> scalable vector type is thus constant within IR, even if the exact size in
> bytes cannot be determined until run time.
> power-of-two integer that is unknown at compile time and the same
> hardware-dependent constant for all scalable vectors at run time.
> The size of a specific scalable vector type is thus constant within
> IR, even if the exact size in bytes cannot be determined until run
> time.

### Hardware Vector Ops

Expand Down
Loading