<div dir="ltr">Hi Fellows, <div><br></div><div>        Is there a way to allocate dynamic array within an LLVM IR file from my code generator? Say., how to create an array type with a size determined through a global variable. Symbolically, something like below:</div>
<div><br></div><div>                    Value *sz = Mod->getOrInsertGlobal("SIZE", Int32Ty);<br>
</div><div>                    Type *ArrayTy = ArrayType::get(FloatTy, sz)<br></div><div>                    AllocaInst *AI = CreateAlloca(ArrayTy, 0, "");<br></div><div><br></div><div><br></div><div>Thanks,</div>
<div>Paul        </div></div>