Skip to content

Commit 0cc6b46

Browse files
authored
[docs] Update a filename, fix indentation (#103018)
1 parent c6e9493 commit 0cc6b46

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

llvm/docs/ExtendingLLVM.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ complicated behavior in a single node (rotate).
9090

9191
Add an enum value for the new SelectionDAG node.
9292

93-
#. ``lib/CodeGen/SelectionDAG/SelectionDAG.cpp``:
93+
#. ``lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp``:
9494

9595
Add code to print the node to ``getOperationName``. If your new node can be
96-
evaluated at compile time when given constant arguments (such as an add of a
97-
constant with another constant), find the ``getNode`` method that takes the
98-
appropriate number of arguments, and add a case for your node to the switch
99-
statement that performs constant folding for nodes that take the same number
100-
of arguments as your new node.
96+
evaluated at compile time when given constant arguments (such as an add of a
97+
constant with another constant), find the ``getNode`` method that takes the
98+
appropriate number of arguments, and add a case for your node to the switch
99+
statement that performs constant folding for nodes that take the same number
100+
of arguments as your new node.
101101

102102
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
103103

@@ -115,12 +115,12 @@ complicated behavior in a single node (rotate).
115115
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
116116

117117
If targets may support the new node being added only at certain sizes, you
118-
will also need to add code to your node's case statement in ``LegalizeOp``
119-
to Promote your node's operands to a larger size, and perform the correct
120-
operation. You will also need to add code to ``PromoteOp`` to do this as
121-
well. For a good example, see ``ISD::BSWAP``, which promotes its operand to
122-
a wider size, performs the byteswap, and then shifts the correct bytes right
123-
to emulate the narrower byteswap in the wider type.
118+
will also need to add code to your node's case statement in ``LegalizeOp``
119+
to Promote your node's operands to a larger size, and perform the correct
120+
operation. You will also need to add code to ``PromoteOp`` to do this as
121+
well. For a good example, see ``ISD::BSWAP``, which promotes its operand to
122+
a wider size, performs the byteswap, and then shifts the correct bytes right
123+
to emulate the narrower byteswap in the wider type.
124124

125125
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
126126

0 commit comments

Comments
 (0)