[LLVMdev] Size of instructions

Eric Christopher echristo at apple.com
Thu Dec 2 11:31:28 PST 2010


On Dec 2, 2010, at 1:36 AM, Sreeraj a wrote:

> Hi i am trying to write an optimization wherein i need to get the size of each instruction in the loop.
> is there any framework that allows me to find out the size of an Instruction I ?

Target dependent size? No, not until you hit the MachineInstruction level.

-eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101202/df8ad15b/attachment.html>


More information about the llvm-dev mailing list