Displaying 5 results from an estimated 5 matches for "creategcloweringpass".
2009 Jun 22
4
[LLVMdev] Adding safe-point code generation
...t
that there's no way to emit code at safe points yet, and there are no
loop safe points at all. So I'll be trying to implement them.
Is there anything I should know before starting?
One way to do this might be to add a FunctionPass to
LLVMTargetMachine::addCommonCodeGenPasses() alongside
createGCLoweringPass(), which would insert user-defined code for safe
points. Unfortunately, code inserted there would stick around in the
IR after the machine code was emitted, and if the function were JITted
again, we'd get duplicate safe points.
Another way to do it might be to add a MachineFunction pass next t...
2009 Jun 23
0
[LLVMdev] Adding safe-point code generation
...p safe points at all. So I'll be trying to implement
> them.
>
> Is there anything I should know before starting?
Sounds like you've got the right idea.
> One way to do this might be to add a FunctionPass to
> LLVMTargetMachine::addCommonCodeGenPasses() alongside
> createGCLoweringPass(), which would insert user-defined code for
> safe points. Unfortunately, code inserted there would stick around
> in the IR after the machine code was emitted, and if the function
> were JITted again, we'd get duplicate safe points.
Unfortunately, I don't believe this is wo...
2009 Jun 23
1
[LLVMdev] Adding safe-point code generation
...points at all. So I'll be trying to implement them.
>
> Is there anything I should know before starting?
>
>
> Sounds like you've got the right idea.
>
> One way to do this might be to add a FunctionPass
> to LLVMTargetMachine::addCommonCodeGenPasses()
> alongside createGCLoweringPass(), which would insert user-defined code for
> safe points. Unfortunately, code inserted there would stick around in the IR
> after the machine code was emitted, and if the function were JITted again,
> we'd get duplicate safe points.
>
>
> Unfortunately, I don't believe th...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...End llvm namespace
> Index: lib/CodeGen/LLVMTargetMachine.cpp
> ===================================================================
> --- lib/CodeGen/LLVMTargetMachine.cpp (revision 46612)
> +++ lib/CodeGen/LLVMTargetMachine.cpp (working copy)
> @@ -186,8 +186,8 @@
>
> PM.add(createGCLoweringPass());
>
> - // FIXME: Implement the invoke/unwind instructions!
> - PM.add(createLowerInvokePass(getTargetLowering()));
> + if (!ExceptionHandling)
> + PM.add(createLowerInvokePass(getTargetLowering()));
>
> // Make sure that no unreachable blocks are instruction selected...
2008 Feb 01
2
[LLVMdev] Exception handling in JIT
Dear all,
Here's a new patch with Evan's comments (thx Evan!) and some cleanups.
Now the (duplicated) exception handling code is in a new file:
lib/ExecutionEngine/JIT/JITDwarfEmitter.
This patch should work on linux/x86 and linux/ppc (tested).
Nicolas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jit-exceptions.patch
URL: