‘memref_ext’ Dialect¶
extended memref dialect
Operations¶
memref_ext.alloc_workspace (::bishengir::memref_ext::AllocWorkspaceOp)¶
Workspace memory allocation operation.
Syntax:
operation ::= `memref_ext.alloc_workspace` `(`$dynamicSize`)` (`from` $workspaceArg^)? ( `offset` `=` `[`$offset^`]`)?
attr-dict `:` (`from` type($workspaceArg)^ `to`)? type($memref)
The alloc_workspace operation allocates a region of workspace memory.
Example:
memref_ext.alloc_workspace() : memref<100xi8>
memref_ext.alloc_workspace(%dynamic) : memref<2x?xi32>
memref_ext.alloc_workspace(%dynamic) from %arg offset = [%offset] : from memref<?xi8> to memref<2x?xi32>
Traits: AttrSizedOperandSegments
Operands¶
Operand |
Description |
|---|---|
|
memref of any type values |
|
variadic of index |
|
variadic of index |
Results¶
Result |
Description |
|---|---|
|
memref of any type values |
Enums¶
CmpFPredicate¶
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Cases¶
Symbol |
Value |
String |
|---|---|---|
AlwaysFalse |
|
false |
OEQ |
|
oeq |
OGT |
|
ogt |
OGE |
|
oge |
OLT |
|
olt |
OLE |
|
ole |
ONE |
|
one |
ORD |
|
ord |
UEQ |
|
ueq |
UGT |
|
ugt |
UGE |
|
uge |
ULT |
|
ult |
ULE |
|
ule |
UNE |
|
une |
UNO |
|
uno |
AlwaysTrue |
|
true |
CmpIPredicate¶
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Cases¶
Symbol |
Value |
String |
|---|---|---|
eq |
|
eq |
ne |
|
ne |
slt |
|
slt |
sle |
|
sle |
sgt |
|
sgt |
sge |
|
sge |
ult |
|
ult |
ule |
|
ule |
ugt |
|
ugt |
uge |
|
uge |
IntegerOverflowFlags¶
Integer overflow arith flags
Cases¶
Symbol |
Value |
String |
|---|---|---|
none |
|
none |
nsw |
|
nsw |
nuw |
|
nuw |
RoundingMode¶
Floating point rounding mode
Cases¶
Symbol |
Value |
String |
|---|---|---|
to_nearest_even |
|
to_nearest_even |
downward |
|
downward |
upward |
|
upward |
toward_zero |
|
toward_zero |
to_nearest_away |
|
to_nearest_away |
AtomicRMWKind¶
allowed 64-bit signless integer cases: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
Cases¶
Symbol |
Value |
String |
|---|---|---|
addf |
|
addf |
addi |
|
addi |
assign |
|
assign |
maximumf |
|
maximumf |
maxs |
|
maxs |
maxu |
|
maxu |
minimumf |
|
minimumf |
mins |
|
mins |
minu |
|
minu |
mulf |
|
mulf |
muli |
|
muli |
ori |
|
ori |
andi |
|
andi |
maxnumf |
|
maxnumf |
minnumf |
|
minnumf |
FastMathFlags¶
Floating point fast math flags
Cases¶
Symbol |
Value |
String |
|---|---|---|
none |
|
none |
reassoc |
|
reassoc |
nnan |
|
nnan |
ninf |
|
ninf |
nsz |
|
nsz |
arcp |
|
arcp |
contract |
|
contract |
afn |
|
afn |
fast |
|
fast |