Fix typos
This commit is contained in:
parent
1e14491218
commit
bda916e75d
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
In the future, it would be nice to allow other codegen backends (e.g.
|
||||
[Cranelift]). To this end, `librustc_codegen_ssa` provides an
|
||||
abstract interface for all backends to implenent.
|
||||
abstract interface for all backends to implement.
|
||||
|
||||
[Cranelift]: https://github.com/bytecodealliance/wasmtime/tree/master/cranelift
|
||||
|
||||
|
|
@ -175,7 +175,7 @@ in the LLVM implementation of the trait).
|
|||
|
||||
The traits offer an API which is very similar to the API of LLVM. This is not
|
||||
the best solution since LLVM has a very special way of doing things: when
|
||||
addding another backend, the traits definition might be changed in order to
|
||||
adding another backend, the traits definition might be changed in order to
|
||||
offer more flexibility.
|
||||
|
||||
However, the current separation between backend-agnostic and LLVM-specific code
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ tutorial above):
|
|||
- The `-Cno-prepopulate-passes` will avoid pre-populate the LLVM pass
|
||||
manager with a list of passes. This will allow you to view the LLVM
|
||||
IR that rustc generates, not the LLVM IR after optimizations.
|
||||
- The `-Cpasses=val` option allows you to supply a (space seprated) list of extra LLVM passes to run
|
||||
- The `-Cpasses=val` option allows you to supply a space separated list of extra LLVM passes to run
|
||||
- The `-Csave-temps` option saves all temporary output files during compilation
|
||||
- The `-Zprint-llvm-passes` option will print out LLVM optimization passes being run
|
||||
- The `-Ztime-llvm-passes` option measures the time of each LLVM pass
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ the approach: as we grow the stack down we pass an additional argument to calls
|
|||
rather than walking up the stack when the intrinsic is called. That additional argument can be
|
||||
returned wherever the caller location is queried.
|
||||
|
||||
The argument we append is of type `&'static core::panic::Location<'staic>`. A reference was chosen
|
||||
The argument we append is of type `&'static core::panic::Location<'static>`. A reference was chosen
|
||||
to avoid unnecessary copying because a pointer is a third the size of
|
||||
`std::mem::size_of::<core::panic::Location>() == 24` at time of writing.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue