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

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Apr 14 06:07:11 PDT 2008


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
>   



More information about the llvm-dev mailing list