search for: getconstantpoolentryaddress

Displaying 17 results from an estimated 17 matches for "getconstantpoolentryaddress".

2006 Apr 13
1
[LLVMdev] standalone llvm
...elo not handled yet!"' failed. llc((anonymous namespace)::PrintStackTrace()+0x1a)[0x8ac5736] llc((anonymous namespace)::SignalHandler(int)+0xed)[0x8ac59cb] [0xffffe420] /lib/tls/libc.so.6(abort+0x1d2)[0xb7dc7fa2] /lib/tls/libc.so.6(__assert_fail+0x10f)[0xb7dc02df] llc(llvm::ELFCodeEmitter::getConstantPoolEntryAddress(unsigned int)+0x0)[0x88ef650] llc((anonymous namespace)::Emitter::emitGlobalAddressForPtr(llvm::GlobalValue*, int)+0x77)[0x866ac5d] llc((anonymous namespace)::Emitter::emitInstruction(llvm::MachineInstr const&)+0xc0b)[0x866c1b1] llc((anonymous namespace)::Emitter::emitBasicBlock(llvm::MachineBa...
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
...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) const; >> + >> + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock >> *MBB) const { >> + assert(0 && "Should not be in get...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
...rPtr += 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) const; > + > + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock > *MBB) const { > + assert(0 && "Should not be in getMachineBasicBlockAddress of...
2008 Apr 01
0
[LLVMdev] Being able to know the jitted code-size before emitting
...t;>> + 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) const; >>> + >>> + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock >>> *MBB) const { >>> + assert(0 && &q...
2007 Dec 13
0
[LLVMdev] Exception handling in JIT
...ense for this to maintain it's own >> buffers. Can it be modified to use MachineCodeEmitter? >> >> > > You mean DwarfEmitter inherits MachineCodeEmitter? There are > MachineCodeEmitter functions that are really not related to > MachineCodeEmitter (eg addRelocation, getConstantPoolEntryAddress, > etc). How about just passing it a ptr to a MachineCodeEmitter object? > > Again, I've sent you the patch too fast. These functions are taken > from > the g++ unwinder library (libgcc_s.so). Declaring them like I did is > really bad. I'm thinking of something like:...
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...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) const; >>>> + >>>> + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock >>>> *MBB) const { >>>>...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...tual 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) >>>>>> const; >>>>>> + >>>>>> + virtual intptr_t getMachineBasicBlockAddres...
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...t;>>>>>> + } >>>>>>> + >>>>>>> + >>>>>>> + >>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >>>>>>> {} >>>>>>> + virtual intptr_t getConstantPoolEntryAddress(unsigned >>>>>>> ConstantNum) const; >>>>>>> + >>>>>>> + virtual intptr_t getJumpTableEntryAddress(unsigned Index) >>>>>>> const; >>>>>>> + >>>>>>> + virtual intptr_t getM...
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...;>>>> + 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) >>>>> const; >>>>> + >>>>> + virtual intptr_t getMachineBasicBlockAddress(MachineBasicBlock >...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...t; + } >>>>>>>> + >>>>>>>> + >>>>>>>> + >>>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >>>>>>>> {} >>>>>>>> + virtual intptr_t getConstantPoolEntryAddress(unsigned >>>>>>>> ConstantNum) const; >>>>>>>> + >>>>>>>> + virtual intptr_t getJumpTableEntryAddress(unsigned Index) >>>>>>>> const; >>>>>>>> + >>>>>>>>...
2006 Apr 13
0
[LLVMdev] standalone llvm
On Apr 12, 2006, at 10:23 PM, Simon Burton wrote: > > Is it possible to get llvm to generate native machine code > without using gcc and friends ? Do I use lli ? llc. llc --help lists all the options. it compiles llvm bytecode files. > > I'd like to directly create executable code that i can > stick in memory somewhere and jump into (call). > > (I'm looking
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...t;>>>>> + >>>>>>>>> + >>>>>>>>> + >>>>>>>>> + virtual void StartMachineBasicBlock(MachineBasicBlock *MBB) >>>>>>>>> {} >>>>>>>>> + virtual intptr_t getConstantPoolEntryAddress(unsigned >>>>>>>>> ConstantNum) const; >>>>>>>>> + >>>>>>>>> + virtual intptr_t getJumpTableEntryAddress(unsigned Index) >>>>>>>>> const; >>>>>>>>> + >>>&...
2006 Apr 13
4
[LLVMdev] standalone llvm
Is it possible to get llvm to generate native machine code without using gcc and friends ? Do I use lli ? I'd like to directly create executable code that i can stick in memory somewhere and jump into (call). (I'm looking to use llvm in a BSD licensed project). Simon. -- Simon Burton, B.Sc. Licensed PO Box 8066 ANU Canberra 2601 Australia Ph. 61 02 6249 6940 http://arrowtheory.com
2007 Dec 12
3
[LLVMdev] Exception handling in JIT
...am not sure if it makes sense for this to maintain it's own > buffers. Can it be modified to use MachineCodeEmitter? > > You mean DwarfEmitter inherits MachineCodeEmitter? There are MachineCodeEmitter functions that are really not related to MachineCodeEmitter (eg addRelocation, getConstantPoolEntryAddress, etc). >> + >> + MachineModuleInfo* MMI; >> +public: >> + virtual ~DwarfEmitter() {} >> + >> + /// startFunction - This callback is invoked when the specified >> function is >> + /// about to be code generated. This initializes the >>...
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
On Dec 10, 2007, at 9:52 AM, Nicolas Geoffray wrote: > 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 :) Very nice! I don't know enough about EH, someone else
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