How can I get which are the instructions are using this register(%4:gpr32)

Hi All,

I have instruction like below

%4:gpr32 = MOVi32imm 6553600

Here MI->getOperand(0).isOnRegUseList() API is returning true.

But I want to know that which are the instructions are using this register(%4:gpr32) in current BB and Dominator Tree Basic Blocks.

How can I get which are the instructions are using this register(%4:gpr32)?

Could any one please give your suggestions.

Thanks & Regards,

Ramakota.

Hi Ramakota,