Skip to content

Commit 825e902

Browse files
committed
fix typos
1 parent 2dbed9a commit 825e902

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/docs/GlobalISel/MIRPatterns.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ The following expansions are available for MIR patterns:
374374
~~~~~~~~~~~~~~~~~~~~
375375

376376
``GICombineRule`` also supports a single ``combine`` pattern, which is a shorter way to
377-
declare patterns that just match one or more instruction, then defer all remaining matching
377+
declare patterns that just match one or more instructions, then defer all remaining matching
378378
and rewriting logic to C++ code.
379379

380380
.. code-block:: text

llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-cxx.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def NoMatchTwoApply : GICombineRule<
2828
(match (G_SEXT $a, $y)),
2929
(apply "APPLY0", "APPLY1")>;
3030

31-
def CopmbineCXXOrder : GICombineRule<
31+
def CombineCXXOrder : GICombineRule<
3232
(defs root:$a),
3333
(combine (G_ZEXT $a, $y), "A0", "return A1")>;
3434

@@ -37,7 +37,7 @@ def MyCombiner: GICombiner<"GenMyCombiner", [
3737
TwoMatchTwoApply,
3838
TwoMatchNoApply,
3939
NoMatchTwoApply,
40-
CopmbineCXXOrder
40+
CombineCXXOrder
4141
]>;
4242

4343
// CHECK: bool GenMyCombiner::testMIPredicate_MI(unsigned PredicateID, const MachineInstr & MI, const MatcherState &State) const {
@@ -133,7 +133,7 @@ def MyCombiner: GICombiner<"GenMyCombiner", [
133133
// CHECK-NEXT: /* 472 */ // No operand predicates
134134
// CHECK-NEXT: /* 472 */ // MIs[0] y
135135
// CHECK-NEXT: /* 472 */ // No operand predicates
136-
// CHECK-NEXT: /* 472 */ // Combiner Rule #4: CopmbineCXXOrder
136+
// CHECK-NEXT: /* 472 */ // Combiner Rule #4: CombineCXXOrder
137137
// CHECK-NEXT: /* 472 */ GIR_DoneWithCustomAction, /*Fn*/GIMT_Encode2(GICXXCustomAction_GICombiner3),
138138
// CHECK-NEXT: /* 475 */ // Label 8: @475
139139
// CHECK-NEXT: /* 475 */ GIM_Reject,

0 commit comments

Comments
 (0)