[NFC] Thread DataLayout through helper function signatures for aggregate construction - #183213
Draft
shiltian wants to merge 1 commit into
Draft
Conversation
…egate construction Add `const DataLayout *DL` parameter to helper functions and classes that construct aggregate constants but previously had no access to `DataLayout`. This is the final preparatory step before the `ConstantPointerNull` semantic change, ensuring aggregate collapse-to-`ConstantAggregateZero` checks have `DataLayout` awareness in all remaining call sites.
This was referenced Feb 24, 2026
[NFCI][IR] Thread
DataLayout through ConstantFold; fix CAZ extraction and aggregate collapse
#183209
Draft
Contributor
Author
This was referenced Feb 24, 2026
🐧 Linux x64 Test Results
All executed tests passed, but another part of the build failed. Click on a failure below to see the details. lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVLegalizeZeroSizeArrays.cpp.oIf these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
🪟 Windows x64 Test Results
All executed tests passed, but another part of the build failed. Click on a failure below to see the details. [code=1] lib/Target/SPIRV/CMakeFiles/LLVMSPIRVCodeGen.dir/SPIRVLegalizeZeroSizeArrays.cpp.objIf these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
Contributor
Author
|
Don't review this PR in its own. Check #183215 for more context. |
github-actions
Bot
deleted the branch
users/shiltian/aggregate-callers-datalayout
April 28, 2026 09:08
github-actions
Bot
deleted the
users/shiltian/aggregate-helpers-datalayout
branch
April 28, 2026 09:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add
const DataLayout *DLparameter to helper functions and classes thatconstruct aggregate constants but previously had no access to
DataLayout. Thisis the final preparatory step before the
ConstantPointerNullsemantic change,ensuring aggregate collapse-to-
ConstantAggregateZerochecks haveDataLayoutawareness in all remaining call sites.