search for: addsimplecodeemitter

Displaying 11 results from an estimated 11 matches for "addsimplecodeemitter".

2009 Oct 16
0
[LLVMdev] What are addSimpleCodeEmitter for?
I forgot. Why do we have LLVMTargetMachine::addSimpleCodeEmitter() when we already have addCodeEmitter()? Thanks, Evan
2008 Apr 01
2
[LLVMdev] Being able to know the jitted code-size before emitting
Hi Evan, Evan Cheng wrote: > 1) How are you computing size of the method being > jitted? I add a new pass with addSimpleCodeEmitter, with the emitter being a SizeEmitter. Since the target calls the emitter with functions such as writeByte, writeWord, etc.... the SizeEmitter class implements these function by incrementing a counter. At the end of the pass, the code size of the function is known. > 2) Why not simply add t...
2008 Mar 31
0
[LLVMdev] Being able to know the jitted code-size before emitting
...clude "llvm/Transforms/Scalar.h" > @@ -257,7 +258,13 @@ > > if (addPreEmitPass(PM, Fast) && PrintMachineCode) > PM.add(createMachineFunctionPrinterPass(cerr)); > + > + if (SizedMemoryCode) { > + SizeEmitter * SE = new SizeEmitter(&MCE); > + addSimpleCodeEmitter(PM, Fast, false, *SE); > + } > > + > addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); > > PM.add(createCollectorMetadataDeleter()); > Index: lib/CodeGen/SizeEmitter.cpp > =================================================================== > --- lib/CodeGen/SizeEmitter...
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
0
[LLVMdev] Being able to know the jitted code-size before emitting
On Apr 1, 2008, at 12:50 AM, Nicolas Geoffray wrote: > Hi Evan, > > Evan Cheng wrote: >> 1) How are you computing size of the method being >> jitted? > > I add a new pass with addSimpleCodeEmitter, with the emitter being a > SizeEmitter. Since the target calls the emitter with functions such as > writeByte, writeWord, etc.... the SizeEmitter class implements these > function by incrementing a counter. > > At the end of the pass, the code size of the function is known. That...
2008 Apr 04
3
[LLVMdev] Being able to know the jitted code-size before emitting
...gt; >>>> if (addPreEmitPass(PM, Fast) && PrintMachineCode) >>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>> + >>>> + if (SizedMemoryCode) { >>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>> + } >>>> >>>> + >>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>> >>>> PM.add(createCollectorMetadataDeleter()); >>>> Index: lib/CodeGen/SizeEmitter.cpp >>>> ======...
2008 Apr 05
2
[LLVMdev] Being able to know the jitted code-size before emitting
...s(PM, Fast) && PrintMachineCode) >>>>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>>>> + >>>>>> + if (SizedMemoryCode) { >>>>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>>>> + } >>>>>> >>>>>> + >>>>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>>>> >>>>>> PM.add(createCollectorMetadataDeleter()); >>>>>> Inde...
2008 Apr 05
0
[LLVMdev] Being able to know the jitted code-size before emitting
...mp; PrintMachineCode) >>>>>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>>>>> + >>>>>>> + if (SizedMemoryCode) { >>>>>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>>>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>>>>> + } >>>>>>> >>>>>>> + >>>>>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>>>>> >>>>>>> PM.add(createCollectorMetadataDeleter()); >&...
2008 Apr 04
0
[LLVMdev] Being able to know the jitted code-size before emitting
...t; if (addPreEmitPass(PM, Fast) && PrintMachineCode) >>>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>>> + >>>>> + if (SizedMemoryCode) { >>>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>>> + } >>>>> >>>>> + >>>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>>> >>>>> PM.add(createCollectorMetadataDeleter()); >>>>> Index: lib/CodeGen/SizeEmitter.c...
2008 Apr 07
2
[LLVMdev] Being able to know the jitted code-size before emitting
...) >>>>>>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>>>>>> + >>>>>>>> + if (SizedMemoryCode) { >>>>>>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>>>>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>>>>>> + } >>>>>>>> >>>>>>>> + >>>>>>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>>>>>> >>>>>>>> PM.add(createCollectorM...
2008 Apr 07
0
[LLVMdev] Being able to know the jitted code-size before emitting
...gt;>>>> PM.add(createMachineFunctionPrinterPass(cerr)); >>>>>>>>> + >>>>>>>>> + if (SizedMemoryCode) { >>>>>>>>> + SizeEmitter * SE = new SizeEmitter(&MCE); >>>>>>>>> + addSimpleCodeEmitter(PM, Fast, false, *SE); >>>>>>>>> + } >>>>>>>>> >>>>>>>>> + >>>>>>>>> addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE); >>>>>>>>> >>>>>>>>>...