search for: sizeconstant

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

2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...eturn 4; > +} > + > +/// sizeJumpTableAddress - Give the size of the emission of this jump > +/// table address > +/// > +static unsigned sizeJumpTableAddress(bool dword) { > + if (dword) > + return 8; > + else > + return 4; > +} > + > +static unsigned sizeConstant(unsigned Size) { > + return Size; > +} > + > +static unsigned sizeRegModRMByte(){ > + return 1; > +} > + > +static unsigned sizeSIBByte(){ > + return 1; > +} > + > +static unsigned sizeDisplacementField(const MachineOperand > *RelocOp) { How about getDis...
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