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

via flang-commits flang-commits at lists.llvm.org
Tue Nov 14 20:53:46 PST 2023


Author: Kiran Chandramohan
Date: 2023-11-15T04:53:42Z
New Revision: 3f743fd3a319c3b142d989b4d986e3b11fe8109f

URL: https://github.com/llvm/llvm-project/commit/3f743fd3a319c3b142d989b4d986e3b11fe8109f
DIFF: https://github.com/llvm/llvm-project/commit/3f743fd3a319c3b142d989b4d986e3b11fe8109f.diff

LOG: [Flang][Docs] Fix lexer issue in Driver and Trampoline doc (#72322)

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

Added: 
    

Modified: 
    flang/docs/FlangDriver.md
    flang/docs/InternalProcedureTrampolines.md

Removed: 
    


################################################################################
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