Skip to content

Commit dd6e509

Browse files
tarunprabhuTarun Prabhu
authored andcommitted
Don't remove trailing whitespace as part of this PR
1 parent a4a483d commit dd6e509

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

flang/docs/AssumedRank.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ SSA values for assumed-rank entities have an MLIR type containing a
143143
(additionally wrapped in a `!fir.ref` type for pointers and allocatables).
144144

145145
Examples:
146-
`INTEGER :: x(..)` -> `!fir.box<!fir.array<* x i32>>`
146+
`INTEGER :: x(..)` -> `!fir.box<!fir.array<* x i32>>`
147147
`CLASS(*) :: x(..)` -> `!fir.class<!fir.array<* x none>>`
148148
`TYPE(*) :: x(..)` -> `!fir.box<!fir.array<* x none>>`
149149
`REAL, ALLOCATABLE :: x(..)` -> `!fir.ref<!fir.box<!fir.heap<!fir.array<* x f32>>>>`
150-
`TYPE(t), POINTER :: x(..)` -> `!fir.ref<!fir.box<!fir.ptr<!fir.array<* x !fir.type<t>>>>>`
150+
`TYPE(t), POINTER :: x(..)` -> `!fir.ref<!fir.box<!fir.ptr<!fir.array<* x !fir.type<t>>>>>`
151151

152152
All these FIR types are implemented as the address of a CFI_cdesc_t in code
153153
generation.
@@ -187,7 +187,7 @@ could still be relevant:
187187
support assumed-ranks, but `fir.box_tdesc` would require change since the
188188
position of the type descriptor pointer depends on the rank.
189189
- as `fir.allocmem` / `fir.global` result (assumed-ranks are never local/global
190-
entities).
190+
entities).
191191
- as `fir.embox` result (When creating descriptor for an explicit shape, the
192192
descriptor can be created with the entity rank, and then casted via
193193
`fir.convert`).
@@ -449,7 +449,7 @@ subroutine test(x)
449449
real :: x(..)
450450
end subroutine
451451
end interface
452-
452+
453453
real :: x(..)
454454
select rank (y => x)
455455
rank(*)
@@ -531,7 +531,7 @@ print *, len(x)
531531

532532
```
533533
%ele_size = fir.box_elesize %x : (!fir.box<!fir.array<*x!fir.char<?>>>) -> i64
534-
# .... divide by character KIND byte size if needed as usual
534+
# .... divide by character KIND byte size if needed as usual
535535
```
536536
#### PRESENT
537537
Implemented inline with `fir.is_present` which ends-up implemented as a check
@@ -564,7 +564,7 @@ present and is constant, `fir.box_dim` can also be used with the option to add
564564
a runtime check that RANK <= DIM. Pointers and allocatables are dereferenced,
565565
which in FIR currently creates a descriptor copy that cannot be simplified
566566
like for the previous inquiries by inserting a cast before the fir.load (the
567-
dimension info must be correctly copied).
567+
dimension info must be correctly copied).
568568

569569
#### LBOUND, SHAPE, and UBOUND
570570
When DIM is present an is present, the runtime can be used as it is currently

flang/docs/C++17.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--===- docs/C++17.md
2-
1+
<!--===- docs/C++17.md
2+
33
Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
See https://llvm.org/LICENSE.txt for license information.
55
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
6+
77
-->
88

99
# C++14/17 features used in Flang

flang/docs/C++style.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--===- docs/C++style.md
2-
1+
<!--===- docs/C++style.md
2+
33
Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
See https://llvm.org/LICENSE.txt for license information.
55
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
6+
77
-->
88

99
# Flang C++ Style Guide

flang/docs/DoConcurrent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--===- docs/DoConcurrent.md
2-
1+
<!--===- docs/DoConcurrent.md
2+
33
Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
See https://llvm.org/LICENSE.txt for license information.
55
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
6+
77
-->
88

99
# `DO CONCURRENT` isn't necessarily concurrent

flang/docs/FortranIR.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--===- docs/FortranIR.md
2-
1+
<!--===- docs/FortranIR.md
2+
33
Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
See https://llvm.org/LICENSE.txt for license information.
55
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
6+
77
-->
88

99
# Design: Fortran IR
@@ -95,7 +95,7 @@ The CFG can be directly constructed by traversing the parse tree, threading cont
9595

9696
* Pro: Straightforward implementation when control-flow is well-structured as the contextual state parallels the syntax of the language closely.
9797
* Con: The contextual state needed can become large and difficult to manage in the presence of unstructured control-flow. For example, not every labeled statement in Fortran may be a control-flow destination.
98-
* Con: The contextual state must deal with the recursive nature of the parse tree.
98+
* Con: The contextual state must deal with the recursive nature of the parse tree.
9999
* Con: Complexity. Since structured constructs cohabitate with unstructured constructs, the context needs to carry information about all combinations until the basic blocks and relations are fully elaborated.
100100

101101
#### Alternative: linearized approach (decomposing the problem)
@@ -104,7 +104,7 @@ Instead of constructing the CFG directly from a parse tree traversal, an interme
104104

105105
While each control-flow source statement is explicit in the traversal, it can be the case that not all of the targets have been traversed yet (references to forward basic blocks), and those basic blocks will not yet have been created. These relations can be captured at the time the source is traversed, added to a to do list, and then completed when all the basic blocks for the procedure have been created. Specifically, at the point when we create a terminator all information is known to create the FIR terminator, however all basic blocks that may be referenced may not have been created. Those are resolved in one final "clean up" pass over a list of closures.
106106

107-
* Con: An extra representation must be defined and constructed.
107+
* Con: An extra representation must be defined and constructed.
108108
* Pro: This representation reifies all the information that is referred to as contextual state in the direct approach.
109109
* Pro: Constructing the linearized form can be done with a simple traversal of the parse tree.
110110
* Pro: Once composed the linearized form can be traversed and a CFG directly constructed. This greatly reduces bookkeeping of contextual state.

flang/docs/Intrinsics.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,8 @@ end program rename_proc
11331133
- **Standard:** GNU extension
11341134
- **Class:** function
11351135
- **Syntax:** result = `SECNDS(refTime)`
1136-
- **Arguments:**
1137-
1136+
- **Arguments:**
1137+
11381138
| ARGUMENT | INTENT | TYPE | KIND | Description |
11391139
|-----------|--------|---------------|-------------------------|------------------------------------------|
11401140
| `refTime` | `IN` | `REAL, scalar`| REAL(KIND=4), required | Reference time in seconds since midnight |
@@ -1157,16 +1157,16 @@ END PROGRAM example_secnds
11571157
since midnight minus a user-supplied reference time `refTime`. Uses `REAL(KIND=8)` for higher precision.
11581158

11591159
#### Usage and Info
1160-
- **Standard:** PGI extension
1161-
- **Class:** function
1162-
- **Syntax:** result = `DSECNDS(refTime)`
1163-
- **Arguments:**
1160+
- **Standard:** PGI extension
1161+
- **Class:** function
1162+
- **Syntax:** result = `DSECNDS(refTime)`
1163+
- **Arguments:**
11641164

11651165
| ARGUMENT | INTENT | TYPE | KIND | Description |
11661166
|-----------|--------|---------------|-------------------------|------------------------------------------|
11671167
| `refTime` | `IN` | `REAL, scalar`| REAL(KIND=8), required | Reference time in seconds since midnight |
11681168

1169-
- **Return Value:** REAL(KIND=8), scalar — seconds elapsed since `refTime`.
1169+
- **Return Value:** REAL(KIND=8), scalar — seconds elapsed since `refTime`.
11701170
- **Purity:** Impure
11711171

11721172
#### Example

0 commit comments

Comments
 (0)