search for: emitat

Displaying 12 results from an estimated 12 matches for "emitat".

2008 Mar 30
3
[LLVMdev] Being able to know the jitted code-size before emitting
Hi everyone, vmkit requires to know the size of a jitted method before emitting the method. This allows to allocate the correct size for the method. The attached patch creates this functionality when the flag SizedMemoryCode is on. In order to implement this functionality, i had to virtualize some MachineCodeEmitter functions. Is it OK to commit the patch? Thanks, Nicolas --------------
2008 Apr 01
2
[LLVMdev] Being able to know the jitted code-size before emitting
...tual void emitWordBE(unsigned W) { >> + CurBufferPtr+=4; >> + } >> + virtual void emitInt32(int Value) { >> + CurBufferPtr += 4; >> + } >> + virtual void emitInt64(uint64_t Value) { >> + CurBufferPtr += 8; >> + } >> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >> + } >> + >> + >> + >> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} >> + virtual intptr_t getConstantPoolEntryAddress(unsigned >> ConstantNum) const; >> + >> + virtual intptr_t getJ...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
...rBufferPtr+=4; > + } > + virtual void emitWordBE(unsigned W) { > + CurBufferPtr+=4; > + } > + virtual void emitInt32(int Value) { > + CurBufferPtr += 4; > + } > + virtual void emitInt64(uint64_t Value) { > + CurBufferPtr += 8; > + } > + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { > + } > + > + > + > + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} > + virtual intptr_t getConstantPoolEntryAddress(unsigned > ConstantNum) const; > + > + virtual intptr_t getJumpTableEntryAddress(unsigned Index)...
2008 Apr 01
0
[LLVMdev] Being able to know the jitted code-size before emitting
...gt;>> + CurBufferPtr+=4; >>> + } >>> + virtual void emitInt32(int Value) { >>> + CurBufferPtr += 4; >>> + } >>> + virtual void emitInt64(uint64_t Value) { >>> + CurBufferPtr += 8; >>> + } >>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>> + } >>> + >>> + >>> + >>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} >>> + virtual intptr_t getConstantPoolEntryAddress(unsigned >>> ConstantNum) const; >>> + &gt...
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...; >>>> + } >>>> + virtual void emitInt32(int Value) { >>>> + CurBufferPtr += 4; >>>> + } >>>> + virtual void emitInt64(uint64_t Value) { >>>> + CurBufferPtr += 8; >>>> + } >>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>> + } >>>> + >>>> + >>>> + >>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} >>>> + virtual intptr_t getConstantPoolEntryAddress(unsigned >>>> ConstantNu...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...ual void emitInt32(int Value) { >>>>>> + CurBufferPtr += 4; >>>>>> + } >>>>>> + virtual void emitInt64(uint64_t Value) { >>>>>> + CurBufferPtr += 8; >>>>>> + } >>>>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>>>> + } >>>>>> + >>>>>> + >>>>>> + >>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} >>>>>> + virtual intptr_t getConstantPoolE...
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...alue) { >>>>>>> + CurBufferPtr += 4; >>>>>>> + } >>>>>>> + virtual void emitInt64(uint64_t Value) { >>>>>>> + CurBufferPtr += 8; >>>>>>> + } >>>>>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>>>>> + } >>>>>>> + >>>>>>> + >>>>>>> + >>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >>>>>>> {} >>&g...
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...>>>> + virtual void emitInt32(int Value) { >>>>> + CurBufferPtr += 4; >>>>> + } >>>>> + virtual void emitInt64(uint64_t Value) { >>>>> + CurBufferPtr += 8; >>>>> + } >>>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>>> + } >>>>> + >>>>> + >>>>> + >>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) {} >>>>> + virtual intptr_t getConstantPoolEntryAddress(unsigned &gt...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...>>>> + CurBufferPtr += 4; >>>>>>>> + } >>>>>>>> + virtual void emitInt64(uint64_t Value) { >>>>>>>> + CurBufferPtr += 8; >>>>>>>> + } >>>>>>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>>>>>> + } >>>>>>>> + >>>>>>>> + >>>>>>>> + >>>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >>>>>&g...
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...CurBufferPtr += 4; >>>>>>>>> + } >>>>>>>>> + virtual void emitInt64(uint64_t Value) { >>>>>>>>> + CurBufferPtr += 8; >>>>>>>>> + } >>>>>>>>> + virtual void emitAt(uintptr_t *Addr, uintptr_t Value) { >>>>>>>>> + } >>>>>>>>> + >>>>>>>>> + >>>>>>>>> + >>>>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...itInt64 - Emit a int64 directive. > + void emitInt64(uint64_t Value) { > + if (CurBufferPtr+8 <= BufferEnd) { > + *((uint64_t*)CurBufferPtr) = Value; > + CurBufferPtr += 8; > + } else { > + CurBufferPtr = BufferEnd; > + } > + } > + > + /// emitAt - Emit Value in Addr > + void emitAt(uintptr_t *Addr, uintptr_t Value) { > + if (Addr >= (uintptr_t*)BufferBegin && Addr < > (uintptr_t*)BufferEnd) > + (*Addr) = Value; > + } > + > + /// emitLabel - Emits a label > + virtual void emitLabel(uint64_...
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: