about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorAlex Kitchens <alex.kitchens@stitchfix.com>2018-06-24 21:56:01 -0500
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-06-26 19:04:30 -0500
commit3c51d758e2ecfa28b417f594ea29552fa946f2c4 (patch)
treecbb49af6f7eeca6834e12bb711b02e59880b1b75 /src/doc/rustc-dev-guide
parent5966f8e7846398662ffc9b021ffbfb07f08bd6a7 (diff)
downloadrust-3c51d758e2ecfa28b417f594ea29552fa946f2c4.tar.gz
rust-3c51d758e2ecfa28b417f594ea29552fa946f2c4.zip
Rename trans to codegen
This commit is a followup of changes from [b63d7e2b1c4019e40051036bcb1fd5f254a8f6e2](https://github.com/rust-lang/rust/commit/b63d7e2b1c4019e40051036bcb1fd5f254a8f6e2#diff-b433c87466d984aa7eeded378ea6c392) in the Rust source to rename trans to codegen.
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/SUMMARY.md2
-rw-r--r--src/doc/rustc-dev-guide/src/appendix/glossary.md4
-rw-r--r--src/doc/rustc-dev-guide/src/codegen.md (renamed from src/doc/rustc-dev-guide/src/trans.md)0
-rw-r--r--src/doc/rustc-dev-guide/src/high-level-overview.md4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/rustc-dev-guide/src/SUMMARY.md b/src/doc/rustc-dev-guide/src/SUMMARY.md
index 8efe304b73f..f60fee488ce 100644
--- a/src/doc/rustc-dev-guide/src/SUMMARY.md
+++ b/src/doc/rustc-dev-guide/src/SUMMARY.md
@@ -53,7 +53,7 @@
 - [Constant evaluation](./const-eval.md)
     - [miri const evaluator](./miri.md)
 - [Parameter Environments](./param_env.md)
-- [Generating LLVM IR](./trans.md)
+- [Generating LLVM IR](./codegen.md)
 - [Emitting Diagnostics](./diag.md)
 
 ---
diff --git a/src/doc/rustc-dev-guide/src/appendix/glossary.md b/src/doc/rustc-dev-guide/src/appendix/glossary.md
index a6f4e7b1c2e..c2947090a4c 100644
--- a/src/doc/rustc-dev-guide/src/appendix/glossary.md
+++ b/src/doc/rustc-dev-guide/src/appendix/glossary.md
@@ -35,7 +35,7 @@ IR                      |  Intermediate Representation. A general term in compil
 local crate             |  the crate currently being compiled.
 LTO                     |  Link-Time Optimizations. A set of optimizations offered by LLVM that occur just before the final binary is linked. These include optmizations like removing functions that are never used in the final program, for example. _ThinLTO_ is a variant of LTO that aims to be a bit more scalable and efficient, but possibly sacrifices some optimizations. You may also read issues in the Rust repo about "FatLTO", which is the loving nickname given to non-Thin LTO. LLVM documentation: [here][lto] and [here][thinlto]
 [LLVM]                  |  (actually not an acronym :P) an open-source compiler backend. It accepts LLVM IR and outputs native binaries. Various languages (e.g. Rust) can then implement a compiler front-end that output LLVM IR and use LLVM to compile to all the platforms LLVM supports.
-MIR                     |  the Mid-level IR that is created after type-checking for use by borrowck and trans ([see more](./mir/index.html))
+MIR                     |  the Mid-level IR that is created after type-checking for use by borrowck and codegen ([see more](./mir/index.html))
 miri                    |  an interpreter for MIR used for constant evaluation ([see more](./miri.html))
 normalize               |  a general term for converting to a more canonical form, but in the case of rustc typically refers to [associated type normalization](./traits/associated-types.html#normalize)
 newtype                 |  a "newtype" is a wrapper around some other type (e.g., `struct Foo(T)` is a "newtype" for `T`). This is commonly used in Rust to give a stronger type for indices.
@@ -61,7 +61,7 @@ tcx                     |  the "typing context", main data structure of the comp
 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))
 token                   |  the smallest unit of parsing. Tokens are produced after lexing ([see more](the-parser.html)).
 [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.
-trans                   |  the code to translate MIR into LLVM IR.
+codegen                 |  the code to translate MIR into LLVM IR.
 trait reference         |  a trait and values for its type parameters ([see more](ty.html)).
 ty                      |  the internal representation of a type ([see more](ty.html)).
 UFCS                    |  Universal Function Call Syntax. An unambiguous syntax for calling a method ([see more](type-checking.html)).
diff --git a/src/doc/rustc-dev-guide/src/trans.md b/src/doc/rustc-dev-guide/src/codegen.md
index f5894baa795..f5894baa795 100644
--- a/src/doc/rustc-dev-guide/src/trans.md
+++ b/src/doc/rustc-dev-guide/src/codegen.md
diff --git a/src/doc/rustc-dev-guide/src/high-level-overview.md b/src/doc/rustc-dev-guide/src/high-level-overview.md
index 8e49afaa94f..60b9e80ea23 100644
--- a/src/doc/rustc-dev-guide/src/high-level-overview.md
+++ b/src/doc/rustc-dev-guide/src/high-level-overview.md
@@ -8,7 +8,7 @@ standard library and the compiler.  This document, of course, focuses
 on the latter.
 
 Rustc consists of a number of crates, including `syntax`,
-`rustc`, `rustc_back`, `rustc_trans`, `rustc_driver`, and
+`rustc`, `rustc_back`, `rustc_codegen`, `rustc_driver`, and
 many more. The source for each crate can be found in a directory
 like `src/libXXX`, where `XXX` is the crate name.
 
@@ -25,7 +25,7 @@ The dependency structure of these crates is roughly a diamond:
               /        |         \
             /          |           \
           /            v             \
-rustc_trans    rustc_borrowck   ...  rustc_metadata
+rustc_codegen  rustc_borrowck   ...  rustc_metadata
           \            |            /
             \          |          /
               \        |        /