how to define Instruction Cost

Hello,

I have defined some new instructions. Now I want to define the costs associated with each instruction (cost model) for better selection and scheduling.

How to do this in x86?

Please help.

Thank You

Regards