Displaying 1 result from an estimated 1 matches for "mat44".
Did you mean:
mat4
2011 Nov 02
5
[LLVMdev] About JIT by LLVM 2.9 or later
...z, w; };
struct float4x4 { float4 x, y, z, w; };
float4 fetch_vs( float4x4* mat ){ return mat->y; }
Caller:
// ...
float4x4 mat; // Initialized
float4 ret = fetch(mat); // fetch is JITed by LLVM
float4 ret_vs = fetch_vs(mat)
// ...
Callee(LLVM):
%vec4 = type { float, float, float, float }
%mat44 = type { %vec4, %vec4, %vec4, %vec4 }
define %vec4 @fetch( %mat44* %m ) {
%matval = load %mat44* %m
%v2 = extractvalue %mat44 %matval, 2
ret %vec4 %v2
}
But if it is implemented by LLVM and called the JIT-ed function in
MSVC, the program will be *crashed*.
I traced...