From 5ad06e43992a766fe048a1b964fd6fd1f10ade71 Mon Sep 17 00:00:00 2001 From: Junda Su Date: Thu, 24 Sep 2020 12:44:14 +0300 Subject: [PATCH] [MLIR][docs] Fix typos Fixed typos in SPIR-V to LLVM manual. Reviewed By: georgemitenkov Differential Revision: https://reviews.llvm.org/D88202 --- mlir/docs/SPIRVToLLVMDialectConversion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/docs/SPIRVToLLVMDialectConversion.md b/mlir/docs/SPIRVToLLVMDialectConversion.md index c28128e0e7eb..e5125d5301c9 100644 --- a/mlir/docs/SPIRVToLLVMDialectConversion.md +++ b/mlir/docs/SPIRVToLLVMDialectConversion.md @@ -51,7 +51,7 @@ SPIR-V Dialect | LLVM Dialect SPIR-V distinguishes between array type and run-time array type, the length of which is not known at compile time. In LLVM, it is possible to index beyond the -end of the array. Therfore, runtime array can be implemented as a zero length +end of the array. Therefore, runtime array can be implemented as a zero length array type. Moreover, SPIR-V supports the notion of array stride. Currently only natural @@ -617,7 +617,7 @@ As well as: ### Branch ops `spv.Branch` and `spv.BranchConditional` are mapped to `llvm.br` and -`llvm.cond_br`. Branch weigths for `spv.BranchConditional` are mapped to +`llvm.cond_br`. Branch weights for `spv.BranchConditional` are mapped 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.