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

Nicolas Geoffray
2008-04-15T11:24:54Z

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 yes, it's a good
> idea, there are other passes which can make use of them, e.g. branch
> shortening.
>
> Thanks,
>
> Evan
>
>
>> Thanks,
>> Nicolas
>>
>>
>>> Thanks.
>>>
>>> Evan
>>>
>>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jit-size.patch
Type: text/x-patch
Size: 39859 bytes
Desc: not available
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20080415/0be1adb7/attachment.bin>