search for: fetch_vs

Displaying 1 result from an estimated 1 matches for "fetch_vs".

2011 Nov 02
5
[LLVMdev] About JIT by LLVM 2.9 or later
...g on an open source project. It supports shader language and I want JIT feature, so LLVM is used. But now I find the ABI & Calling Convention did not co-work with MSVC. For example, following code I have: struct float4 { float x, y, 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( %...