File tree Expand file tree Collapse file tree 10 files changed +17
-13
lines changed Expand file tree Collapse file tree 10 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 101
101
- [ Constant evaluation] ( ./const-eval.md )
102
102
- [ miri const evaluator] ( ./miri.md )
103
103
- [ Parameter Environments] ( ./param_env.md )
104
- - [ Code Generation] ( ./codegen.md )
105
- - [ Updating LLVM] ( ./codegen/updating-llvm.md )
106
- - [ Debugging LLVM] ( ./codegen/debugging.md )
107
- - [ Backend Agnostic Codegen] ( ./codegen/backend-agnostic.md )
108
- - [ Profile-guided Optimization] ( ./profile-guided-optimization.md )
109
- - [ Sanitizers Support] ( ./sanitizers.md )
110
- - [ Debugging Support in Rust Compiler] ( ./debugging-support-in-rustc.md )
104
+ - [ Compiler Backend] ( ./backend/backend.md )
105
+ - [ Monomorphization] ( ./backend/monomorph.md )
106
+ - [ Lowering MIR] ( ./backend/lowering-mir.md )
107
+ - [ Code Generation] ( ./backend/codegen.md )
108
+ - [ Updating LLVM] ( ./backend/updating-llvm.md )
109
+ - [ Debugging LLVM] ( ./backend/debugging.md )
110
+ - [ Backend Agnostic Codegen] ( ./backend/backend-agnostic.md )
111
+ - [ Profile-guided Optimization] ( ./profile-guided-optimization.md )
112
+ - [ Sanitizers Support] ( ./sanitizers.md )
113
+ - [ Debugging Support in Rust Compiler] ( ./debugging-support-in-rustc.md )
111
114
112
115
---
113
116
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ # The Compiler Backend
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ generates an executable binary. rustc uses LLVM for code generation.
6
6
> NOTE: If you are looking for hints on how to debug code generation bugs,
7
7
> please see [ this section of the debugging chapter] [ debugging ] .
8
8
9
- [ debugging ] : codegen /debugging.html
9
+ [ debugging ] : . /debugging.md
10
10
11
11
## What is LLVM?
12
12
Original file line number Diff line number Diff line change 3
3
> NOTE: If you are looking for info about code generation, please see [ this
4
4
> chapter] [ codegen ] instead.
5
5
6
- [ codegen ] : .. /codegen.md
6
+ [ codegen ] : ./codegen.md
7
7
8
8
This section is about debugging compiler bugs in code generation (e.g. why the
9
9
compiler generated some piece of code or crashed in LLVM). LLVM is a big
Original file line number Diff line number Diff line change
1
+ # Monomorphization
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
This chapter contains a few tips to debug the compiler. These tips aim to be
5
5
useful no matter what you are working on. Some of the other chapters have
6
6
advice about specific parts of the compiler (e.g. the [ Queries Debugging and
7
- Testing
8
- chapter] ( ./incrcomp-debugging.html ) or
9
- the [ LLVM Debugging chapter] ( ./codegen/debugging.md ) ).
7
+ Testing chapter] ( ./incrcomp-debugging.html ) or the [ LLVM Debugging
8
+ chapter] ( ./backend/debugging.md ) ).
10
9
11
10
## ` -Z ` flags
12
11
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ it useful to look at the various codegen options listed under `-Chelp`
23
23
and the internal options under ` -Zhelp ` -- there are a number that
24
24
pertain to LLVM (just search for LLVM).
25
25
26
- [ d ] : ../codegen /debugging.md
26
+ [ d ] : ../backend /debugging.md
27
27
28
28
## If you do narrow to an LLVM bug
29
29
You can’t perform that action at this time.
0 commit comments