[flang-commits] [flang] 6f81795 - [flang][NFC] Remove unused DispatchTableop fct
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Fri Nov 18 11:32:50 PST 2022
Author: Valentin Clement
Date: 2022-11-18T20:32:43+01:00
New Revision: 6f81795fca9fad0ca3fa5269f9156ca4d4d109df
URL: https://github.com/llvm/llvm-project/commit/6f81795fca9fad0ca3fa5269f9156ca4d4d109df
DIFF: https://github.com/llvm/llvm-project/commit/6f81795fca9fad0ca3fa5269f9156ca4d4d109df.diff
LOG: [flang][NFC] Remove unused DispatchTableop fct
Remove `appendTableEntry` as it is not used.
Reviewed By: jeanPerier, PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D138293
Added:
Modified:
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/Dialect/FIROps.cpp
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td
index 3e1ae7183956d..bf682b7e89d69 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 53b21b3fb0d3f..016c691efc27f 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<fir::DTEntryOp>(*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.
More information about the flang-commits
mailing list