Polly 23.0.0git
isl_multi_domain_reverse_templ.c
Go to the documentation of this file.
1/*
2 * Copyright 2019 Cerebras Systems
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege,
7 * Cerebras Systems, 175 S San Antonio Rd, Los Altos, CA, USA
8 */
9
10#include <isl/space.h>
11
12#include <isl_multi_macro.h>
13
14/* Given a multi expression on a domain (A -> B),
15 * interchange A and B in the wrapped domain
16 * to obtain a multi expression on the domain (B -> A).
17 */
18__isl_give MULTI(BASE) *FN(MULTI(BASE),domain_reverse)(
19 __isl_take MULTI(BASE) *multi)
20{
21 S(MULTI(BASE),un_op_control) control = {
22 .fn_space = &isl_space_domain_reverse,
23 .fn_el = &FN(EL,domain_reverse),
24 };
25 return FN(MULTI(BASE),un_op)(multi, &control);
26}
#define FN(TYPE, NAME)
#define __isl_take
Definition ctx.h:22
#define __isl_give
Definition ctx.h:19
#define BASE
Definition flow_cmp.c:49
#define EL
#define S(TYPE, NAME)
#define MULTI(BASE)
__isl_export __isl_give isl_space * isl_space_domain_reverse(__isl_take isl_space *space)
Definition isl_space.c:2115
static std::vector< Signature > un_op