/// Compute the NumUses analysis result for a function.
Compute the NumUses analysis result for a function.
Compute the NumUses analysis result for a function .
pub fn compute(func: &Function) -> NumUses {
        let mut uses = NumUses::new();
        for bb in func.layout.blocks() {
            for inst in func.layout.block_insts(bb) {
                for arg in func.dfg.inst_args(inst) {
                    let v = func.dfg.resolve_aliases(*arg);
                    uses.add_value(&func.dfg, v);
                }
            }
        }
        uses
    }
pub fn compute ( func : & Function ) -> NumUses { let mut uses = NumUses :: new ( ) ; for bb in func . layout . blocks ( ) { for inst in func . layout . block_insts ( bb ) { for arg in func . dfg . inst_args ( inst ) { let v = func . dfg . resolve_aliases ( * arg ) ; uses . add_value ( & func . dfg , v ) ; } } } uses }
Compute the NumUses analysis result for a function.
Compute the NumUses analysis result for a function .
func
&Function