Reference: Abstract Syntax Trees#
New in version 2014.1.
Symbolic Constants#
- class islpy.ast_expr_op_type#
- access = islpy._isl.ast_expr_op_type.access#
- add = islpy._isl.ast_expr_op_type.add#
- address_of = islpy._isl.ast_expr_op_type.address_of#
- and_ = islpy._isl.ast_expr_op_type.and_#
- and_then = islpy._isl.ast_expr_op_type.and_then#
- call = islpy._isl.ast_expr_op_type.call#
- cond = islpy._isl.ast_expr_op_type.cond#
- div = islpy._isl.ast_expr_op_type.div#
- eq = islpy._isl.ast_expr_op_type.eq#
- error = islpy._isl.ast_expr_op_type.error#
- fdiv_q = islpy._isl.ast_expr_op_type.fdiv_q#
- ge = islpy._isl.ast_expr_op_type.ge#
- gt = islpy._isl.ast_expr_op_type.gt#
- le = islpy._isl.ast_expr_op_type.le#
- lt = islpy._isl.ast_expr_op_type.lt#
- max = islpy._isl.ast_expr_op_type.max#
- member = islpy._isl.ast_expr_op_type.member#
- min = islpy._isl.ast_expr_op_type.min#
- minus = islpy._isl.ast_expr_op_type.minus#
- mul = islpy._isl.ast_expr_op_type.mul#
- or_ = islpy._isl.ast_expr_op_type.or_#
- or_else = islpy._isl.ast_expr_op_type.or_else#
- pdiv_q = islpy._isl.ast_expr_op_type.pdiv_q#
- pdiv_r = islpy._isl.ast_expr_op_type.pdiv_r#
- select = islpy._isl.ast_expr_op_type.select#
- sub = islpy._isl.ast_expr_op_type.sub#
- zdiv_r = islpy._isl.ast_expr_op_type.zdiv_r#
- class islpy.ast_expr_type#
- error = islpy._isl.ast_expr_type.error#
- id = islpy._isl.ast_expr_type.id#
- int = islpy._isl.ast_expr_type.int#
- op = islpy._isl.ast_expr_type.op#
AST Expression#
- class islpy.AstExpr#
- __eq__(other)#
Return self==value.
- __hash__()#
Return hash(self).
- __ne__(other)#
Return self!=value.
- access(self, indices)#
- Parameters:
self β
AstExpr
indices β
AstExprList
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- add(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- address_of(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- and_(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- and_then(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- call(self, arguments)#
- Parameters:
self β
AstExpr
arguments β
AstExprList
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- copy(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- div(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- dump(self)#
- Parameters:
self β
AstExpr
- Returns:
None
Warning
This function is not part of the officially public isl API. Use at your own risk.
- eq(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- from_id = <nanobind.nb_func object>#
- from_val = <nanobind.nb_func object>#
- ge(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_ctx(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_id(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_op_arg(self, pos)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_op_n_arg(self)#
- Parameters:
self β
AstExpr
- Returns:
isl_size
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_op_type(self)#
- Parameters:
self β
AstExpr
- Returns:
isl_ast_expr_op_type
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_type(self)#
- Parameters:
self β
AstExpr
- Returns:
isl_ast_expr_type
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_val(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- gt(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- is_equal(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- le(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- lt(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- mul(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- neg(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- op_get_type(self)#
- Parameters:
self β
AstExpr
- Returns:
isl_ast_expr_op_type
Warning
This function is not part of the officially public isl API. Use at your own risk.
- op_type_print_macro(self, p)#
- Parameters:
self β
ast_expr_op_type
p β
Printer
(becomes invalid)
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- op_type_set_print_name = <nanobind.nb_func object>#
- or_(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- or_else(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- pdiv_q(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- pdiv_r(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- print_macros(self, p)#
- Parameters:
self β
AstExpr
p β
Printer
(becomes invalid)
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_op_arg(self, pos, arg)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- sub(self, expr2)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- substitute_ids(self, id2expr)#
- Parameters:
self β
AstExpr
id2expr β
IdToAstExpr
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
AST Node#
- class islpy.AstNode#
- __eq__(value, /)#
Return self==value.
- __hash__()#
Return hash(self).
- __ne__(value, /)#
Return self!=value.
- alloc_user = <nanobind.nb_func object>#
- block_from_children(self)#
- Parameters:
self β
AstNodeList
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- copy(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- dump(self)#
- Parameters:
self β
AstNode
- Returns:
None
Warning
This function is not part of the officially public isl API. Use at your own risk.
- for_print(self, p, options)#
- Parameters:
self β
AstNode
p β
Printer
(becomes invalid)options β
AstPrintOptions
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- foreach_descendant_top_down(self, fn)#
- Parameters:
self β
AstNode
fn β callback(node)
- Returns:
isl_stat
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_annotation(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_ctx(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_type(self)#
- Parameters:
self β
AstNode
- Returns:
isl_ast_node_type
Warning
This function is not part of the officially public isl API. Use at your own risk.
- if_get_else(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- if_get_then(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- if_has_else(self)#
- Parameters:
self β
AstNode
- Returns:
bool
Warning
This function is not part of the officially public isl API. Use at your own risk.
- if_print(self, p, options)#
- Parameters:
self β
AstNode
p β
Printer
(becomes invalid)options β
AstPrintOptions
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- map_descendant_bottom_up(self, fn)#
- print_(self, p, options)#
- Parameters:
self β
AstNode
p β
Printer
(becomes invalid)options β
AstPrintOptions
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- print_macros(self, p)#
- Parameters:
self β
AstNode
p β
Printer
(becomes invalid)
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_annotation(self, annotation)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- to_str(self)#
- Parameters:
self β
AstNode
- Returns:
string
Warning
This function is not part of the officially public isl API. Use at your own risk.
- user_from_expr = <nanobind.nb_func object>#
AST Build#
- class islpy.AstBuild#
- __eq__(value, /)#
Return self==value.
- __hash__()#
Return hash(self).
- __ne__(value, /)#
Return self!=value.
- access_from_multi_pw_aff(self, mpa)#
- Parameters:
self β
AstBuild
mpa β
MultiPwAff
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- access_from_pw_multi_aff(self, pma)#
- Parameters:
self β
AstBuild
pma β
PwMultiAff
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- alloc = <nanobind.nb_func object>#
- ast_from_schedule(self, schedule)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- call_from_multi_pw_aff(self, mpa)#
- Parameters:
self β
AstBuild
mpa β
MultiPwAff
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- call_from_pw_multi_aff(self, pma)#
- Parameters:
self β
AstBuild
pma β
PwMultiAff
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- copy(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- expr_from_pw_aff(self, pa)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- expr_from_set(self, set)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- from_context = <nanobind.nb_func object>#
- get_ctx(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_schedule_space(self)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- node_from_schedule(self, schedule)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- node_from_schedule_map(self, schedule)#
- restrict(self, set)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_after_each_for(self, fn)#
- Parameters:
self β
AstBuild
fn β callback(node, build)
- Returns:
tuple: (
AstBuild
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_after_each_mark(self, fn)#
- Parameters:
self β
AstBuild
fn β callback(node, build)
- Returns:
tuple: (
AstBuild
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_at_each_domain(self, fn)#
- set_before_each_for(self, fn)#
- Parameters:
self β
AstBuild
fn β callback(build)
- Returns:
tuple: (
AstBuild
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_before_each_mark(self, fn)#
- Parameters:
self β
AstBuild
fn β callback(mark, build)
- Returns:
tuple: (
AstBuild
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_create_leaf(self, fn)#
- Parameters:
self β
AstBuild
fn β callback(build)
- Returns:
tuple: (
AstBuild
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_iterators(self, iterators)#
-
Warning
This function is not part of the officially public isl API. Use at your own risk.
AST Print Options#
- class islpy.AstPrintOptions#
- __eq__(value, /)#
Return self==value.
- __hash__()#
Return hash(self).
- __ne__(value, /)#
Return self!=value.
- alloc = <nanobind.nb_func object>#
- copy(self)#
- Parameters:
self β
AstPrintOptions
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- get_ctx(self)#
- Parameters:
self β
AstPrintOptions
- Returns:
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_print_for(self, print_for)#
- Parameters:
self β
AstPrintOptions
print_for β callback(p, options, node)
- Returns:
tuple: (
AstPrintOptions
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
- set_print_user(self, print_user)#
- Parameters:
self β
AstPrintOptions
print_user β callback(p, options, node)
- Returns:
tuple: (
AstPrintOptions
, (opaque handle to manage callback lifetime))
Warning
This function is not part of the officially public isl API. Use at your own risk.
Canonical Names for Internal Module#
- class islpy._isl.ast_expr_op_type#
- class islpy._isl.ast_expr_type#
See
islpy.ast_expr_type
.
- class islpy._isl.ast_node_type#
See
islpy.ast_node_type
.
- class islpy._isl.ast_loop_type#
See
islpy.ast_loop_type
.
- class islpy._isl.AstExpr#
See
islpy.AstExpr
.
- class islpy._isl.AstNode#
See
islpy.AstNode
.
- class islpy._isl.AstBuild#
See
islpy.AstBuild
.
- class islpy._isl.AstPrintOptions#