Skip to content

[Flang][Doc] Fix trivial issues in HighLevelFIR.md #72278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flang/docs/HighLevelFIR.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The core impact on lowering will be:
relevant.


## Variable and Expression value concepts in HLFIR
# Variable and Expression value concepts in HLFIR

## Strengthening the variable concept

Expand Down Expand Up @@ -1035,7 +1035,7 @@ HLFIR array assignment lowering pass:
associated variables that are neither target nor pointers.
- Lower to assignment to loop:

```HFLIR
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Available lexers are here I think.
https://pygments.org/docs/lexers/

```
func.func @_QPfoo(%arg0: !fir.box<!fir.array<?xf32>>, %arg1: !fir.box<!fir.array<?xf32>>) {
%a = hlfir.declare %arg0 {fir.def = "_QPfooEa"} : !fir.box<!fir.array<?xf32>>, !fir.box<!fir.array<?xf32>>
%b = hlfir.declare %arg1 {fir.def = "_QPfooEb"} : !fir.box<!fir.array<?xf32>>, !fir.box<!fir.array<?xf32>>
Expand Down Expand Up @@ -1320,7 +1320,7 @@ Lowering of vector subscripted entities would happen as follow:
input IO) by inlining the elemental body into the created loops, and
identifying the hlfir.designate producing the result.

```HFLFIR
```
func.func @_QPfoo(%arg0: !fir.ref<!fir.array<?xf32>>, %arg1: !fir.ref<!fir.array<?xf32>>, %arg2: !fir.box<<!fir.array<?xi32>>) {
%a = hlfir.declare %arg0 {fir.def = "_QPfooEa"} : !fir.box<!fir.array<?xf32>>, !fir.ref<!fir.array<?xf32>>
%b = hlfir.declare %arg1 {fir.def = "_QPfooEb"} : !fir.box<!fir.array<?xf32>>, !fir.ref<!fir.array<?xf32>>
Expand Down