[LLVMdev] Being able to know the jitted code-size before emitting

Nicolas Geoffray
Wed, 16 Apr 2008 09:51:12 -0000

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