[PATCH] D139531: [Docs] Update PatFrag definition in documentation

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 16:05:13 PST 2022


luke updated this revision to Diff 481470.
luke added a comment.

Remove dependent definitions, keep it succint


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139531/new/

https://reviews.llvm.org/D139531

Files:
  llvm/docs/WritingAnLLVMBackend.rst


Index: llvm/docs/WritingAnLLVMBackend.rst
===================================================================
--- llvm/docs/WritingAnLLVMBackend.rst
+++ llvm/docs/WritingAnLLVMBackend.rst
@@ -1317,12 +1317,10 @@
 .. 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139531.481470.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221209/6e46f799/attachment.bin>


More information about the llvm-commits mailing list