Skip to content

Commit 38e42db

Browse files
Regenerate MLIR Bindings
1 parent f4ecbdb commit 38e42db

File tree

6 files changed

+30
-50
lines changed

6 files changed

+30
-50
lines changed

src/mlir/Dialects/Affine.jl

+15-15
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ...API
1616
"""
1717
`apply`
1818
19-
The `affine.apply` operation applies an [affine mapping](https://mlir.llvm.org/docs/Dialects/Affine/#affine-maps)
19+
The `affine.apply` operation applies an [affine mapping](#affine-maps)
2020
to a list of SSA values, yielding a single SSA value. The number of
2121
dimension and symbol arguments to `affine.apply` must be equal to the
2222
respective number of dimensional and symbolic inputs to the affine mapping;
@@ -151,9 +151,9 @@ shorthand-bound ::= ssa-id | `-`? integer-literal
151151
152152
The `affine.for` operation represents an affine loop nest. It has one region
153153
containing its body. This region must contain one block that terminates with
154-
[`affine.yield`](https://mlir.llvm.org/docs/Dialects/Affine/#affineyield-affineaffineyieldop). *Note:* when
154+
[`affine.yield`](#affineyield-mliraffineyieldop). *Note:* when
155155
`affine.for` is printed in custom format, the terminator is omitted. The
156-
block has one argument of [`index`](https://mlir.llvm.org/docs/Dialects/Builtin/#indextype) type that
156+
block has one argument of [`index`](Builtin.md/#indextype) type that
157157
represents the induction variable of the loop.
158158
159159
The `affine.for` operation executes its body a number of times iterating
@@ -164,7 +164,7 @@ lower bound but does not include the upper bound.
164164
165165
The lower and upper bounds of a `affine.for` operation are represented as an
166166
application of an affine mapping to a list of SSA values passed to the map.
167-
The [same restrictions](https://mlir.llvm.org/docs/Dialects/Affine/#restrictions-on-dimensions-and-symbols) hold for
167+
The [same restrictions](#restrictions-on-dimensions-and-symbols) hold for
168168
these SSA values as for all bindings of SSA values to dimensions and
169169
symbols.
170170
@@ -296,9 +296,9 @@ iteration space defined by an integer set (a conjunction of affine
296296
constraints). A single `affine.if` may end with an optional `else` clause.
297297
298298
The condition of the `affine.if` is represented by an
299-
[integer set](https://mlir.llvm.org/docs/Dialects/Affine/#integer-sets) (a conjunction of affine constraints),
299+
[integer set](#integer-sets) (a conjunction of affine constraints),
300300
and the SSA values bound to the dimensions and symbols in the integer set.
301-
The [same restrictions](https://mlir.llvm.org/docs/Dialects/Affine/#restrictions-on-dimensions-and-symbols) hold for
301+
The [same restrictions](#restrictions-on-dimensions-and-symbols) hold for
302302
these SSA values as for all bindings of SSA values to dimensions and
303303
symbols.
304304
@@ -548,7 +548,7 @@ end
548548
operation ::= ssa-id `=` `affine.min` affine-map-attribute dim-and-symbol-use-list
549549
```
550550
551-
The `affine.min` operation applies an [affine mapping](https://mlir.llvm.org/docs/Dialects/Affine/#affine-expressions)
551+
The `affine.min` operation applies an [affine mapping](#affine-expressions)
552552
to a list of SSA values, and returns the minimum value of all result
553553
expressions. The number of dimension and symbol arguments to `affine.min`
554554
must be equal to the respective number of dimensional and symbolic inputs to
@@ -791,9 +791,9 @@ end
791791
`vector_load`
792792
793793
The `affine.vector_load` is the vector counterpart of
794-
[affine.load](https://mlir.llvm.org/docs/Dialects/Affine/#affineload-affineaffineloadop). It reads a slice from a
795-
[MemRef](https://mlir.llvm.org/docs/Dialects/Builtin/#memreftype), supplied as its first operand,
796-
into a [vector](https://mlir.llvm.org/docs/Dialects/Builtin/#vectortype) of the same base elemental type.
794+
[affine.load](#affineload-mliraffineloadop). It reads a slice from a
795+
[MemRef](Builtin.md/#memreftype), supplied as its first operand,
796+
into a [vector](Builtin.md/#vectortype) of the same base elemental type.
797797
The index for each memref dimension is an affine expression of loop induction
798798
variables and symbols. These indices determine the start position of the read
799799
within the memref. The shape of the return vector type determines the shape of
@@ -824,7 +824,7 @@ Example 3: 2-dim f32 vector load.
824824
TODOs:
825825
* Add support for strided vector loads.
826826
* Consider adding a permutation map to permute the slice that is read from memory
827-
(see [vector.transfer_read](https://mlir.llvm.org/docs/Dialects/Vector/#vectortransfer_read-vectortransferreadop)).
827+
(see [vector.transfer_read](../Vector/#vectortransfer_read-mlirvectortransferreadop)).
828828
"""
829829
function vector_load(
830830
memref::Value, indices::Vector{Value}; result::IR.Type, map, location=Location()
@@ -851,9 +851,9 @@ end
851851
`vector_store`
852852
853853
The `affine.vector_store` is the vector counterpart of
854-
[affine.store](https://mlir.llvm.org/docs/Dialects/Affine/#affinestore-affineaffinestoreop). It writes a
855-
[vector](https://mlir.llvm.org/docs/Dialects/Builtin/#vectortype), supplied as its first operand,
856-
into a slice within a [MemRef](https://mlir.llvm.org/docs/Dialects/Builtin/#memreftype) of the same base
854+
[affine.store](#affinestore-mliraffinestoreop). It writes a
855+
[vector](Builtin.md/#vectortype), supplied as its first operand,
856+
into a slice within a [MemRef](Builtin.md/#memreftype) of the same base
857857
elemental type, supplied as its second operand.
858858
The index for each memref dimension is an affine expression of loop
859859
induction variables and symbols. These indices determine the start position
@@ -886,7 +886,7 @@ affine.vector_store %v0, %0[%i0, %i1] : memref<100x100xf32>, vector<2x8xf32>
886886
TODOs:
887887
* Add support for strided vector stores.
888888
* Consider adding a permutation map to permute the slice that is written to memory
889-
(see [vector.transfer_write](https://mlir.llvm.org/docs/Dialects/Vector/#vectortransfer_write-vectortransferwriteop)).
889+
(see [vector.transfer_write](../Vector/#vectortransfer_write-mlirvectortransferwriteop)).
890890
"""
891891
function vector_store(
892892
value::Value, memref::Value, indices::Vector{Value}; map, location=Location()

src/mlir/Dialects/Arith.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ value of equal bit width. When operating on vectors, casts elementwise.
219219
220220
Note that this implements a logical bitcast independent of target
221221
endianness. This allows constant folding without target information and is
222-
consistent with the bitcast constant folders in LLVM (see
222+
consitent with the bitcast constant folders in LLVM (see
223223
https://github.com/llvm/llvm-project/blob/18c19414eb/llvm/lib/IR/ConstantFold.cpp#L168)
224224
For targets where the source and target type have the same endianness (which
225225
is the standard), this cast will also change no bits at runtime, but it may
@@ -253,7 +253,7 @@ end
253253
254254
Signed integer division. Rounds towards positive infinity, i.e. `7 / -2 = -3`.
255255
256-
Division by zero, or signed division overflow (minimum value divided by -1)
256+
Divison by zero, or signed division overflow (minimum value divided by -1)
257257
is undefined behavior. When applied to `vector` and `tensor` values, the
258258
behavior is undefined if _any_ of its elements are divided by zero or has a
259259
signed division overflow.
@@ -419,16 +419,16 @@ main reason being that comparison operations have diverging sets of
419419
attributes: integers require sign specification while floats require various
420420
floating point-related particularities, e.g., `-ffast-math` behavior,
421421
IEEE754 compliance, etc
422-
([rationale](https://mlir.llvm.org/docs/Rationale/Rationale/#splitting-floating-point-vs-integer-operations)).
422+
([rationale](../Rationale/Rationale.md#splitting-floating-point-vs-integer-operations)).
423423
The type of comparison is specified as attribute to avoid introducing ten
424424
similar operations, taking into account that they are often implemented
425425
using the same operation downstream
426-
([rationale](https://mlir.llvm.org/docs/Rationale/Rationale/#specifying-comparison-kind-as-attribute)). The
426+
([rationale](../Rationale/Rationale.md#specifying-comparison-kind-as-attribute)). The
427427
separation between signed and unsigned order comparisons is necessary
428428
because of integers being signless. The comparison operation must know how
429429
to interpret values with the foremost bit being set: negatives in two\'s
430430
complement or large positives
431-
([rationale](https://mlir.llvm.org/docs/Rationale/Rationale/#specifying-sign-in-integer-comparison-operations)).
431+
([rationale](../Rationale/Rationale.md#specifying-sign-in-integer-comparison-operations)).
432432
433433
# Example
434434

src/mlir/Dialects/Builtin.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import ...API
1717
`module_`
1818
1919
A `module` represents a top-level container operation. It contains a single
20-
[graph region](https://mlir.llvm.org/docs/LangRef/#control-flow-and-ssacfg-regions) containing a single block
20+
[graph region](../LangRef.md#control-flow-and-ssacfg-regions) containing a single block
2121
which can contain any operations and does not have a terminator. Operations
2222
within this region cannot implicitly capture values defined outside the module,
23-
i.e. Modules are [IsolatedFromAbove](https://mlir.llvm.org/docs/Traits/#isolatedfromabove). Modules have
24-
an optional [symbol name](https://mlir.llvm.org/docs/SymbolsAndSymbolTables/) which can be used to refer
23+
i.e. Modules are [IsolatedFromAbove](../Traits.md#isolatedfromabove). Modules have
24+
an optional [symbol name](../SymbolsAndSymbolTables.md) which can be used to refer
2525
to them in operations.
2626
2727
# Example

src/mlir/Dialects/Func.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ to a `func.func` operation
121121
MLIR does not allow direct references to functions in SSA operands because
122122
the compiler is multithreaded, and disallowing SSA values to directly
123123
reference a function simplifies this
124-
([rationale](https://mlir.llvm.org/docs/Rationale/Rationale/#multithreading-the-compiler)).
124+
([rationale](../Rationale/Rationale.md#multithreading-the-compiler)).
125125
"""
126126
function constant(; result_0::IR.Type, value, location=Location())
127127
op_ty_results = IR.Type[result_0,]

src/mlir/Dialects/MemRef.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ element type of the memref.
206206
207207
A set `nontemporal` attribute indicates that this load is not expected to
208208
be reused in the cache. For details, refer to the
209-
[LLVM load instruction](https://llvm.org/docs/LangRef.html#load-instruction).
209+
[https://llvm.org/docs/LangRef.html#load-instruction](LLVM load instruction).
210210
211211
# Example
212212
@@ -315,7 +315,7 @@ end
315315
The `alloca` operation allocates memory on the stack, to be automatically
316316
released when control transfers back from the region of its closest
317317
surrounding operation with an
318-
[`AutomaticAllocationScope`](https://mlir.llvm.org/docs/Traits/#automaticallocationscope) trait.
318+
[`AutomaticAllocationScope`](../Traits.md/#automaticallocationscope) trait.
319319
The amount of memory allocated is specified by its memref and additional
320320
operands. For example:
321321
@@ -1238,7 +1238,7 @@ memref.
12381238
```
12391239
12401240
If the result memref has a dynamic shape, a result dimension operand is
1241-
needed to specify its dynamic dimension. In the example below, the ssa value
1241+
needed to spefify its dynamic dimension. In the example below, the ssa value
12421242
\'%d\' specifies the unknown dimension of the result memref.
12431243
12441244
```mlir
@@ -1431,7 +1431,7 @@ be in-bounds: `0 <= idx < dim_size`
14311431
14321432
A set `nontemporal` attribute indicates that this store is not expected to
14331433
be reused in the cache. For details, refer to the
1434-
[LLVM store instruction](https://llvm.org/docs/LangRef.html#store-instruction).
1434+
[https://llvm.org/docs/LangRef.html#store-instruction](LLVM store instruction).
14351435
14361436
# Example
14371437

src/mlir/libMLIR_h.jl

+2-22
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ struct MlirDialectRegistry
260260
ptr::Ptr{Cvoid}
261261
end
262262

263-
"""
264-
MlirOperation
265-
"""
266263
struct MlirOperation
267264
ptr::Ptr{Cvoid}
268265
end
@@ -287,9 +284,6 @@ struct MlirSymbolTable
287284
ptr::Ptr{Cvoid}
288285
end
289286

290-
"""
291-
MlirAttribute
292-
"""
293287
struct MlirAttribute
294288
ptr::Ptr{Cvoid}
295289
end
@@ -298,10 +292,6 @@ struct MlirIdentifier
298292
ptr::Ptr{Cvoid}
299293
end
300294

301-
"""
302-
MlirLocation
303-
A location in MLIR.
304-
"""
305295
struct MlirLocation
306296
ptr::Ptr{Cvoid}
307297
end
@@ -310,10 +300,6 @@ struct MlirModule
310300
ptr::Ptr{Cvoid}
311301
end
312302

313-
"""
314-
MlirType
315-
A type in MLIR.
316-
"""
317303
struct MlirType
318304
ptr::Ptr{Cvoid}
319305
end
@@ -3372,7 +3358,7 @@ end
33723358
"""
33733359
mlirIntegerSetIsCanonicalEmpty(set)
33743360
3375-
Checks whether the given set is a canonical empty set, e.g., the set returned by [`Reactant.MLIR.API.mlirIntegerSetEmptyGet`](@ref).
3361+
Checks whether the given set is a canonical empty set, e.g., the set returned by [`mlirIntegerSetEmptyGet`](@ref).
33763362
"""
33773363
function mlirIntegerSetIsCanonicalEmpty(set)
33783364
@ccall mlir_c.mlirIntegerSetIsCanonicalEmpty(set::MlirIntegerSet)::Bool
@@ -5727,7 +5713,7 @@ end
57275713
"""
57285714
mlirRankedTensorTypeGet(rank, shape, elementType, encoding)
57295715
5730-
Creates a tensor type of a fixed rank with the given shape, element type, and optional encoding in the same context as the element type. The type is owned by the context. Tensor types without any specific encoding field should assign [`Reactant.MLIR.API.mlirAttributeGetNull`](@ref)() to this parameter.
5716+
Creates a tensor type of a fixed rank with the given shape, element type, and optional encoding in the same context as the element type. The type is owned by the context. Tensor types without any specific encoding field should assign [`mlirAttributeGetNull`](@ref)() to this parameter.
57315717
"""
57325718
function mlirRankedTensorTypeGet(rank, shape, elementType, encoding)
57335719
@ccall mlir_c.mlirRankedTensorTypeGet(
@@ -8507,9 +8493,6 @@ function mlirInferShapedTypeOpInterfaceInferReturnTypes(
85078493
)::MlirLogicalResult
85088494
end
85098495

8510-
"""
8511-
MlirPass
8512-
"""
85138496
struct MlirPass
85148497
ptr::Ptr{Cvoid}
85158498
end
@@ -10618,7 +10601,4 @@ function sdyManualAxesAttrGetAxesElem(attr, pos)
1061810601
)::MlirStringRef
1061910602
end
1062010603

10621-
"""
10622-
MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL
10623-
"""
1062410604
const MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL = -1

0 commit comments

Comments
 (0)