Skip to content

Specialization of ir.Method #734

Description

@kaihsin
@kernel
def foo_x(a:int, x: int, y: float):
    p = pure_stmt(prob_ker, x)
    non_pure_stmt(p)

@kernel
def boo(a: int):
        foo(a,3,4.0)

should be able to specialize to:

@kernel
def foo_x(a:int, x: int, y: float):
    p = pure_stmt(prob_ker, x)
    non_pure_stmt(p)

@kernel
def foo_x2(a:int):
    x = 3
    y = 4.0
    p = pure_stmt(prob_ker, x)
    non_pure_stmt(p)


@kernel
def boo(a: int):
        foo_x2(a)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P-HighPriority: high priority issues and tasks.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions