diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-05-28 13:53:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-28 13:53:30 -0700 |
commit | b574c811e83a2f638714153cb2f915c625ac945c (patch) | |
tree | ea17b489184ce8e5938835f257cda5d059583d55 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 711a1779dcb4ed5616d5727d990b642a3593855f (diff) | |
download | llvm-b574c811e83a2f638714153cb2f915c625ac945c.zip llvm-b574c811e83a2f638714153cb2f915c625ac945c.tar.gz llvm-b574c811e83a2f638714153cb2f915c625ac945c.tar.bz2 |
[CIR] Defer declarations and tentative definitions (#141700)
This change adds code to defer emitting declarations and tentative
definitions until they are referenced or trigger by a call to
CompleteTentativeDefinition. This is needed to avoid premature handling
of declarations and definitions that might not be referenced in the
current translation unit. It also avoids incorrectly adding an
initializer to external declarations.
This change also updates the way the insertion location for globals is
chosen so that all globals will be emitted together at the top of the
module. This makes no functional difference, but it is very useful for
writing sensible tests.
Some tests are modified in this change to reorder global variables so
that they can be checked in the order in which they will be emitted.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions