| 1044 | //===----------------------------------------------------------------------===// |
| 1045 | |
| 1046 | ParseResult parseArgumentRegion(OpAsmParser &parser, Region ®ion) { |
| 1047 | SmallVector<OpAsmParser::Argument> arguments; |
| 1048 | SmallVector<Type> resultTypes; |
| 1049 | SmallVector<DictionaryAttr> resultAttrs; |
| 1050 | bool isVariadic; |
| 1051 | if (parseFunctionArgumentList(parser, /*allowVariadic=*/false, arguments, |
| 1052 | isVariadic)) |
| 1053 | return failure(); |
| 1054 | return parser.parseRegion(region, arguments); |
| 1055 | } |
| 1056 | |
| 1057 | template <typename OpT> |
| 1058 | void printArgumentRegion(OpAsmPrinter &p, OpT op, Region ®ion) { |
nothing calls this directly
no test coverage detected