[flang-commits] [flang] [Flang][Doc] Fix trivial issues in HighLevelFIR.md (PR #72278)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Nov 14 08:03:21 PST 2023


https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/72278

Fixes section depth and removes annotation of source as HLFIR since this is not currently understood by the lexer. Fixing these issues help reduce warnings in the documentation CI for LLVM.

>From 7ecf5d80d729a5d027075154e0407c444eb7387b Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Tue, 14 Nov 2023 15:33:24 +0000
Subject: [PATCH] [Flang][Doc] Fix trivial issues in HighLevelFIR.md

Fixes section depth and removes annotation of source as HLFIR since
this is not currently understood by the lexer.
---
 flang/docs/HighLevelFIR.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flang/docs/HighLevelFIR.md b/flang/docs/HighLevelFIR.md
index fa3d943e59474f0..15b2d44a08f9f00 100644
--- a/flang/docs/HighLevelFIR.md
+++ b/flang/docs/HighLevelFIR.md
@@ -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
 
@@ -1035,7 +1035,7 @@ HLFIR array assignment lowering pass:
     associated variables that are neither target nor pointers.
 -   Lower to assignment to loop:
 
-```HFLIR
+```
 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>>
@@ -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>>



More information about the flang-commits mailing list