[flang][NFC] Remove unused DispatchTableop fct

Remove `appendTableEntry` as it is not used.

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D138293
This commit is contained in:
Valentin Clement 2022-11-18 20:32:18 +01:00
parent 4787efa380
commit 6f81795fca
No known key found for this signature in database
GPG Key ID: 086D54783C928776
2 changed files with 0 additions and 9 deletions

View File

@ -2822,9 +2822,6 @@ def fir_DispatchTableOp : fir_Op<"dispatch_table",
]; ];
let extraClassDeclaration = [{ 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 getParentAttrNameStr() { return "parent"; }
static constexpr llvm::StringRef getExtendsKeyword() { return "extends"; } static constexpr llvm::StringRef getExtendsKeyword() { return "extends"; }

View File

@ -1083,12 +1083,6 @@ mlir::FunctionType fir::DispatchOp::getFunctionType() {
// DispatchTableOp // 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::ParseResult fir::DispatchTableOp::parse(mlir::OpAsmParser &parser,
mlir::OperationState &result) { mlir::OperationState &result) {
// Parse the name as a symbol reference attribute. // Parse the name as a symbol reference attribute.