From 6f81795fca9fad0ca3fa5269f9156ca4d4d109df Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Fri, 18 Nov 2022 20:32:18 +0100 Subject: [PATCH] [flang][NFC] Remove unused DispatchTableop fct Remove `appendTableEntry` as it is not used. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138293 --- flang/include/flang/Optimizer/Dialect/FIROps.td | 3 --- flang/lib/Optimizer/Dialect/FIROps.cpp | 6 ------ 2 files changed, 9 deletions(-) diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td index 3e1ae71..bf682b7 100644 --- a/flang/include/flang/Optimizer/Dialect/FIROps.td +++ b/flang/include/flang/Optimizer/Dialect/FIROps.td @@ -2822,9 +2822,6 @@ def fir_DispatchTableOp : fir_Op<"dispatch_table", ]; let extraClassDeclaration = [{ - /// Append a dispatch table entry to the table. - void appendTableEntry(mlir::Operation *op); - static constexpr llvm::StringRef getParentAttrNameStr() { return "parent"; } static constexpr llvm::StringRef getExtendsKeyword() { return "extends"; } diff --git a/flang/lib/Optimizer/Dialect/FIROps.cpp b/flang/lib/Optimizer/Dialect/FIROps.cpp index 53b21b3..016c691 100644 --- a/flang/lib/Optimizer/Dialect/FIROps.cpp +++ b/flang/lib/Optimizer/Dialect/FIROps.cpp @@ -1083,12 +1083,6 @@ mlir::FunctionType fir::DispatchOp::getFunctionType() { // DispatchTableOp //===----------------------------------------------------------------------===// -void fir::DispatchTableOp::appendTableEntry(mlir::Operation *op) { - assert(mlir::isa(*op) && "operation must be a DTEntryOp"); - auto &block = getBlock(); - block.getOperations().insert(block.end(), op); -} - mlir::ParseResult fir::DispatchTableOp::parse(mlir::OpAsmParser &parser, mlir::OperationState &result) { // Parse the name as a symbol reference attribute. -- 2.7.4