def find_insts(self, cls=None):
        """
        Iterate over insts of the given class in this block.
        """
        for inst in self.body:
            if isinstance(inst, cls):
                yield inst

        Iterate over insts of the given class in this block.
        
numba/core/ir.py