<div dir="ltr"><div><div><div><div><div><div>Hi Fellows,<br><br></div>    What's the best way to emit the following code in LLVM APIs:<br><br></div>               %Nx = call i32 @get_local_size(i32 0)<br>               %Ny = call i32 @get_local_size(i32 1)<br>
               %Nz = call i32 @get_local_size(i32 2)<br><br></div>               %A = alloca [Nx x [ Ny x [Nz x i32]]], align64<br><br></div>     It basically allocates a 3D dynamic array, where the 3D sizes are unknown at compile time. I am not sure if using alloca is the right direction? Any other alternatives?<br>
<br></div>Best,<br></div>Paul<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div>