MimIR
0.5-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
Loading...
Searching...
No Matches
constraints.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mim/def.h
>
4
5
namespace
mim::plug::tensor::phase
{
6
7
/// Checks statically decidable gather constraints, blaming @p app for a violation. Returns false for unresolved
8
/// relations.
9
bool
check_gather_shape_constraints
(
const
App
* app,
10
const
Def
* rank,
11
const
Def
* dim,
12
const
Def
* src_shape,
13
const
Def
* idx_shape);
14
15
/// Checks statically decidable scatter constraints, blaming @p app for a violation. Returns false for unresolved
16
/// relations.
17
bool
check_scatter_shape_constraints
(
const
App
* app,
18
const
Def
* rank,
19
const
Def
* dim,
20
const
Def
* src_shape,
21
const
Def
* idx_shape,
22
const
Def
* updates_shape);
23
24
}
// namespace mim::plug::tensor::phase
mim::App
Definition
lam.h:215
mim::Def
Base class for all Defs.
Definition
def.h:289
def.h
mim::plug::tensor::phase
Definition
constraints.h:5
mim::plug::tensor::phase::check_scatter_shape_constraints
bool check_scatter_shape_constraints(const App *app, const Def *rank, const Def *dim, const Def *src_shape, const Def *idx_shape, const Def *updates_shape)
Checks statically decidable scatter constraints, blaming app for a violation.
Definition
constraints.cpp:45
mim::plug::tensor::phase::check_gather_shape_constraints
bool check_gather_shape_constraints(const App *app, const Def *rank, const Def *dim, const Def *src_shape, const Def *idx_shape)
Checks statically decidable gather constraints, blaming app for a violation.
Definition
constraints.cpp:24
include
mim
plug
tensor
phase
constraints.h
Generated by
1.18.0