Skip to content

Commit f4f5d4c

Browse files
committed
skeleton for backend chapters
1 parent 66be765 commit f4f5d4c

File tree

10 files changed

+17
-13
lines changed

10 files changed

+17
-13
lines changed

src/SUMMARY.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,16 @@
101101
- [Constant evaluation](./const-eval.md)
102102
- [miri const evaluator](./miri.md)
103103
- [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)
111114

112115
---
113116

File renamed without changes.

src/backend/backend.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# The Compiler Backend

src/codegen.md renamed to src/backend/codegen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generates an executable binary. rustc uses LLVM for code generation.
66
> NOTE: If you are looking for hints on how to debug code generation bugs,
77
> please see [this section of the debugging chapter][debugging].
88
9-
[debugging]: codegen/debugging.html
9+
[debugging]: ./debugging.md
1010

1111
## What is LLVM?
1212

src/codegen/debugging.md renamed to src/backend/debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> NOTE: If you are looking for info about code generation, please see [this
44
> chapter][codegen] instead.
55
6-
[codegen]: ../codegen.md
6+
[codegen]: ./codegen.md
77

88
This section is about debugging compiler bugs in code generation (e.g. why the
99
compiler generated some piece of code or crashed in LLVM). LLVM is a big

src/backend/lowering-mir.md

Whitespace-only changes.

src/backend/monomorph.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Monomorphization
File renamed without changes.

src/compiler-debugging.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
This chapter contains a few tips to debug the compiler. These tips aim to be
55
useful no matter what you are working on. Some of the other chapters have
66
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)).
109

1110
## `-Z` flags
1211

src/ice-breaker/llvm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ it useful to look at the various codegen options listed under `-Chelp`
2323
and the internal options under `-Zhelp` -- there are a number that
2424
pertain to LLVM (just search for LLVM).
2525

26-
[d]: ../codegen/debugging.md
26+
[d]: ../backend/debugging.md
2727

2828
## If you do narrow to an LLVM bug
2929

0 commit comments

Comments
 (0)