Skip to content

Commit 3787248

Browse files
Alex Kitchensmark-i-m
authored andcommitted
Keep glossary definition of codegen
1 parent ec8d049 commit 3787248

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/appendix/glossary.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Term | Meaning
99
AST | the abstract syntax tree produced by the syntax crate; reflects user syntax very closely.
1010
binder | a "binder" is a place where a variable or type is declared; for example, the `<T>` is a binder for the generic type parameter `T` in `fn foo<T>(..)`, and \|`a`\|` ...` is a binder for the parameter `a`. See [the background chapter for more](./appendix/background.html#free-vs-bound)
1111
bound variable | a "bound variable" is one that is declared within an expression/term. For example, the variable `a` is bound within the closure expession \|`a`\|` a * 2`. See [the background chapter for more](./appendix/background.html#free-vs-bound)
12+
codegen | the code to translate MIR into LLVM IR.
1213
codegen unit | when we produce LLVM IR, we group the Rust code into a number of codegen units. Each of these units is processed by LLVM independently from one another, enabling parallelism. They are also the unit of incremental re-use.
1314
completeness | completeness is a technical term in type theory. Completeness means that every type-safe program also type-checks. Having both soundness and completeness is very hard, and usually soundness is more important. (see "soundness").
1415
control-flow graph | a representation of the control-flow of a program; see [the background chapter for more](./appendix/background.html#cfg)
@@ -61,7 +62,7 @@ tcx | the "typing context", main data structure of the comp
6162
trait reference | the name of a trait along with a suitable set of input type/lifetimes ([see more](./traits/goals-and-clauses.html#trait-ref))
6263
token | the smallest unit of parsing. Tokens are produced after lexing ([see more](the-parser.html)).
6364
[TLS] | Thread-Local Storage. Variables may be defined so that each thread has its own copy (rather than all threads sharing the variable). This has some interactions with LLVM. Not all platforms support TLS.
64-
codegen | the code to translate MIR into LLVM IR.
65+
trans | the code to translate MIR into LLVM IR. Renamed to codegen.
6566
trait reference | a trait and values for its type parameters ([see more](ty.html)).
6667
ty | the internal representation of a type ([see more](ty.html)).
6768
UFCS | Universal Function Call Syntax. An unambiguous syntax for calling a method ([see more](type-checking.html)).

0 commit comments

Comments
 (0)