Get resources needed by IR scalar & vector instructions

Is there any feature that would map each IR instruction to the resources it uses?
I am trying to find shared resources between scalar and vector scalar and vector ir instruction given a basic block.