Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | let builders = [ | ||||
// Build a PadTensorOp with mixed static and dynamic entries and custom | // Build a PadTensorOp with mixed static and dynamic entries and custom | ||||
// result type. If the type passed is nullptr, it is inferred. | // result type. If the type passed is nullptr, it is inferred. | ||||
OpBuilder<(ins "Type":$resultType, "Value":$source, | OpBuilder<(ins "Type":$resultType, "Value":$source, | ||||
"ArrayRef<OpFoldResult>":$low, "ArrayRef<OpFoldResult>":$high, | "ArrayRef<OpFoldResult>":$low, "ArrayRef<OpFoldResult>":$high, | ||||
CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)> | CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)> | ||||
]; | ]; | ||||
let hasCanonicalizer = 1; | let hasCanonicalizer = 1; | ||||
let hasFolder = 1; | |||||
} | } | ||||
def Linalg_RangeOp : | def Linalg_RangeOp : | ||||
Linalg_Op<"range", [NoSideEffect]>, | Linalg_Op<"range", [NoSideEffect]>, | ||||
Arguments<(ins Index:$min, Index:$max, Index:$step)>, | Arguments<(ins Index:$min, Index:$max, Index:$step)>, | ||||
Results<(outs Range)> { | Results<(outs Range)> { | ||||
let summary = "Create a `range` type value, used to create `view`s"; | let summary = "Create a `range` type value, used to create `view`s"; | ||||
let description = [{ | let description = [{ | ||||
▲ Show 20 Lines • Show All 561 Lines • Show Last 20 Lines |