llvm-project
3225f7ae - [NFC] Pass `DataLayout` to aggregate constant factory call sites

Commit
26 days ago
[NFC] Pass `DataLayout` to aggregate constant factory call sites Update callers of `ConstantArray::get`, `ConstantStruct::get`/`getAnon`, `ConstantVector::get`, and `ConstantVector::getSplat` to pass the `DataLayout` pointer where available. This is preparatory work for the `ConstantPointerNull` semantic change. After that change, aggregates containing pointer-null elements need `DataLayout` to correctly determine whether they can collapse to `ConstantAggregateZero`. Threading `DL` through callers now (NFC) ensures the eventual semantic change does not break aggregate collapse for zero-null targets.
Author
Committer
Parents
Loading