Displaying 2 results from an estimated 2 matches for "adjusttrampolinefn".
2011 Aug 31
0
[LLVMdev] [PATCH] Split init.trampoline into init.trampoline & adjust.trampoline
...vm.init.trampoline (i8* x, i8* y, i8* z)
> + // to
> + // call void llvm.init.trampoline (i8* %x, i8* %y, i8* %z)
> + // %tramp = call i8* llvm.adjust.trampoline (i8* %x)
> +
> + Type *PointerTy = NewFn->getFunctionType()->getParamType(0);
> + Function *AdjustTrampolineFn =
> + cast<Function>(F->getParent()->getOrInsertFunction(
> + "llvm.adjust.trampoline", PointerTy, PointerTy,
> + (Type *)0));
I think you should use Intrinsic::getDeclaration to get AdjustTrampolineFn.
> +
> +...
2011 Aug 29
3
[LLVMdev] [PATCH] Split init.trampoline into init.trampoline & adjust.trampoline
Hi!
Attached patches split init.trampoline into adjust.trampoline and
init.trampoline, like in gcc.
As mentioned in the previous mail, I've not made a documentation
patch, since I'm not sure about what the documented semantics of
llvm.adjust.trampoline should be.
Thanks!
--
Sanjoy Das
http://playingwithpointers.com
-------------- next part --------------
A non-text attachment was