search for: emituleb128bytes

Displaying 5 results from an estimated 5 matches for "emituleb128bytes".

2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...26,7 @@ > class MachineConstantPool; > class MachineJumpTableInfo; > class MachineFunction; > +class MachineModuleInfo; > class MachineRelocation; > class Value; > class GlobalValue; > @@ -136,6 +137,72 @@ > CurBufferPtr = BufferEnd; > } > > + > + /// emitULEB128Bytes - This callback is invoked when a ULEB128 > needs to be > + /// written to the output stream. > + void emitULEB128Bytes(unsigned Value) { > + do { > + unsigned char Byte = Value & 0x7f; > + Value >>= 7; > + if (Value) Byte |= 0x80; > + em...
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
...if (CurBufferPtr != BufferEnd) > + *CurBufferPtr++ = B; > + } Please use DOUT instead leaving debugging code around. What's the relationship between this module and MachineCodeEmitter? Does it make sense to move the common facility to MachineCodeEmitter? > + > + /// EmitULEB128Bytes - This callback is invoked when a ULEB128 > needs to be > + /// written to the output stream. > + void EmitULEB128Bytes(unsigned Value) { > +// printf(".uleb128 %d\n", Value); > + do { > + unsigned char Byte = Value & 0x7f; > + Value >>=...
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
2007 Dec 12
3
[LLVMdev] Exception handling in JIT
...ineCodeEmitter? Does it make > sense to move the common facility to MachineCodeEmitter? > > That's one part I should have reviewed before sending you the patch. Sure we can move all DwarEmitter functions to MachineCodeEmitter. That's not a problem. >> + >> + /// EmitULEB128Bytes - This callback is invoked when a ULEB128 >> needs to be >> + /// written to the output stream. >> + void EmitULEB128Bytes(unsigned Value) { >> +// printf(".uleb128 %d\n", Value); >> + do { >> + unsigned char Byte = Value & 0x7f; >...