search for: dwarfjitemitt

Displaying 6 results from an estimated 6 matches for "dwarfjitemitt".

Did you mean: dwarfjitemitter
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
...oid*); Can you explain what these are? > > + > // > ===------------------------------------------------------------------- > ---===// > // JIT lazy compilation code. > // > @@ -275,6 +290,71 @@ > // JITEmitter code. > // > namespace { > + > + class DwarfJITEmitter : public DwarfEmitter { > + JITMemoryManager *MemMgr; > + const TargetData& TD; > + TargetMachine &TM; > + MachineCodeEmitter& MCE; > + const MRegisterInfo* RI; > + > + public: > + DwarfJITEmitter(MachineCodeEmitter &mce, const TargetData...
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
...t;> + >> // >> ===------------------------------------------------------------------- >> ---===// >> // JIT lazy compilation code. >> // >> @@ -275,6 +290,71 @@ >> // JITEmitter code. >> // >> namespace { >> + >> + class DwarfJITEmitter : public DwarfEmitter { >> + JITMemoryManager *MemMgr; >> + const TargetData& TD; >> + TargetMachine &TM; >> + MachineCodeEmitter& MCE; >> + const MRegisterInfo* RI; >> + >> + public: >> + DwarfJITEmitter(MachineCodeEm...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
On Apr 16, 2008, at 1:46 AM, Nicolas Geoffray wrote: > >> >> How about a default GetInstSize() as well? Return 1 for every >> instruction except for some special TargetInstrInfo instructions, >> e.g. >> PHI, IMPLICIT_DEF, LABEL. I don't know if it's useful or not. But >> perhaps we can default most targets to it? >> >> > > I
2008 Apr 17
1
[LLVMdev] Being able to know the jitted code-size before emitting
Thx again Evan for the review. Here's a new patch for the JIT in itself. The major changes are: 1) A JITMemoryManager now has a flag saying "I require to know the size of what you want to emit" 2) DwarfJITEmitter is augmented with GetSize* functions 3) JITEmitter::startFunction checks if the JITMemoryManager requires to know the size. If so, it computes it and gives it through the ActualPtr argument. I suppose it's OK to commit, but if anyone wants to complain, I'm listening :) Thanks, Nicola...
2008 Apr 16
3
[LLVMdev] Being able to know the jitted code-size before emitting
> > How about a default GetInstSize() as well? Return 1 for every > instruction except for some special TargetInstrInfo instructions, e.g. > PHI, IMPLICIT_DEF, LABEL. I don't know if it's useful or not. But > perhaps we can default most targets to it? > > I prefer not giving a default implementation and aborting with a message that says the target did not