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, blaming @p app for a violation. Returns false for unresolved
8/// relations.
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.
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
Base class for all Defs.
Definition def.h:289
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.
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.