Skip to content

Commit 7a8845c

Browse files
committed
Improve docs
1 parent 00c38d4 commit 7a8845c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,18 +1448,18 @@ def LLVM_GlobalCtorsOp : LLVM_Op<"mlir.global_ctors", [
14481448
of priority (i.e. lowest first) when the module is loaded. The order of
14491449
functions with the same priority is not defined. This operation is
14501450
translated to LLVM's global_ctors global variable. The initializer
1451-
functions are run at load time. However, if the associated data is not `#llvm.zero`,
1452-
functions only run if the data is not discarded.
1451+
functions are run at load time. However, if the associated data is not
1452+
`#llvm.zero`, functions only run if the data is not discarded.
14531453

14541454
Examples:
14551455

14561456
```mlir
1457-
llvm.mlir.global_ctors {ctors = [@ctor], data = [#llvm.zero],
1458-
priorities = [0]}
14591457
llvm.func @ctor() {
14601458
...
14611459
llvm.return
14621460
}
1461+
llvm.mlir.global_ctors ctors = [@ctor], priorities = [0],
1462+
data = [#llvm.zero]
14631463
```
14641464

14651465
}];
@@ -1482,21 +1482,21 @@ def LLVM_GlobalDtorsOp : LLVM_Op<"mlir.global_dtors", [
14821482
let summary = "LLVM dialect global_dtors.";
14831483
let description = [{
14841484
Specifies a list of destructor functions and priorities. The functions
1485-
referenced by this array will be called in descending order of priority (i.e.
1486-
highest first) when the module is unloaded. The order of functions with the
1487-
same priority is not defined. This operation is translated to LLVM's
1488-
global_dtors global variable. The destruction functions are run at load time.
1489-
However, if the associated data is not `#llvm.zero`, functions only run if the data
1490-
is not discarded.
1485+
referenced by this array will be called in descending order of priority
1486+
(i.e. highest first) when the module is unloaded. The order of functions
1487+
with the same priority is not defined. This operation is translated to
1488+
LLVM's global_dtors global variable. The destruction functions are run at
1489+
load time. However, if the associated data is not `#llvm.zero`, functions
1490+
only run if the data is not discarded.
14911491

14921492
Examples:
14931493

14941494
```mlir
14951495
llvm.func @dtor() {
14961496
llvm.return
14971497
}
1498-
llvm.mlir.global_dtors {dtors = [@dtor], data = [#llvm.zero],
1499-
priorities = [0]}
1498+
llvm.mlir.global_dtors dtors = [@dtor], priorities = [0],
1499+
data = [#llvm.zero]
15001500
```
15011501
}];
15021502
let assemblyFormat = [{

0 commit comments

Comments
 (0)