Displaying 2 results from an estimated 2 matches for "bcinst".
Did you mean:
mcinst
2011 Aug 25
0
[LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
...nst *CI, const TargetData *TD) {
> return Simplifier.NewInstruction;
> }
>
> +// Given a call to llvm.adjust.trampoline, find the corresponding call to
> +// llvm.init.trampoline, conservatively.
> +static IntrinsicInst *FindInitTrampoline(Value *Callee) {
> + BitCastInst *BCInst = dyn_cast<BitCastInst>(Callee);
> + if (BCInst == NULL)
> + return NULL;
It may be better to just do:
Callee = Callee->stripPointerCasts();
Then you would use Callee rather than BCOp.
> +
> + Value *BCOp = BCInst->getOperand(0);
> + IntrinsicInst *AdjustTramp...
2011 Aug 23
2
[LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
Hi!
Attached set of patches splits llvm.init.trampoline into an "init"
phase and an "adjust" phase, as discussed on the "Go on dragonegg"
thread.
Thanks!
--
Sanjoy Das
http://playingwithpointers.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Split-intrinsics-and-DAG-nodes.patch
Type: text/x-diff
Size: 8808 bytes
Desc: