CodeGen: rework Aggregate implemention for rvalue_creates_operand cases
A non-trivial refactor pulled out from rust-lang/rust#138759
r? workingjubilee
The previous implementation I'd written here based on `index_by_increasing_offset` is complicated to follow and difficult to extend to non-structs.
This changes the implementation, without actually changing any codegen (thus no test changes either), to be more like the existing `extract_field` (<
|
||
|---|---|---|
| .. | ||
| abi.rs | ||
| asm.rs | ||
| backend.rs | ||
| builder.rs | ||
| consts.rs | ||
| coverageinfo.rs | ||
| debuginfo.rs | ||
| declare.rs | ||
| intrinsic.rs | ||
| misc.rs | ||
| mod.rs | ||
| statics.rs | ||
| type_.rs | ||
| write.rs | ||