Expand on operation definition to clarify the difference between operation and op.
authorLucy Fox <lucyfox@google.com>
Fri, 15 Nov 2019 01:54:10 +0000 (17:54 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 15 Nov 2019 02:16:01 +0000 (18:16 -0800)
PiperOrigin-RevId: 280555742

mlir/g3doc/Glossary.md

index a0752c3..542d375 100644 (file)
@@ -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