search for: actualsize

Displaying 20 results from an estimated 25 matches for "actualsize".

2012 Sep 24
0
[LLVMdev] [llvm-commits] Fwd: Re: [PATCH] Fix for bug in JIT exception table allocation
...rBufferPtr = CurBufferPtr; > > > > + uint8_t *FrameRegister; > > > > > > > > - BufferBegin = CurBufferPtr = > > > > MemMgr->startExceptionTable(F.getFunction(), > > > > - ActualSize); > > > > - BufferEnd = BufferBegin+ActualSize; > > > > - EmittedFunctions[F.getFunction()].ExceptionTable = BufferBegin; > > > > - uint8_t *EhStart; > > > > - uint8_t *FrameRegister = DE->EmitDwarfTable(F, *this, FnStart, FnEnd, > &...
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
...tPool(MachineConstantPool *MCP); >> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >> @@ -469,19 +476,47 @@ >> >> >> void JITEmitter::startFunction(MachineFunction &F) { >> - uintptr_t ActualSize; >> - BufferBegin = CurBufferPtr = MemMgr- >> >>> startFunctionBody(F.getFunction(), >>> >> - ActualSize); >> - BufferEnd = BufferBegin+ActualSize; >> + MMI->BeginFunction(&amp...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
...); > void emitConstantPool(MachineConstantPool *MCP); > void initJumpTableInfo(MachineJumpTableInfo *MJTI); > void emitJumpTableInfo(MachineJumpTableInfo *MJTI); > @@ -469,19 +476,47 @@ > > > void JITEmitter::startFunction(MachineFunction &F) { > - uintptr_t ActualSize; > - BufferBegin = CurBufferPtr = MemMgr- > >startFunctionBody(F.getFunction(), > - ActualSize); > - BufferEnd = BufferBegin+ActualSize; > + MMI->BeginFunction(&F); > > - // Ensure the constant pool/jump tab...
2008 Apr 01
0
[LLVMdev] Being able to know the jitted code-size before emitting
...*MCP); >>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>> @@ -469,19 +476,47 @@ >>> >>> >>> void JITEmitter::startFunction(MachineFunction &F) { >>> - uintptr_t ActualSize; >>> - BufferBegin = CurBufferPtr = MemMgr- >>> >>>> startFunctionBody(F.getFunction(), >>>> >>> - >>> ActualSize); >>> - BufferEnd = BufferBegin+ActualSize; >>>...
2012 Aug 22
1
[LLVMdev] [PATCH] Fix for bug in JIT exception table allocation (no test yet)
On Aug 21, 2012, at 2:12 PM, Michael Muller <mmuller at enduden.com> wrote: > > Hi, I found a bug in the code that generates exception tables, I've attached > what I think is the correct fix. > > When you run out of space writing to a buffer, the buffer management code > simply stops writing at the end of the buffer. It is the responsibility of > the caller to
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...oid initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>> @@ -469,19 +476,47 @@ >>>> >>>> >>>> void JITEmitter::startFunction(MachineFunction &F) { >>>> - uintptr_t ActualSize; >>>> - BufferBegin = CurBufferPtr = MemMgr- >>>> >>>> >>>>> startFunctionBody(F.getFunction(), >>>>> >>>>> >>>> - >>>...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...I); >>>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>> @@ -469,19 +476,47 @@ >>>>>> >>>>>> >>>>>> void JITEmitter::startFunction(MachineFunction &F) { >>>>>> - uintptr_t ActualSize; >>>>>> - BufferBegin = CurBufferPtr = MemMgr- >>>>>> >>>>>> >>>>>> >>>>>>> startFunctionBody(F.getFunction(), >>>>>>> >>>>>>> >>>>>&gt...
2012 Aug 23
0
[LLVMdev] [PATCH] Fix for bug in JIT exception table allocation (no test yet)
Eric Christopher wrote: > > On Aug 21, 2012, at 2:12 PM, Michael Muller <mmuller at enduden.com> wrote: > > > > > Hi, I found a bug in the code that generates exception tables, I've attached > > what I think is the correct fix. > > > > When you run out of space writing to a buffer, the buffer management code > > simply stops writing at the
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...;>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>> @@ -469,19 +476,47 @@ >>>>>>> >>>>>>> >>>>>>> void JITEmitter::startFunction(MachineFunction &F) { >>>>>>> - uintptr_t ActualSize; >>>>>>> - BufferBegin = CurBufferPtr = MemMgr- >>>>>>> >>>>>>> >>>>>>> >>>>>>>> startFunctionBody(F.getFunction(), >>>>>>>> >>>>>>>> >>...
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
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...achineJumpTableInfo *MJTI); >>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>> @@ -469,19 +476,47 @@ >>>>> >>>>> >>>>> void JITEmitter::startFunction(MachineFunction &F) { >>>>> - uintptr_t ActualSize; >>>>> - BufferBegin = CurBufferPtr = MemMgr- >>>>> >>>>> >>>>>> startFunctionBody(F.getFunction(), >>>>>> >>>>>> >>>>> - >>>>> ActualSize); >>>>> - Buff...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...JumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>>> @@ -469,19 +476,47 @@ >>>>>>>> >>>>>>>> >>>>>>>> void JITEmitter::startFunction(MachineFunction &F) { >>>>>>>> - uintptr_t ActualSize; >>>>>>>> - BufferBegin = CurBufferPtr = MemMgr- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> startFunctionBody(F.getFunction(), >...
2013 Oct 01
2
[LLVMdev] JITMemoryManager
...OT in our instance. */ HasGOT = mgr()->isManagingGOT(); } virtual uint8_t *getGOTBase() const { return mgr()->getGOTBase(); } virtual uint8_t *startFunctionBody(const llvm::Function *F, uintptr_t &ActualSize) { return mgr()->startFunctionBody(F, ActualSize); } virtual uint8_t *allocateStub(const llvm::GlobalValue *F, unsigned StubSize, unsigned Alignment) { return mgr()->allocateStub(F, StubSize,...
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...eJumpTableInfo *MJTI); >>>>>>>>> @@ -469,19 +476,47 @@ >>>>>>>>> >>>>>>>>> >>>>>>>>> void JITEmitter::startFunction(MachineFunction &F) { >>>>>>>>> - uintptr_t ActualSize; >>>>>>>>> - BufferBegin = CurBufferPtr = MemMgr- >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> startFunctionBody(F.getFunction(...
2013 Oct 02
0
[LLVMdev] JITMemoryManager
...*/ > HasGOT = mgr()->isManagingGOT(); > } > virtual uint8_t *getGOTBase() const { > return mgr()->getGOTBase(); > } > virtual uint8_t *startFunctionBody(const llvm::Function *F, > uintptr_t &ActualSize) { > return mgr()->startFunctionBody(F, ActualSize); > } > virtual uint8_t *allocateStub(const llvm::GlobalValue *F, > unsigned StubSize, > unsigned Alignment) { > return mgr()->a...
2013 Oct 02
3
[LLVMdev] JITMemoryManager
...= mgr()->isManagingGOT(); >> } >> virtual uint8_t *getGOTBase() const { >> return mgr()->getGOTBase(); >> } >> virtual uint8_t *startFunctionBody(const llvm::Function *F, >> uintptr_t &ActualSize) { >> return mgr()->startFunctionBody(F, ActualSize); >> } >> virtual uint8_t *allocateStub(const llvm::GlobalValue *F, >> unsigned StubSize, >> unsigned Alignment) { >>...
2012 Aug 21
2
[LLVMdev] [PATCH] Fix for bug in JIT exception table allocation (no test yet)
...4,14 +974,24 @@ SavedBufferBegin = BufferBegin; SavedBufferEnd = BufferEnd; SavedCurBufferPtr = CurBufferPtr; + uint8_t *FrameRegister; - BufferBegin = CurBufferPtr = MemMgr->startExceptionTable(F.getFunction(), - ActualSize); - BufferEnd = BufferBegin+ActualSize; - EmittedFunctions[F.getFunction()].ExceptionTable = BufferBegin; - uint8_t *EhStart; - uint8_t *FrameRegister = DE->EmitDwarfTable(F, *this, FnStart, FnEnd, - EhStart); + while (true) { +...
2016 Feb 02
3
Question: resize: non-sparse copying of extended partition
Hello everyone! I faced an issue using virt-resize. I have an image with extended -> logical -> pv -> lv -> ext4 (although I think LVM does not matter). And image is 65G virtual size and 1G actualSize. When I call virt-resize to 60G, it blindly copies the extended partition content, but does it non-sparse (resize.ml:1231), irrespective to --no-sparse option. So the destination image is 60G actual size. Is it a bug, or it was made intentionally (why?) ? TY for answers! -- Your sincerely, Maxi...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...) = 0; > + > + /// startExceptionTable - When we finished JITing the function, > if exception > + /// handling is set, we emit the exception table. > + virtual unsigned char* startExceptionTable(const Function* F, > + uintptr_t &ActualSize) > = 0; > + > + /// endExceptionTable - This method is called when the JIT is > done emitting > + /// the exception table. > + virtual void endExceptionTable(const Function *F, unsigned char > *TableStart, > + unsigned char *TableEnd,...