search for: handler_typ

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

Did you mean: handler_type
2008 Jun 19
1
[LLVMdev] Constant function pointers and inlining
...dler, I don't really know how to turn that to a constant function pointer in LLVM. What I do is rather complicated: Value* handler = ConstantExpr::getIntToPtr( ConstantInt::get(Type::Int32Ty, (unsigned int) engine->runFunction(get_handler, args).PointerVal), PointerType::get(handler_type, 0)); /* ^^^^^ Is there a better way to do the conversion? ^^^^^^ */ Value* result = builder.CreateCall2(handler, execute_data, tsrlm_ref, "execute_result"); And as a result I get handler calls like this: %execute_result9 = tail call i32 inttoptr (i32 54000728 to i...