Displaying 2 results from an estimated 2 matches for "_testfunc".
Did you mean:
testfunc
2017 Apr 05
2
Deopt operand bundle behavior
...or example, for this input:
declare { i8*, i8* } @getCode()
define void @testFunc() {
entry:
%0 = call { i8*, i8* } @getCode()
%1 = extractvalue { i8*, i8* } %0, 1
%2 = bitcast i8* %1 to void ()*
call void %2() [ "deopt"() ]
ret void
}
We get this output machine code for x86_64:
_testFunc: ## @testFunc
.cfi_startproc
## BB#0: ## %entry
pushq %rax
Lcfi0:
.cfi_def_cfa_offset 16
callq _getCode
callq *%rax
Ltmp0:
popq %rax
retq
Without the deopt operand bundle:
_testFunc:...
2009 Aug 30
4
[LLVMdev] Perfect forwarding?
...chy, then the class itself is serialized up as if
by value, then passed to the remote function by pointer when
deserialized (on the stack, eh, eh?, has to be default constructable
to support that, or the registerRPCCall below will not even compile,
yes this is completely typesafe in every way)
void _testFunc(int i, someClass *ptr) {
// do something
}
// example syntax
networkWorld::RPCCaller testFunc =
networkWorld->registerRPCCall("testFunc",&testFunc,enumCallOnClientOnly);
networkWorld::RPCCaller someMethod =
networkWorld->registerRPCCall("someMethod",&someClass:...