[mlir] Document 'ParentOneOf' with the HasParent trait
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 26 Oct 2020 22:45:57 +0000 (15:45 -0700)
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Mon, 26 Oct 2020 22:56:03 +0000 (15:56 -0700)
Differential Revision: https://reviews.llvm.org/D90197

mlir/docs/Traits.md

index b8debb7..50c67c7 100644 (file)
@@ -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`.