diff --git a/mlir/docs/CAPI.md b/mlir/docs/CAPI.md --- a/mlir/docs/CAPI.md +++ b/mlir/docs/CAPI.md @@ -45,8 +45,8 @@ The *ownership* model is encoded in the naming convention as follows. -- By default, the ownership is not transerred. -- Functions that tranfer the ownership of the result to the caller can be in +- By default, the ownership is not transferred. +- Functions that transfer the ownership of the result to the caller can be in one of two forms: * functions that create a new object have the name `mlirXCreate<...>`, for example, `mlirOperationCreate`; @@ -153,7 +153,7 @@ - `MlirY mlirXGet(MlirX, intptr_t pos)` returns 'pos'-th subobject. The sizes are accepted and returned as signed pointer-sized integers, i.e. -`intptr_t`. This typedef is avalable in C99. +`intptr_t`. This typedef is available in C99. Note that the name of subobject in the function does not necessarily match the type of the subobject. For example, `mlirOperationGetOperand` returns a @@ -190,7 +190,7 @@ ### Extensions for Dialect Attributes and Types -Dialect attributes and types can follow the example of standard attrbutes and +Dialect attributes and types can follow the example of standard attributes and types, provided that implementations live in separate directories, i.e. `include/mlir-c/<...>Dialect/` and `lib/CAPI/<...>Dialect/`. The core APIs provide implementation-private headers in `include/mlir/CAPI/IR` that allow one diff --git a/mlir/docs/Dialects/Linalg.md b/mlir/docs/Dialects/Linalg.md --- a/mlir/docs/Dialects/Linalg.md +++ b/mlir/docs/Dialects/Linalg.md @@ -268,7 +268,7 @@ buffers arbitrarily and write into them. If this conflicts with some parallel iterator requirement, this is undefined behavior. -Previous examples already ellaborate compute payloads with an unregistered function `"some_compute"`. The following code snippet shows what the result will be when using a concrete operation `addf`: +Previous examples already elaborate compute payloads with an unregistered function `"some_compute"`. The following code snippet shows what the result will be when using a concrete operation `addf`: ``` // File name: example3.mlir #indexing_maps = [ diff --git a/mlir/docs/OpDefinitions.md b/mlir/docs/OpDefinitions.md --- a/mlir/docs/OpDefinitions.md +++ b/mlir/docs/OpDefinitions.md @@ -1078,7 +1078,7 @@ ### Attribute decorators -There are a few important attribute adapters/decorators/modifers that can be +There are a few important attribute adapters/decorators/modifiers that can be applied to ODS attributes to specify common additional properties like optionality, default values, etc.: diff --git a/mlir/docs/Rationale/Rationale.md b/mlir/docs/Rationale/Rationale.md --- a/mlir/docs/Rationale/Rationale.md +++ b/mlir/docs/Rationale/Rationale.md @@ -214,7 +214,7 @@ We allow `index` types in tensors and memrefs as a code generation strategy has to map `index` to an implementation type and hence needs to be able to materialize corresponding values. However, the target might lack support for -`vector` values with the target specfic equivalent of the `index` type. +`vector` values with the target specific equivalent of the `index` type. ### Bit width of a non-primitive type and `index` is undefined diff --git a/mlir/docs/SPIRVToLLVMDialectConversion.md b/mlir/docs/SPIRVToLLVMDialectConversion.md --- a/mlir/docs/SPIRVToLLVMDialectConversion.md +++ b/mlir/docs/SPIRVToLLVMDialectConversion.md @@ -204,7 +204,7 @@ be: ```mlir - // Zero extending offest after broadcasting + // Zero extending offset after broadcasting %res_offset = llvm.zext %vec_offset: !llvm.vec<2 x i8> to !llvm.vec<2 x i32> ``` @@ -515,7 +515,7 @@ llvm.store %c, %res : !llvm.ptr ``` -Note that simple conversion to `alloca` may not be sufficent if the code has +Note that simple conversion to `alloca` may not be sufficient if the code has some scoping. For example, if converting ops executed in a loop into `alloca`s, a stack overflow may occur. For this case, `stacksave`/`stackrestore` pair can be used (TODO). @@ -618,7 +618,7 @@ `spv.Branch` and `spv.BranchConditional` are mapped to `llvm.br` and `llvm.cond_br`. Branch weigths for `spv.BranchConditional` are mapped to -coresponding `branch_weights` attribute of `llvm.cond_br`. When translated to +corresponding `branch_weights` attribute of `llvm.cond_br`. When translated to proper LLVM, `branch_weights` are converted into LLVM metadata associated with the conditional branch. @@ -744,7 +744,7 @@ ### `spv.func` This op declares or defines a SPIR-V function and it is converted to `llvm.func`. -This conversion handles signarture conversion, and function control attributes +This conversion handles signature conversion, and function control attributes remapping to LLVM dialect function [`passthrough` attribute](Dialects/LLVM.md#Attribute-pass-through). The following mapping is used to map [SPIR-V function control](SPIRVFunctionAttributes) to