mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
3d127e2040
Partially move cg_ssa towards using a single builder Not all codegen backends can handle hopping between blocks well. For example Cranelift requires blocks to be terminated before switching to building a new block. Rust-gpu requires a `RefCell` to allow hopping between blocks and cg_gcc currently has a buggy implementation of hopping between blocks. This PR reduces the amount of cases where cg_ssa switches between blocks before they are finished and mostly fixes the block hopping in cg_gcc. (~~only `scalar_to_backend` doesn't handle it correctly yet in cg_gcc~~ fixed that one.) `@antoyo` please review the cg_gcc changes. |
||
---|---|---|
.. | ||
back | ||
intrinsic | ||
abi.rs | ||
allocator.rs | ||
archive.rs | ||
asm.rs | ||
base.rs | ||
builder.rs | ||
callee.rs | ||
common.rs | ||
consts.rs | ||
context.rs | ||
coverageinfo.rs | ||
debuginfo.rs | ||
declare.rs | ||
lib.rs | ||
mono_item.rs | ||
type_.rs | ||
type_of.rs |