Skip to content

Commit 6f81795

Browse files
committed
[flang][NFC] Remove unused DispatchTableop fct
Remove `appendTableEntry` as it is not used. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138293
1 parent 4787efa commit 6f81795

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

flang/include/flang/Optimizer/Dialect/FIROps.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,9 +2822,6 @@ def fir_DispatchTableOp : fir_Op<"dispatch_table",
28222822
];
28232823

28242824
let extraClassDeclaration = [{
2825-
/// Append a dispatch table entry to the table.
2826-
void appendTableEntry(mlir::Operation *op);
2827-
28282825
static constexpr llvm::StringRef getParentAttrNameStr() { return "parent"; }
28292826
static constexpr llvm::StringRef getExtendsKeyword() { return "extends"; }
28302827

flang/lib/Optimizer/Dialect/FIROps.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,6 @@ mlir::FunctionType fir::DispatchOp::getFunctionType() {
10831083
// DispatchTableOp
10841084
//===----------------------------------------------------------------------===//
10851085

1086-
void fir::DispatchTableOp::appendTableEntry(mlir::Operation *op) {
1087-
assert(mlir::isa<fir::DTEntryOp>(*op) && "operation must be a DTEntryOp");
1088-
auto &block = getBlock();
1089-
block.getOperations().insert(block.end(), op);
1090-
}
1091-
10921086
mlir::ParseResult fir::DispatchTableOp::parse(mlir::OpAsmParser &parser,
10931087
mlir::OperationState &result) {
10941088
// Parse the name as a symbol reference attribute.

0 commit comments

Comments
 (0)