Skip to content

Commit 445f96e

Browse files
committed
Remove unused functions
1 parent fb82ac3 commit 445f96e

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

mlir/lib/Dialect/AMDGPU/IR/AMDGPUDialect.cpp

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff 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-
8753
void AMDGPUDialect::initialize() {
8854
addOperations<
8955
#define GET_OP_LIST

0 commit comments

Comments
 (0)