aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <akaylor@nvidia.com>2025-03-25 16:13:57 -0700
committerGitHub <noreply@github.com>2025-03-25 16:13:57 -0700
commitbff94d774cda03e43aff1cdf6e4945136bbab3d7 (patch)
tree4cf45a234f69f47577523f60af4f27c97dfa03ae /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parente04d739522f9df450c88bb1ec17cbd39c0babf8f (diff)
downloadllvm-bff94d774cda03e43aff1cdf6e4945136bbab3d7.zip
llvm-bff94d774cda03e43aff1cdf6e4945136bbab3d7.tar.gz
llvm-bff94d774cda03e43aff1cdf6e4945136bbab3d7.tar.bz2
[CIR] Emit allocas into the proper lexical scope (#132468)
Alloca operations were being emitted into the entry block of the current function unconditionally, even if the variable they represented was declared in a different scope. This change upstreams the code for handling insertion of the alloca into the proper lexcial scope. It also adds a CIR-to-CIR transformation to hoist allocas to the function entry block, which is necessary to produce the expected LLVM IR during lowering.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions