add an entry point

This commit is contained in:
mark 2020-04-04 13:30:40 -05:00 committed by Who? Me?!
parent 55e7d6d1ed
commit 0d0611b7d9
1 changed files with 2 additions and 1 deletions

View File

@ -364,4 +364,5 @@ bootstrapping compiler will support them.
- Guide: [Code Generation](https://rustc-dev-guide.rust-lang.org/codegen.html)
- Guide: [Generating LLVM IR](https://rustc-dev-guide.rust-lang.org/codegen.html#generating-llvm-ir) - **TODO: this is not available yet**
- Generating Machine Code from LLVM IR with LLVM - **TODO: reference?**
- Main entry point MIR -> Machine Code: [`rustc_codegen_ssa::base::codegen_crate`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/base/fn.codegen_crate.html)
- Main entry point MIR -> LLVM IR: [`MonoItem::define`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/mono_item/enum.MonoItem.html#method.define)
- Main entry point LLVM IR -> Machine Code: [`rustc_codegen_ssa::base::codegen_crate`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/base/fn.codegen_crate.html)