On 11/30/21 1:50 PM, Qing Zhao via Gcc-patches wrote: >> void >> bar (__vector_pair *dst, __vector_pair *src) >> { >> __vector_pair pair; >> pair = *src; >> ... >> } > > However, even with the above, the memory pointed by “src” still need to > be initialized somewhere. How to provide the initial value to the variable > in the beginning for __vector_pair type?
Well no initialization is required here in this function. Isn't that what matters here? When generating code for bar(), we assume that src already points to initialized memory. As for what src points to, that could be initialized how any other memory/ array could be initialized, so either a static array, read in some data from a file into an array, compute the array values in a loop, etc. etc. Peter