[llvm] [docs] Update a filename, fix indentation (PR #103018)

Piotr Fusik via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 00:39:35 PDT 2024


https://github.com/pfusik created https://github.com/llvm/llvm-project/pull/103018

None

>From 4a83e263c09b89c90a1b919a486c44c38a8ae570 Mon Sep 17 00:00:00 2001
From: Piotr Fusik <p.fusik at samsung.com>
Date: Tue, 13 Aug 2024 09:38:51 +0200
Subject: [PATCH] [docs] Update a filename, fix indentation

---
 llvm/docs/ExtendingLLVM.rst | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

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