loopy/transform/instruction.py
def add_dependency(kernel, insn_match, dependency):
    """Add the instruction dependency *dependency* to the instructions matched
    by *insn_match*.

    *insn_match* may be any instruction id match understood by
    :func:`loopy.match.parse_match`.
    """

    if dependency not in kernel.id_to_insn:
        raise LoopyError("cannot add dependency on non-existent instruction ID '%s'"
                % dependency)

    def add_dep(insn):
        new_deps = insn.depends_on
        added_deps = frozenset([dependency])
        if new_deps is None:
            new_deps = added_deps
        else:
            new_deps = new_deps | added_deps

        return insn.copy(depends_on=new_deps)

    return map_instructions(kernel, insn_match, add_dep)
Add the instruction dependency *dependency* to the instructions matched
    by *insn_match*.

    *insn_match* may be any instruction id match understood by
    :func:`loopy.match.parse_match`.
    
Add the instruction dependency *dependency* to the instructions matched
by *insn_match*.

insn_match* may be any instruction id match understood by
Add the instruction dependency * dependency * to the instructions matched by * insn_match * . insn_match * may be any instruction id match understood by
def add_dependency(kernel, insn_match, dependency):
    if dependency not in kernel.id_to_insn:
        raise LoopyError("cannot add dependency on non-existent instruction ID '%s'"
                % dependency)
    def add_dep(insn):
        new_deps = insn.depends_on
        added_deps = frozenset([dependency])
        if new_deps is None:
            new_deps = added_deps
        else:
            new_deps = new_deps | added_deps
        return insn.copy(depends_on=new_deps)
    return map_instructions(kernel, insn_match, add_dep)
def add_dependency ( kernel , insn_match , dependency ) : if dependency not in kernel . id_to_insn : raise LoopyError ( "cannot add dependency on non-existent instruction ID '%s'" % dependency ) def add_dep ( insn ) : new_deps = insn . depends_on added_deps = frozenset ( [ dependency ] ) if new_deps is None : new_deps = added_deps else : new_deps = new_deps | added_deps return insn . copy ( depends_on = new_deps ) return map_instructions ( kernel , insn_match , add_dep )
Add the instruction dependency *dependency* to the instructions matched
by *insn_match*.
Add the instruction dependency * dependency * to the instructions matched by * insn_match * .
"""Add the instruction dependency *dependency* to the instructions matched
    by *insn_match*.

    *insn_match* may be any instruction id match understood by
    :func:`loopy.match.parse_match`.
    """
kernel
insn_match
dependency
func
None