[clang] [llvm] [HLSL][Clang] Start emitting @llvm.structured.alloca (PR #190157)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 14 06:53:52 PDT 2026
================
@@ -107,7 +107,12 @@ RawAddress
CodeGenFunction::CreateTempAllocaWithoutCast(llvm::Type *Ty, CharUnits Align,
const Twine &Name,
llvm::Value *ArraySize) {
- auto Alloca = CreateTempAlloca(Ty, Name, ArraySize);
+ if (getLangOpts().EmitLogicalPointer) {
+ auto Alloca = Builder.CreateStructuredAlloca(Ty, Name);
+ return RawAddress(Alloca, Ty, Align, KnownNonNull);
+ }
----------------
s-perron wrote:
Can you provide a specific example of something that you do not want to be handling yet? Do other places that call `CreateTempAlloca` should all of these be documented some where, so we know what work needs to get done?
https://github.com/llvm/llvm-project/pull/190157
More information about the cfe-commits
mailing list