variable instruction latency using itineraries

It it possible to specify an instruction latency in the itinerary through a command line option? We have several options for a hardware divider which have different latencies and it would be nice if I could specify it through a compiler option rather than changing the value in the code and recompiling llvm every time?

Any help is appreciated.

Hi Rail,

I believe that your target can override getInstrLatency/getOperandLatency in your TargetInstrInfo subclass and add the behavior you desire.