Unverified Commit 15a303d2 authored by Yu Cheng's avatar Yu Cheng Committed by GitHub
Browse files

[Language] Support loop_break primitive (#873)

parent c538d8ab
...@@ -352,6 +352,12 @@ def sync_grid(): ...@@ -352,6 +352,12 @@ def sync_grid():
return tir.call_intrin("handle", tir.op.Op.get("tl.sync_grid")) return tir.call_intrin("handle", tir.op.Op.get("tl.sync_grid"))
def loop_break():
"""Break out of the innermost loop.
"""
return tir.call_intrin("handle", tir.op.Op.get("tl.loop_break"))
def cp_async_barrier_noinc(barrier_id: Union[int, PrimExpr, tir.Call]): def cp_async_barrier_noinc(barrier_id: Union[int, PrimExpr, tir.Call]):
"""Perform a ptx async copy barrier using cp.async.mbarrier.arrive.noinc. """Perform a ptx async copy barrier using cp.async.mbarrier.arrive.noinc.
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment