search for: beginlabelptr

Displaying 4 results from an estimated 4 matches for "beginlabelptr".

2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...4)"); > + MCE->emitULEB128Bytes(SizeSites); > + // Asm->EOL("Call-site table length"); > + > + // Emit the landing pad site information. > + for (unsigned i = 0; i < CallSites.size(); ++i) { > + CallSiteEntry &S = CallSites[i]; > + intptr_t BeginLabelPtr = 0; > + intptr_t EndLabelPtr = 0; > + > + if (!S.BeginLabel) { > + BeginLabelPtr = (intptr_t)StartFunction; > + if (TD->getPointerSize() == sizeof(int32_t)) > + MCE->emitInt32(0); > + else > + MCE->emitInt64(0); > + } else {...
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:
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
...PE_udata4)"); > + EmitULEB128Bytes(SizeSites); > + // Asm->EOL("Call-site table length"); > + > + // Emit the landing pad site information. > + for (unsigned i = 0; i < CallSites.size(); ++i) { > + CallSiteEntry &S = CallSites[i]; > + intptr_t BeginLabelPtr = 0; > + intptr_t EndLabelPtr = 0; > + > + if (!S.BeginLabel) { > + BeginLabelPtr = (intptr_t)StartFunction; > + if (TD.getPointerSize() == sizeof(int32_t)) > + EmitInt32(0); > + else > + EmitInt64(0); > + } else { > + BeginLa...
2007 Dec 10
2
[LLVMdev] Exception handling in JIT
Hi everyone, Here's a patch that enables exception handling when jitting. I've copy/pasted _many_code from lib/Codegen/DwarfWriter.cpp, so we may need to factorize it, but the functionality is there and I'm very happy with it :) lli should now be able to execute the output from llvm-gcc when using exceptions (the UnwindInst instruction is not involved in this patch). Just add the