search for: sizeconst

Displaying 2 results from an estimated 2 matches for "sizeconst".

2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...} > + > +/// sizeGlobalAddress - Give the size of the emission of this > global address > +/// > +static unsigned sizeGlobalAddress(bool dword) { > + if (dword) > + return 8; > + else > + return 4; > +} How about? return dword ? 8 : 4; > > + > +/// sizeConstPoolAddress - Give the size of the emission of this > constant > +/// pool address > +/// > +static unsigned sizeConstPoolAddress(bool dword) { > + if (dword) > + return 8; > + else > + return 4; > +} > + > +/// sizeExternalSymbolAddress - Give the size of...
2008 Apr 15
4
[LLVMdev] Being able to know the jitted code-size before emitting
OK, here's a new patch that adds the infrastructure and the implementation for X86, ARM and PPC of GetInstSize and GetFunctionSize. Both functions are virtual functions defined in TargetInstrInfo.h. For X86, I moved some commodity functions from X86CodeEmitter to X86InstrInfo. What do you think? Nicolas Evan Cheng wrote: > > I think both of these belong to TargetInstrInfo. And