[LLVMdev] Being able to know the jitted code-size before emitting
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed Apr 16 02:51:12 PDT 2008
Nicolas Geoffray wrote:
>
> I can not do that in GetInstSizeWithDesc because the test is on the
> MachineInstruction, which will always say that Desc.getOpcode == MOVPC32
> in GetInstSizeWithDesc (hence the function will endlessly call itself).
> X86CodeEmitter is doing the same.
>
>
OK, forget this comment, it was wrong. The reason is that the get
function requires an TargetInstrInfo object and that GetInstSizeWithDesc
does not have and GetInstSizeInBytes has.
Nicolas
More information about the llvm-dev
mailing list