search for: emitconstantpool

Displaying 18 results from an estimated 18 matches for "emitconstantpool".

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
...#include "llvm/Target/TargetJITInfo.h" >> @@ -370,6 +376,7 @@ >> virtual void startFunction(MachineFunction &F); >> virtual bool finishFunction(MachineFunction &F); >> >> + void initConstantPool(MachineConstantPool *MCP); >> void emitConstantPool(MachineConstantPool *MCP); >> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >> @@ -469,19 +476,47 @@ >> >> >> void JITEmitter::startFunction(MachineFunction &F) { >> - uintptr_t Actua...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
.../TargetData.h" > #include "llvm/Target/TargetJITInfo.h" > @@ -370,6 +376,7 @@ > virtual void startFunction(MachineFunction &F); > virtual bool finishFunction(MachineFunction &F); > > + void initConstantPool(MachineConstantPool *MCP); > 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 =...
2008 Apr 01
0
[LLVMdev] Being able to know the jitted code-size before emitting
...Target/TargetJITInfo.h" >>> @@ -370,6 +376,7 @@ >>> virtual void startFunction(MachineFunction &F); >>> virtual bool finishFunction(MachineFunction &F); >>> >>> + void initConstantPool(MachineConstantPool *MCP); >>> void emitConstantPool(MachineConstantPool *MCP); >>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>> @@ -469,19 +476,47 @@ >>> >>> >>> void JITEmitter::startFunction(MachineFunction &F) { >&...
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...uot; >>>> @@ -370,6 +376,7 @@ >>>> virtual void startFunction(MachineFunction &F); >>>> virtual bool finishFunction(MachineFunction &F); >>>> >>>> + void initConstantPool(MachineConstantPool *MCP); >>>> void emitConstantPool(MachineConstantPool *MCP); >>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>> @@ -469,19 +476,47 @@ >>>> >>>> >>>> void JITEmitter::startFunction(Machine...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...7 @@ >>>>>> virtual void startFunction(MachineFunction &F); >>>>>> virtual bool finishFunction(MachineFunction &F); >>>>>> >>>>>> + void initConstantPool(MachineConstantPool *MCP); >>>>>> void emitConstantPool(MachineConstantPool *MCP); >>>>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>> @@ -469,19 +476,47 @@ >>>>>> >>>>>> >>>>&...
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...>>>> virtual void startFunction(MachineFunction &F); >>>>>>> virtual bool finishFunction(MachineFunction &F); >>>>>>> >>>>>>> + void initConstantPool(MachineConstantPool *MCP); >>>>>>> void emitConstantPool(MachineConstantPool *MCP); >>>>>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>> @@ -469,19 +476,47 @@ >>>>>>> >>>>>>>...
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...> @@ -370,6 +376,7 @@ >>>>> virtual void startFunction(MachineFunction &F); >>>>> virtual bool finishFunction(MachineFunction &F); >>>>> >>>>> + void initConstantPool(MachineConstantPool *MCP); >>>>> void emitConstantPool(MachineConstantPool *MCP); >>>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>> @@ -469,19 +476,47 @@ >>>>> >>>>> >>>>> void JITEmitter:...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...virtual void startFunction(MachineFunction &F); >>>>>>>> virtual bool finishFunction(MachineFunction &F); >>>>>>>> >>>>>>>> + void initConstantPool(MachineConstantPool *MCP); >>>>>>>> void emitConstantPool(MachineConstantPool *MCP); >>>>>>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>>> @@ -469,19 +476,47 @@ >>>>>>>> >>>...
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...startFunction(MachineFunction &F); >>>>>>>>> virtual bool finishFunction(MachineFunction &F); >>>>>>>>> >>>>>>>>> + void initConstantPool(MachineConstantPool *MCP); >>>>>>>>> void emitConstantPool(MachineConstantPool *MCP); >>>>>>>>> void initJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>>>> void emitJumpTableInfo(MachineJumpTableInfo *MJTI); >>>>>>>>> @@ -469,19 +476,47 @@ >>>>>>>>&gt...
2013 Jun 25
2
[LLVMdev] Contants generation
Hi again, Actually, I've just been looking at the existing code and the ARM solution may be over-complicated for this situation. You should be able to override EmitConstantPool directly, or possibly even just override getSectionForConstantKind in X86LinuxTargetObjectFile (and perhaps others) to return .text. Tim.
2004 Dec 08
0
[LLVMdev] FP Constants spilling to memory in x86 code generation
...what I'd like to know is if the process of spilling constants to > memory could be a bit more controlled, maybe using the JIT memory manager and > putting it in with the function stubs? Yes, this can and should definitely be improved. If you look at ExecutionEngine/JIT/JITEmitter.cpp:emitConstantPool, you can see that the JIT is just new'ing a block of memory for every constant pool that is needed. This is, admittedly, antisocial for your application, so if you'd like to make a memory manager for it, feel free. > If not, I have to add tracking to the allocations here so they can...
2004 Dec 06
2
[LLVMdev] FP Constants spilling to memory in x86 code generation
Hello, I've tracked down a new memory leak which started happening when I enabled constant propagation (I created my own passmanager which I run before calling getPointerToGlobal to JIT the function I have generated - is this OK?). The reason is that FP constants are being spilled to memory as there is no immediate fp load available. In my case this is a bit unnecessary since the
2013 Jun 24
2
[LLVMdev] Contants generation
Hi, I'd like to generate constants inside .text in order to use ip-relative loads, when the code model is "large". How can I do this? (I'm on X86_64 linux) Thank you. - Elena --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the
2013 Jun 25
0
[LLVMdev] Contants generation
Hi Elena, > I’d like to generate constants inside .text in order to use ip-relative > loads, when the code model is “large”. I don't think this is a sequence the x86 backend supports at the moment, but it is how ARM handles its constant-pools. The outline is that you have a pass which looks through a functions constpool uses and emits a pseudo-instruction for each, which is then
2013 Jun 25
0
[LLVMdev] Contants generation
...om] Sent: Tuesday, June 25, 2013 15:08 To: Demikhovsky, Elena Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Contants generation Hi again, Actually, I've just been looking at the existing code and the ARM solution may be over-complicated for this situation. You should be able to override EmitConstantPool directly, or possibly even just override getSectionForConstantKind in X86LinuxTargetObjectFile (and perhaps others) to return .text. Tim. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential materi...
2013 Jun 25
2
[LLVMdev] Contants generation - proposal
...om] Sent: Tuesday, June 25, 2013 15:08 To: Demikhovsky, Elena Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Contants generation Hi again, Actually, I've just been looking at the existing code and the ARM solution may be over-complicated for this situation. You should be able to override EmitConstantPool directly, or possibly even just override getSectionForConstantKind in X86LinuxTargetObjectFile (and perhaps others) to return .text. Tim. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential materi...
2004 Dec 13
2
[LLVMdev] FP Constants spilling to memory in x86 code generation
...ow is if the process of spilling constants >> to memory could be a bit more controlled, maybe using the JIT memory >> manager and putting it in with the function stubs? > > Yes, this can and should definitely be improved. If you look at > ExecutionEngine/JIT/JITEmitter.cpp:emitConstantPool, you can see that > the JIT is just new'ing a block of memory for every constant pool that > is needed. This is, admittedly, antisocial for your application, so if > you'd like to make a memory manager for it, feel free. > > I think that adding something like the JITMemo...