Skip to content

Commit

Permalink
[cranelift docs] Fix indentation in grammar block
Browse files Browse the repository at this point in the history
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
  • Loading branch information
samrat and bjorn3 authored Mar 17, 2020
1 parent 4db0bcc commit 6664b0a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cranelift/docs/ir.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ execution can never fall through to the next EBB without an explicit branch.
A `.clif` file consists of a sequence of independent function definitions:
```
function_list : { function }
function : "function" function_name signature "{" preamble function_body "}"
preamble : { preamble_decl }
function_body : { extended_basic_block }
function_list : { function }
function : "function" function_name signature "{" preamble function_body "}"
preamble : { preamble_decl }
function_body : { extended_basic_block }
```
### Static single assignment form
Expand Down Expand Up @@ -399,13 +399,13 @@ how to call the function, including parameters, return values, and the calling
convention:
```
signature : "(" [paramlist] ")" ["->" retlist] [call_conv]
paramlist : param { "," param }
retlist : paramlist
param : type [paramext] [paramspecial]
paramext : "uext" | "sext"
paramspecial : "sret" | "link" | "fp" | "csr" | "vmctx" | "sigid" | "stack_limit"
callconv : "fast" | "cold" | "system_v" | "fastcall" | "baldrdash_system_v" | "baldrdash_windows"
signature : "(" [paramlist] ")" ["->" retlist] [call_conv]
paramlist : param { "," param }
retlist : paramlist
param : type [paramext] [paramspecial]
paramext : "uext" | "sext"
paramspecial : "sret" | "link" | "fp" | "csr" | "vmctx" | "sigid" | "stack_limit"
callconv : "fast" | "cold" | "system_v" | "fastcall" | "baldrdash_system_v" | "baldrdash_windows"
```
A function's calling convention determines exactly how arguments and return
Expand Down

0 comments on commit 6664b0a

Please sign in to comment.