Skip to content

Test deprecation

test_deprecation

TestDeprecationPass dataclass

Bases: ModulePass

Test pass that does nothing and raises a DeprecationWarning.

Source code in xdsl/transforms/test_deprecation.py
@deprecated("hello")
class TestDeprecationPass(ModulePass):
    """
    Test pass that does nothing and raises a DeprecationWarning.
    """

    name = "test-deprecation"

    def apply(self, ctx: Context, op: builtin.ModuleOp) -> None: ...

name = 'test-deprecation' class-attribute instance-attribute

apply(ctx: Context, op: builtin.ModuleOp) -> None

Source code in xdsl/transforms/test_deprecation.py
def apply(self, ctx: Context, op: builtin.ModuleOp) -> None: ...