<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="font-family: Calibri; font-size: 16px;">Hi,</div><div style="font-family: Calibri; font-size: 16px;"><div><br></div><div>While looking over the IR generated by my source code, I came across the following:</div><div><br></div><div>%arr = alloca [30 x i8], align 1</div><div><br></div><div>In the source code this particular line of code is represented by:</div><div><br></div><div>int arr[30];</div><div><br></div><div>I was wondering how I could change the capacity of arr from 30 to any other integral value via a function-pass. I know that 'alloca' can be used for reserving space on stack; further, 'store' can be used for writing to memory. I was wondering how that would work for an array though?</div><div><br></div><div>Thanks,</div><div>Shivam</div></div></body></html>