Skip to content

Commit

Permalink
move upate vars out of meta so it doesn't collide with upstream (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Dec 25, 2023
1 parent a6ac813 commit d56d2f8
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 214 deletions.
2 changes: 1 addition & 1 deletion mlir/extras/dialects/ext/cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
_cext,
)
from ....ir import Value, InsertionPoint, Block, OpView
from ...meta import get_user_code_loc, Successor
from ...util import get_user_code_loc, Successor


@_cext.register_operation(_Dialect, replace=True)
Expand Down
4 changes: 2 additions & 2 deletions mlir/extras/dialects/ext/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import sys
from typing import Union, Optional

from ...meta import make_maybe_no_args_decorator, op_region_builder
from ...util import get_user_code_loc
from ...meta import op_region_builder
from ...util import get_user_code_loc, make_maybe_no_args_decorator
from ....dialects.func import *
from ....ir import (
InsertionPoint,
Expand Down
4 changes: 1 addition & 3 deletions mlir/extras/dialects/ext/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
from .arith import constant
from .func import FuncBase
from ...meta import (
ModuleMeta,
make_maybe_no_args_decorator,
region_op,
)
from ....dialects._ods_common import get_op_result_or_op_results
from ...util import get_user_code_loc
from ...util import get_user_code_loc, make_maybe_no_args_decorator, ModuleMeta


def block_id_x():
Expand Down
4 changes: 2 additions & 2 deletions mlir/extras/dialects/ext/scf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
)
from ...ast.util import ast_call, set_lineno
from .gpu import get_device_mapping_array_attr
from ...meta import region_adder, region_op
from ...util import get_user_code_loc
from ...meta import region_op
from ...util import get_user_code_loc, region_adder
from ....dialects._ods_common import (
get_op_result_or_op_results,
get_default_loc_context,
Expand Down
4 changes: 2 additions & 2 deletions mlir/extras/dialects/ext/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from ....dialects import tensor
from ....dialects.tensor import *
from .arith import ArithValue, Scalar, constant
from ...meta import region_op, _update_caller_vars
from ...meta import region_op
from ...._mlir_libs._mlir import register_value_caster
from ...util import get_user_code_loc
from ...util import get_user_code_loc, _update_caller_vars
from ....dialects._ods_common import get_op_result_or_op_results

S = ShapedType.get_dynamic_size()
Expand Down
193 changes: 0 additions & 193 deletions mlir/extras/meta.py

This file was deleted.

Loading

0 comments on commit d56d2f8

Please sign in to comment.