Expand on operation definition to clarify the difference between operation and op.
PiperOrigin-RevId: 280555742 Change-Id: Ic4280c973c0d7415036798f2fa27ea8589562481
This commit is contained in:
parent
3c26f1a410
commit
f931708171
6
third_party/mlir/g3doc/Glossary.md
vendored
6
third_party/mlir/g3doc/Glossary.md
vendored
@ -120,6 +120,12 @@ An operation can have zero or more [regions](#region). Note that this creates a
|
||||
nested IR structure, as regions consist of blocks, which in turn, consist of a
|
||||
list of operations.
|
||||
|
||||
In MLIR, there are two main classes related to operations: `Operation` and `Op`.
|
||||
Operation is the actual opaque instance of the operation, and represents the
|
||||
general API into an operation instance. An `Op` is the base class of a derived
|
||||
operation, like `ConstantOp`, and acts as smart pointer wrapper around a
|
||||
`Operation*`
|
||||
|
||||
#### [Region](LangRef.md#regions)
|
||||
|
||||
A [CFG](https://en.wikipedia.org/wiki/Control-flow_graph) of MLIR
|
||||
|
Loading…
Reference in New Issue
Block a user