In some C code, I'm defining a simple static array as a function argument, say:
void foo(float color[3]);
When I compile it with llvm-gcc
, it produces the following LLVM assembly language output:
define void @foo(float* %n1) nounwind ssp {
Is there any way I can hint to the compiler that I'd like it to generate code using an LLVM array [3 x float]
or vector <3 x float>
on the stack, instead of a pointer?