Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
7467f2b3
Unverified
Commit
7467f2b3
authored
Sep 09, 2025
by
Lei Wang
Committed by
GitHub
Sep 09, 2025
Browse files
Resolve reference cycle. (#795)
Co-authored-by:
Huanqi Cao
<
caohuanqi@deepseek.com
>
parent
bcfc8343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tilelang/language/tir/entry.py
tilelang/language/tir/entry.py
+3
-0
No files found.
tilelang/language/tir/entry.py
View file @
7467f2b3
...
@@ -40,8 +40,11 @@ def prim_func(func: Optional[Callable] = None,
...
@@ -40,8 +40,11 @@ def prim_func(func: Optional[Callable] = None,
def
decorator_wrapper
(
func
):
def
decorator_wrapper
(
func
):
if
not
inspect
.
isfunction
(
func
):
if
not
inspect
.
isfunction
(
func
):
raise
TypeError
(
f
"Expect a function, but got:
{
func
}
"
)
raise
TypeError
(
f
"Expect a function, but got:
{
func
}
"
)
nonlocal
outer_stack
if
utils
.
is_defined_in_class
(
outer_stack
,
func
):
if
utils
.
is_defined_in_class
(
outer_stack
,
func
):
outer_stack
=
None
return
func
return
func
outer_stack
=
None
f
=
parse
(
func
,
utils
.
inspect_function_capture
(
func
),
check_well_formed
=
check_well_formed
)
f
=
parse
(
func
,
utils
.
inspect_function_capture
(
func
),
check_well_formed
=
check_well_formed
)
setattr
(
f
,
"__name__"
,
func
.
__name__
)
# noqa: B010
setattr
(
f
,
"__name__"
,
func
.
__name__
)
# noqa: B010
return
f
return
f
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment