Author: Hardik Kumar Date: 2026-10-18T20:50:54+05:30 New Revision: d50489836e996250e586e33a38603f479ad81c87
URL: https://github.com/llvm/llvm-project/commit/d50489836e996250e586e33a38603f479ad81c87 DIFF: https://github.com/llvm/llvm-project/commit/d50489836e996250e586e33a38603f479ad81c87.diff LOG: [clang][docs] fix grammar and spelling errors in cir docs (#220877) Fix some obvious typos and grammar mistakes in the CIR docs. Signed-off-by: Hardik Kumar <[email protected]> Added: Modified: clang/docs/CIR/CleanupAndEHDesign.md clang/docs/CIR/CodeDuplication.md Removed: ################################################################################ diff --git a/clang/docs/CIR/CleanupAndEHDesign.md b/clang/docs/CIR/CleanupAndEHDesign.md index 40846953b88e82..c9b95d730d8ea3 100644 --- a/clang/docs/CIR/CleanupAndEHDesign.md +++ b/clang/docs/CIR/CleanupAndEHDesign.md @@ -889,7 +889,7 @@ LLVM IR codegen. Only the EH cleanup requires `cir.begin_cleanup` and `cir.end_cleanup` operations. If the `SomeClass` constructor throws an exception, it unwinds to an EH -catch block (`^bb3`), which has excecutes a `cir.eh.initiate` operation +catch block (`^bb3`), which executes a `cir.eh.initiate` operation before branching to a shared catch dispatch block (`^bb6`). If the `doSomething()` function throws an exception, it unwinds to an EH @@ -1419,7 +1419,7 @@ parent token, which may either be none or the token returned by a previous `cir.catchpad` operation. This is followed by a list of blocks which contain catch handlers. Each block in this list must begin with a `cir.catchpad` operation. Finally, the unwind destination is provided to -specify where excution continues if the exception is not caught by any +specify where execution continues if the exception is not caught by any of the handlers, with unwind to caller indicating that the unwind is not handled further in the current function. This operation returns a token that is used as the operand for `cir.catchpad` operations associated @@ -1466,7 +1466,7 @@ cir.catchret from %8 to ^bb8 The `cir.catchret` operation takes an operand which specifies the `cir.catchpad` operation which is completed by this operation and a -block at which excution should be resumed. +block at which execution should be resumed. #### Example: Try-catch with cleanup diff --git a/clang/docs/CIR/CodeDuplication.md b/clang/docs/CIR/CodeDuplication.md index c4ec84849b0fba..54950e41920fd7 100644 --- a/clang/docs/CIR/CodeDuplication.md +++ b/clang/docs/CIR/CodeDuplication.md @@ -55,8 +55,8 @@ implementing refactorings that make sense independent of the code sharing problem. We have discussed various ways that major classes such as CGCXXABI/CIRGenCXXABI -could be refactored to allow parts of there implementation to be shared today -through inheritence and templated base classes. However, this may prove to be +could be refactored to allow parts of their implementation to be shared today +through inheritance and templated base classes. However, this may prove to be wasted effort when the permanent solution is developed. Also, deferring this kind of intertwined implementation prevents introducing cross-dependencies that would make it more diff icult to remove one IR code generation implementation _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
