[llvm] 0cc6b46 - [docs] Update a filename, fix indentation (#103018)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 05:39:20 PDT 2024
Author: Piotr Fusik
Date: 2024-08-19T16:39:17+04:00
New Revision: 0cc6b464f8adb739e6f9bcc9bda8cff9bb1f1c2a
URL: https://github.com/llvm/llvm-project/commit/0cc6b464f8adb739e6f9bcc9bda8cff9bb1f1c2a
DIFF: https://github.com/llvm/llvm-project/commit/0cc6b464f8adb739e6f9bcc9bda8cff9bb1f1c2a.diff
LOG: [docs] Update a filename, fix indentation (#103018)
Added:
Modified:
llvm/docs/ExtendingLLVM.rst
Removed:
################################################################################
diff --git a/llvm/docs/ExtendingLLVM.rst b/llvm/docs/ExtendingLLVM.rst
index 12372996c96dde..3965112a20f908 100644
--- a/llvm/docs/ExtendingLLVM.rst
+++ b/llvm/docs/ExtendingLLVM.rst
@@ -90,14 +90,14 @@ complicated behavior in a single node (rotate).
Add an enum value for the new SelectionDAG node.
-#. ``lib/CodeGen/SelectionDAG/SelectionDAG.cpp``:
+#. ``lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp``:
Add code to print the node to ``getOperationName``. If your new node can be
- evaluated at compile time when given constant arguments (such as an add of a
- constant with another constant), find the ``getNode`` method that takes the
- appropriate number of arguments, and add a case for your node to the switch
- statement that performs constant folding for nodes that take the same number
- of arguments as your new node.
+ evaluated at compile time when given constant arguments (such as an add of a
+ constant with another constant), find the ``getNode`` method that takes the
+ appropriate number of arguments, and add a case for your node to the switch
+ statement that performs constant folding for nodes that take the same number
+ of arguments as your new node.
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
@@ -115,12 +115,12 @@ complicated behavior in a single node (rotate).
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
If targets may support the new node being added only at certain sizes, you
- will also need to add code to your node's case statement in ``LegalizeOp``
- to Promote your node's operands to a larger size, and perform the correct
- operation. You will also need to add code to ``PromoteOp`` to do this as
- well. For a good example, see ``ISD::BSWAP``, which promotes its operand to
- a wider size, performs the byteswap, and then shifts the correct bytes right
- to emulate the narrower byteswap in the wider type.
+ will also need to add code to your node's case statement in ``LegalizeOp``
+ to Promote your node's operands to a larger size, and perform the correct
+ operation. You will also need to add code to ``PromoteOp`` to do this as
+ well. For a good example, see ``ISD::BSWAP``, which promotes its operand to
+ a wider size, performs the byteswap, and then shifts the correct bytes right
+ to emulate the narrower byteswap in the wider type.
#. ``lib/CodeGen/SelectionDAG/LegalizeDAG.cpp``:
More information about the llvm-commits
mailing list