[llvm] 412a139 - [Docs] Update PatFrag definition in documentation
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 01:56:36 PST 2022
Author: Luke Lau
Date: 2022-12-09T09:56:08Z
New Revision: 412a139d1f8d06d0d0fe4fa1c8fc66f51154c3f1
URL: https://github.com/llvm/llvm-project/commit/412a139d1f8d06d0d0fe4fa1c8fc66f51154c3f1
DIFF: https://github.com/llvm/llvm-project/commit/412a139d1f8d06d0d0fe4fa1c8fc66f51154c3f1.diff
LOG: [Docs] Update PatFrag definition in documentation
The old definition for store was outdated.
Differential Revision: https://reviews.llvm.org/D139531
Added:
Modified:
llvm/docs/WritingAnLLVMBackend.rst
Removed:
################################################################################
diff --git a/llvm/docs/WritingAnLLVMBackend.rst b/llvm/docs/WritingAnLLVMBackend.rst
index 79f1e5b4dea0..ce7f4bddd10d 100644
--- a/llvm/docs/WritingAnLLVMBackend.rst
+++ b/llvm/docs/WritingAnLLVMBackend.rst
@@ -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
More information about the llvm-commits
mailing list