Displaying 1 result from an estimated 1 matches for "3a1da53e".
2011 Jan 18
1
[LLVMdev] compiling a call to function in compiler
On Mon, Jan 17, 2011 at 8:36 PM, Eric Christopher <echristo at apple.com> wrote:
>
>    id testfunc(id a, id b) { ... }
>    ...
>    FunctionType *fn_type = FunctionType::get(id_type, argtypes, false);
>    Value *fn = ConstantExpr::getIntToPtr(ConstantInt::get(int64_type,
> reinterpret_cast<int64_t>(testfunc)), fn_type);
>    return builder.CreateCall2(fn,