Changeset View
Changeset View
Standalone View
Standalone View
mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td
Show First 20 Lines • Show All 957 Lines • ▼ Show 20 Lines | def PDLInterp_SwitchOperandCountOp | ||||
let arguments = (ins PDL_Operation:$operation, I32ElementsAttr:$caseValues); | let arguments = (ins PDL_Operation:$operation, I32ElementsAttr:$caseValues); | ||||
let assemblyFormat = [{ | let assemblyFormat = [{ | ||||
`of` $operation `to` $caseValues `(` $cases `)` attr-dict `->` $defaultDest | `of` $operation `to` $caseValues `(` $cases `)` attr-dict `->` $defaultDest | ||||
}]; | }]; | ||||
let builders = [ | let builders = [ | ||||
OpBuilder<(ins "Value":$operation, "ArrayRef<int32_t>":$counts, | OpBuilder<(ins "Value":$operation, "ArrayRef<int32_t>":$counts, | ||||
"Block *":$defaultDest, "BlockRange":$dests), [{ | "Block *":$defaultDest, "BlockRange":$dests), [{ | ||||
build($_builder, $_state, operation, $_builder.getI32VectorAttr(counts), | build($_builder, $_state, operation, $_builder.getI32VectorAttr(counts), | ||||
defaultDest, dests); | defaultDest, dests); | ||||
}]>]; | }]>]; | ||||
} | } | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// pdl_interp::SwitchOperationNameOp | // pdl_interp::SwitchOperationNameOp | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | def PDLInterp_SwitchResultCountOp | ||||
let arguments = (ins PDL_Operation:$operation, I32ElementsAttr:$caseValues); | let arguments = (ins PDL_Operation:$operation, I32ElementsAttr:$caseValues); | ||||
let assemblyFormat = [{ | let assemblyFormat = [{ | ||||
`of` $operation `to` $caseValues `(` $cases `)` attr-dict `->` $defaultDest | `of` $operation `to` $caseValues `(` $cases `)` attr-dict `->` $defaultDest | ||||
}]; | }]; | ||||
let builders = [ | let builders = [ | ||||
OpBuilder<(ins "Value":$operation, "ArrayRef<int32_t>":$counts, | OpBuilder<(ins "Value":$operation, "ArrayRef<int32_t>":$counts, | ||||
"Block *":$defaultDest, "BlockRange":$dests), [{ | "Block *":$defaultDest, "BlockRange":$dests), [{ | ||||
build($_builder, $_state, operation, $_builder.getI32VectorAttr(counts), | build($_builder, $_state, operation, $_builder.getI32VectorAttr(counts), | ||||
defaultDest, dests); | defaultDest, dests); | ||||
}]>]; | }]>]; | ||||
} | } | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// pdl_interp::SwitchTypeOp | // pdl_interp::SwitchTypeOp | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |