[Docs] Update PatFrag definition in documentation
authorLuke Lau <luke@igalia.com>
Fri, 9 Dec 2022 09:55:35 +0000 (09:55 +0000)
committerAlex Bradbury <asb@igalia.com>
Fri, 9 Dec 2022 09:56:08 +0000 (09:56 +0000)
The old definition for store was outdated.

Differential Revision: https://reviews.llvm.org/D139531

llvm/docs/WritingAnLLVMBackend.rst

index 79f1e5b..ce7f4bd 100644 (file)
@@ -1317,12 +1317,10 @@ below:
 .. code-block:: text
 
   def store : PatFrag<(ops node:$val, node:$ptr),
-                      (st node:$val, node:$ptr), [{
-    if (StoreSDNode *ST = dyn_cast<StoreSDNode>(N))
-      return !ST->isTruncatingStore() &&
-             ST->getAddressingMode() == ISD::UNINDEXED;
-    return false;
-  }]>;
+                      (unindexedstore node:$val, node:$ptr)> {
+    let IsStore = true;
+    let IsTruncStore = false;
+  }
 
 ``XXXInstrInfo.td`` also generates (in ``XXXGenDAGISel.inc``) the
 ``SelectCode`` method that is used to call the appropriate processing method