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

Nicolas Geoffray
2008-04-14T13:07:11Z

Hi Evan,

Evan Cheng wrote:
>
> Yeah, sorry I'm stubborn sometimes. :-) And really I think adding the
> code size functionality is not really that complicated. I would be
> happy to help if you run into issues.
>
>

What do you think of adding a
TargetMachine::getFunctionSize(MachineFunction*) and a
TargetInstrInfo::getInstructionSize(MachineInstruction*)? Is this a good
place to make them available to other passes? (ie the JIT)

Thanks,
Nicolas

> Thanks.
>
> Evan
>