Displaying 5 results from an estimated 5 matches for "newinstruction".
2008 Apr 23
0
[LLVMdev] newbie with pass registering Problem
...tuelle Block Nummer wird geholt
blockCounter *bcntr = bnrs.lookup(b);
GGenomManager->newBlock(&(*b),*bcntr);
for(BasicBlock::iterator i = b->begin(), ie = b->end(); i!=ie; ++i)
{
GGenomManager->newInstruction(i);
}// end for BB
} // end for Function
return false;
} // end runOnFunction
private:
};// end class
char FunctionAnalysis::ID = 0;
RegisterPass<FunctionAnalysis> X("gasched", "GA Scheduling Pass");
} // end namespace
Coul...
2011 Aug 25
0
[LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
...dl);
> + return CallResult.second;
> }
> --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
> +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
> @@ -821,6 +821,42 @@ Instruction *InstCombiner::tryOptimizeCall(CallInst *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)...
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:
2011 Aug 31
0
[LLVMdev] [PATCH] Split init.trampoline into init.trampoline & adjust.trampoline
...quot;
> #include "llvm/Support/CallSite.h"
> #include "llvm/Target/TargetData.h"
> #include "llvm/Analysis/MemoryBuiltins.h"
> @@ -821,6 +820,93 @@ Instruction *InstCombiner::tryOptimizeCall(CallInst *CI, const TargetData *TD) {
> return Simplifier.NewInstruction;
> }
>
> +// Given a call to llvm.adjust.trampoline, find the corresponding call to
> +// llvm.init.trampoline.
I think you should also say that it only returns a non-null value if the
transform is safe to do. It's not just a question of finding the init.tramp
call.
> +//
>...
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