File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
mlir/lib/Dialect/AMDGPU/IR Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -50,40 +50,6 @@ struct AMDGPUInlinerInterface final : DialectInlinerInterface {
5050};
5151} // namespace
5252
53- static ParseResult
54- parseDynamicIndex (OpAsmParser &parser,
55- std::optional<OpAsmParser::UnresolvedOperand> &dynamicSize,
56- IntegerAttr &staticSize) {
57-
58- if (int64_t staticVal; parser.parseOptionalInteger (staticVal).has_value ()) {
59- staticSize = parser.getBuilder ().getIndexAttr (staticVal);
60- return success ();
61- }
62-
63- OpAsmParser::UnresolvedOperand operand = OpAsmParser::UnresolvedOperand{};
64- OptionalParseResult hasOperand = parser.parseOptionalOperand (operand);
65- if (!hasOperand.has_value ()) {
66- dynamicSize = std::nullopt ;
67- return success ();
68- }
69-
70- if (failed (hasOperand.value ())) {
71- return failure ();
72- }
73-
74- dynamicSize = operand;
75- return success ();
76- }
77-
78- static void printDynamicIndex (OpAsmPrinter &printer, Operation *op,
79- Value dynamicSize, IntegerAttr staticSize) {
80- if (staticSize) {
81- printer << staticSize.getValue ();
82- return ;
83- }
84- printer << dynamicSize;
85- }
86-
8753void AMDGPUDialect::initialize () {
8854 addOperations<
8955#define GET_OP_LIST
You can’t perform that action at this time.
0 commit comments