[Mlir-commits] [mlir] 745c167 - [mlir] Document 'ParentOneOf' with the HasParent trait

Stephen Neuendorffer llvmlistbot at llvm.org
Mon Oct 26 15:56:24 PDT 2020


Author: Stephen Neuendorffer
Date: 2020-10-26T15:56:03-07:00
New Revision: 745c1671b16afd6faac84c660eeab881dd6401cf

URL: https://github.com/llvm/llvm-project/commit/745c1671b16afd6faac84c660eeab881dd6401cf
DIFF: https://github.com/llvm/llvm-project/commit/745c1671b16afd6faac84c660eeab881dd6401cf.diff

LOG: [mlir] Document 'ParentOneOf' with the HasParent trait

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

Added: 
    

Modified: 
    mlir/docs/Traits.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Traits.md b/mlir/docs/Traits.md
index b8debb7d275f..50c67c7efa25 100644
--- a/mlir/docs/Traits.md
+++ b/mlir/docs/Traits.md
@@ -263,7 +263,8 @@ assumption based on it.
 
 ### HasParent
 
-*   `OpTrait::HasParent<typename ParentOpType>` -- `HasParent<string op>`
+*   `OpTrait::HasParent<typename ParentOpType>` -- `HasParent<string op>` or
+    `ParentOneOf<list<string> opList>`
 
 This trait provides APIs and verifiers for operations that can only be nested
 within regions that are attached to operations of `ParentOpType`.


        


More information about the Mlir-commits mailing list