MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
constraints.h
Go to the documentation of this file.
1#pragma once
2
3#include <mim/def.h>
4
6
7/// Checks statically decidable gather constraints. Returns false for unresolved relations.
9 const Def* dim,
10 const Def* source_shape,
11 const Def* index_shape);
12
13/// Checks statically decidable scatter constraints. Returns false for unresolved relations.
15 const Def* dim,
16 const Def* source_shape,
17 const Def* index_shape,
18 const Def* updates_shape);
19
20} // namespace mim::plug::tensor::phase
Base class for all Defs.
Definition def.h:273
bool check_scatter_shape_constraints(const Def *rank, const Def *dim, const Def *source_shape, const Def *index_shape, const Def *updates_shape)
Checks statically decidable scatter constraints. Returns false for unresolved relations.
bool check_gather_shape_constraints(const Def *rank, const Def *dim, const Def *source_shape, const Def *index_shape)
Checks statically decidable gather constraints. Returns false for unresolved relations.