pub struct ASTExpr {
pub ptr: uintptr_t,
pub should_free_on_drop: bool,
}Expand description
Wraps isl_ast_expr.
Fields§
§ptr: uintptr_t§should_free_on_drop: boolImplementations§
Source§impl ASTExpr
impl ASTExpr
Sourcepub fn access(self, indices: ASTExprList) -> Result<ASTExpr, LibISLError>
pub fn access(self, indices: ASTExprList) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_access.
Sourcepub fn address_of(self) -> Result<ASTExpr, LibISLError>
pub fn address_of(self) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_address_of.
Sourcepub fn and_then(self, expr2: ASTExpr) -> Result<ASTExpr, LibISLError>
pub fn and_then(self, expr2: ASTExpr) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_and_then.
Sourcepub fn call(self, arguments: ASTExprList) -> Result<ASTExpr, LibISLError>
pub fn call(self, arguments: ASTExprList) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_call.
Sourcepub fn copy(&self) -> Result<ASTExpr, LibISLError>
pub fn copy(&self) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_copy.
Sourcepub fn dump(&self) -> Result<(), LibISLError>
pub fn dump(&self) -> Result<(), LibISLError>
Wraps isl_ast_expr_dump.
Sourcepub fn free(self) -> Result<ASTExpr, LibISLError>
pub fn free(self) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_free.
Sourcepub fn get_id(&self) -> Result<Id, LibISLError>
pub fn get_id(&self) -> Result<Id, LibISLError>
Wraps isl_ast_expr_get_id.
Sourcepub fn get_op_arg(&self, pos: i32) -> Result<ASTExpr, LibISLError>
pub fn get_op_arg(&self, pos: i32) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_get_op_arg.
Sourcepub fn get_op_n_arg(&self) -> Result<i32, LibISLError>
pub fn get_op_n_arg(&self) -> Result<i32, LibISLError>
Wraps isl_ast_expr_get_op_n_arg.
Sourcepub fn get_op_type(&self) -> Result<ASTExprOpType, LibISLError>
pub fn get_op_type(&self) -> Result<ASTExprOpType, LibISLError>
Wraps isl_ast_expr_get_op_type.
Sourcepub fn get_type(&self) -> Result<ASTExprType, LibISLError>
pub fn get_type(&self) -> Result<ASTExprType, LibISLError>
Wraps isl_ast_expr_get_type.
Sourcepub fn get_val(&self) -> Result<Val, LibISLError>
pub fn get_val(&self) -> Result<Val, LibISLError>
Wraps isl_ast_expr_get_val.
Sourcepub fn id_get_id(&self) -> Result<Id, LibISLError>
pub fn id_get_id(&self) -> Result<Id, LibISLError>
Wraps isl_ast_expr_id_get_id.
Sourcepub fn int_get_val(&self) -> Result<Val, LibISLError>
pub fn int_get_val(&self) -> Result<Val, LibISLError>
Wraps isl_ast_expr_int_get_val.
Sourcepub fn is_equal(&self, expr2: &ASTExpr) -> Result<bool, LibISLError>
pub fn is_equal(&self, expr2: &ASTExpr) -> Result<bool, LibISLError>
Wraps isl_ast_expr_is_equal.
Sourcepub fn neg(self) -> Result<ASTExpr, LibISLError>
pub fn neg(self) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_neg.
Sourcepub fn op_get_arg(&self, pos: i32) -> Result<ASTExpr, LibISLError>
pub fn op_get_arg(&self, pos: i32) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_op_get_arg.
Sourcepub fn op_get_n_arg(&self) -> Result<i32, LibISLError>
pub fn op_get_n_arg(&self) -> Result<i32, LibISLError>
Wraps isl_ast_expr_op_get_n_arg.
Sourcepub fn op_get_type(&self) -> Result<ASTExprOpType, LibISLError>
pub fn op_get_type(&self) -> Result<ASTExprOpType, LibISLError>
Wraps isl_ast_expr_op_get_type.
Sourcepub fn op_type_print_macro(
type_: ASTExprOpType,
p: Printer,
) -> Result<Printer, LibISLError>
pub fn op_type_print_macro( type_: ASTExprOpType, p: Printer, ) -> Result<Printer, LibISLError>
Wraps isl_ast_expr_op_type_print_macro.
Sourcepub fn op_type_set_print_name(
p: Printer,
type_: ASTExprOpType,
name: &str,
) -> Result<Printer, LibISLError>
pub fn op_type_set_print_name( p: Printer, type_: ASTExprOpType, name: &str, ) -> Result<Printer, LibISLError>
Wraps isl_ast_expr_op_type_set_print_name.
Sourcepub fn or_else(self, expr2: ASTExpr) -> Result<ASTExpr, LibISLError>
pub fn or_else(self, expr2: ASTExpr) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_or_else.
Sourcepub fn print_macros(&self, p: Printer) -> Result<Printer, LibISLError>
pub fn print_macros(&self, p: Printer) -> Result<Printer, LibISLError>
Wraps isl_ast_expr_print_macros.
Sourcepub fn set_op_arg(self, pos: i32, arg: ASTExpr) -> Result<ASTExpr, LibISLError>
pub fn set_op_arg(self, pos: i32, arg: ASTExpr) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_set_op_arg.
Sourcepub fn substitute_ids(
self,
id2expr: IdToASTExpr,
) -> Result<ASTExpr, LibISLError>
pub fn substitute_ids( self, id2expr: IdToASTExpr, ) -> Result<ASTExpr, LibISLError>
Wraps isl_ast_expr_substitute_ids.
Sourcepub fn to_C_str(&self) -> Result<&str, LibISLError>
pub fn to_C_str(&self) -> Result<&str, LibISLError>
Wraps isl_ast_expr_to_C_str.
Sourcepub fn to_list(self) -> Result<ASTExprList, LibISLError>
pub fn to_list(self) -> Result<ASTExprList, LibISLError>
Wraps isl_ast_expr_to_list.
Sourcepub fn to_str(&self) -> Result<&str, LibISLError>
pub fn to_str(&self) -> Result<&str, LibISLError>
Wraps isl_ast_expr_to_str.
Sourcepub fn do_not_free_on_drop(&mut self)
pub fn do_not_free_on_drop(&mut self)
Does not call isl_ast_expr_free() on being dropped. (For internal use only.)