skeleton for backend chapters

This commit is contained in:
Mark Mansi 2020-03-07 14:58:39 -06:00 committed by Who? Me?!
parent c05ed676d2
commit cc50f978e1
10 changed files with 17 additions and 13 deletions

View File

@ -101,10 +101,13 @@
- [Constant evaluation](./const-eval.md) - [Constant evaluation](./const-eval.md)
- [miri const evaluator](./miri.md) - [miri const evaluator](./miri.md)
- [Parameter Environments](./param_env.md) - [Parameter Environments](./param_env.md)
- [Code Generation](./codegen.md) - [Compiler Backend](./backend/backend.md)
- [Updating LLVM](./codegen/updating-llvm.md) - [Monomorphization](./backend/monomorph.md)
- [Debugging LLVM](./codegen/debugging.md) - [Lowering MIR](./backend/lowering-mir.md)
- [Backend Agnostic Codegen](./codegen/backend-agnostic.md) - [Code Generation](./backend/codegen.md)
- [Updating LLVM](./backend/updating-llvm.md)
- [Debugging LLVM](./backend/debugging.md)
- [Backend Agnostic Codegen](./backend/backend-agnostic.md)
- [Profile-guided Optimization](./profile-guided-optimization.md) - [Profile-guided Optimization](./profile-guided-optimization.md)
- [Sanitizers Support](./sanitizers.md) - [Sanitizers Support](./sanitizers.md)
- [Debugging Support in Rust Compiler](./debugging-support-in-rustc.md) - [Debugging Support in Rust Compiler](./debugging-support-in-rustc.md)

1
src/backend/backend.md Normal file
View File

@ -0,0 +1 @@
# The Compiler Backend

View File

@ -6,7 +6,7 @@ generates an executable binary. rustc uses LLVM for code generation.
> NOTE: If you are looking for hints on how to debug code generation bugs, > NOTE: If you are looking for hints on how to debug code generation bugs,
> please see [this section of the debugging chapter][debugging]. > please see [this section of the debugging chapter][debugging].
[debugging]: codegen/debugging.html [debugging]: ./debugging.md
## What is LLVM? ## What is LLVM?

View File

@ -3,7 +3,7 @@
> NOTE: If you are looking for info about code generation, please see [this > NOTE: If you are looking for info about code generation, please see [this
> chapter][codegen] instead. > chapter][codegen] instead.
[codegen]: ../codegen.md [codegen]: ./codegen.md
This section is about debugging compiler bugs in code generation (e.g. why the This section is about debugging compiler bugs in code generation (e.g. why the
compiler generated some piece of code or crashed in LLVM). LLVM is a big compiler generated some piece of code or crashed in LLVM). LLVM is a big

View File

1
src/backend/monomorph.md Normal file
View File

@ -0,0 +1 @@
# Monomorphization

View File

@ -4,9 +4,8 @@
This chapter contains a few tips to debug the compiler. These tips aim to be This chapter contains a few tips to debug the compiler. These tips aim to be
useful no matter what you are working on. Some of the other chapters have useful no matter what you are working on. Some of the other chapters have
advice about specific parts of the compiler (e.g. the [Queries Debugging and advice about specific parts of the compiler (e.g. the [Queries Debugging and
Testing Testing chapter](./incrcomp-debugging.html) or the [LLVM Debugging
chapter](./incrcomp-debugging.html) or chapter](./backend/debugging.md)).
the [LLVM Debugging chapter](./codegen/debugging.md)).
## `-Z` flags ## `-Z` flags

View File

@ -23,7 +23,7 @@ it useful to look at the various codegen options listed under `-Chelp`
and the internal options under `-Zhelp` -- there are a number that and the internal options under `-Zhelp` -- there are a number that
pertain to LLVM (just search for LLVM). pertain to LLVM (just search for LLVM).
[d]: ../codegen/debugging.md [d]: ../backend/debugging.md
## If you do narrow to an LLVM bug ## If you do narrow to an LLVM bug