[flang-commits] [flang] [Flang][Docs] Fix lexer issue in Driver and Trampoline doc (PR #72322)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Tue Nov 14 15:14:12 PST 2023


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

Allowed lexers are documented in https://pygments.org/docs/lexers/.

>From b343b84aa662a3d79831a77072e5dea217d5c994 Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Tue, 14 Nov 2023 23:09:09 +0000
Subject: [PATCH] [Flang][Docs] Fix lexer issue in Driver and Trampoline doc

Allowed lexers are documented in https://pygments.org/docs/lexers/.
---
 flang/docs/FlangDriver.md                  |  4 ++--
 flang/docs/InternalProcedureTrampolines.md | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/flang/docs/FlangDriver.md b/flang/docs/FlangDriver.md
index 6e48a332eafcc97..5231e78335f6add 100644
--- a/flang/docs/FlangDriver.md
+++ b/flang/docs/FlangDriver.md
@@ -61,7 +61,7 @@ Note that similarly to `-Xclang` in `clang`, you can use `-Xflang` to forward a
 frontend specific flag from the _compiler_ directly to the _frontend_ driver,
 e.g.:
 
-```lang=bash
+```bash
 flang-new -Xflang -fdebug-dump-parse-tree input.f95
 ```
 
@@ -69,7 +69,7 @@ In the invocation above, `-fdebug-dump-parse-tree` is forwarded to `flang-new
 -fc1`. Without the forwarding flag, `-Xflang`, you would see the following
 warning:
 
-```lang=bash
+```bash
 flang-new: warning: argument unused during compilation:
 ```
 
diff --git a/flang/docs/InternalProcedureTrampolines.md b/flang/docs/InternalProcedureTrampolines.md
index 73990be27ef51d4..ef02f1d737c82f6 100644
--- a/flang/docs/InternalProcedureTrampolines.md
+++ b/flang/docs/InternalProcedureTrampolines.md
@@ -170,15 +170,15 @@ as an actual argument to `foo()`.
 
 The trampoline has the following structure:
 
-```assembly
+```asm
 callee_trampoline:
-  MOV <static-chain-address>, R#
-  JMP <callee-address>
+  MOV static-chain-address, R#
+  JMP callee-address
 ```
 
 Where:
-- `<callee-address>` is the address of function `callee()`.
-- `<static-chain-address>` - the address of the static chain
+- `callee-address` is the address of function `callee()`.
+- `static-chain-address` - the address of the static chain
   object created inside `host()`.
 - `R#` is a target specific register.
 
@@ -249,7 +249,7 @@ One of the options is to use separate allocations for the trampoline code
 and the trampoline "data".
 
 The trampolines may be located in non-writeable executable memory:
-```assembly
+```asm
 trampoline0:
   MOV (TDATA[0].static_chain_address), R#
   JMP (TDATA[0].callee_address)



More information about the flang-commits mailing list