Displaying 2 results from an estimated 2 matches for "isjumptableindex".
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...> + // now.
Not "emitting" anything here. :-)
>
> + if (RelocOp->isGlobalAddress()) {
> + FinalSize += sizeGlobalAddress(false);
> + } else if (RelocOp->isConstantPoolIndex()) {
> + FinalSize += sizeConstPoolAddress(false);
> + } else if (RelocOp->isJumpTableIndex()) {
> + FinalSize += sizeJumpTableAddress(false);
> + } else {
> + assert(0 && "Unknown value to relocate!");
> + }
> + return FinalSize;
> +}
> +
> +static unsigned sizeMemModRMByte(const MachineInstr &MI, unsigned Op,
> +...
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