Size of instructions

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.