Skip to content

Commit bba491f

Browse files
authored
[flang][NFC] Add missing sourceBox documentation in embox ops (llvm#101221)
Just noticed that `sourceDoc` was not documented in embox operations description. this patch just add the documentation.
1 parent 46425b8 commit bba491f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

flang/include/flang/Optimizer/CodeGen/CGOps.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def fircg_XEmboxOp : fircg_Op<"ext_embox", [AttrSizedOperandSegments]> {
4848
- substring: A substring operator (offset, length) for CHARACTER.
4949
- LEN type parameters: A vector of runtime LEN type parameters that
5050
describe an correspond to the elemental derived type.
51+
- sourceBox: A box to read information from such as CFI type,
52+
type descriptor or element size to populate the new descriptor.
5153
- allocator_idx: specify special allocator to use.
5254

5355
The memref and shape arguments are mandatory. The rest are optional.

flang/include/flang/Optimizer/Dialect/FIROps.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,8 @@ def fir_EmboxOp : fir_Op<"embox", [NoMemoryEffect, AttrSizedOperandSegments]> {
782782
lower bounds and extents may not be known until runtime),
783783
- slice: an array section can be described with a slice triple,
784784
- typeparams: for emboxing a derived type with LEN type parameters,
785+
- sourceBox: A box to read information from such as CFI type,
786+
type descriptor or element size to populate the new descriptor.
785787
- accessMap: unused/experimental.
786788
- allocator_idx: specify special allocator to use.
787789
}];

0 commit comments

Comments
 (0)