[PATCH] D78039: Define SDBM key methods in its own cpp file.

Stella Laurenzo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 19:30:33 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG485cf19651a5: Define SDBM key methods in its own cpp file. (authored by stellaraccident).
Herald added a subscriber: Kayjukh.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78039/new/

https://reviews.llvm.org/D78039

Files:
  mlir/include/mlir/Dialect/SDBM/SDBMDialect.h
  mlir/lib/Dialect/SDBM/CMakeLists.txt
  mlir/lib/Dialect/SDBM/SDBMDialect.cpp


Index: mlir/lib/Dialect/SDBM/SDBMDialect.cpp
===================================================================
--- /dev/null
+++ mlir/lib/Dialect/SDBM/SDBMDialect.cpp
@@ -0,0 +1,13 @@
+//===- SDBMDialect.cpp - MLIR SDBM Dialect --------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/Dialect/SDBM/SDBMDialect.h"
+
+using namespace mlir;
+
+SDBMDialect::~SDBMDialect() = default;
Index: mlir/lib/Dialect/SDBM/CMakeLists.txt
===================================================================
--- mlir/lib/Dialect/SDBM/CMakeLists.txt
+++ mlir/lib/Dialect/SDBM/CMakeLists.txt
@@ -1,5 +1,6 @@
 add_mlir_dialect_library(MLIRSDBM
   SDBM.cpp
+  SDBMDialect.cpp
   SDBMExpr.cpp
 
   ADDITIONAL_HEADER_DIRS
Index: mlir/include/mlir/Dialect/SDBM/SDBMDialect.h
===================================================================
--- mlir/include/mlir/Dialect/SDBM/SDBMDialect.h
+++ mlir/include/mlir/Dialect/SDBM/SDBMDialect.h
@@ -19,6 +19,11 @@
 public:
   SDBMDialect(MLIRContext *context) : Dialect(getDialectNamespace(), context) {}
 
+  /// Since there are no other virtual methods in this derived class, override
+  /// the destructor so that key methods get defined in the corresponding
+  /// module.
+  ~SDBMDialect() override;
+
   static StringRef getDialectNamespace() { return "sdbm"; }
 
   /// Get the uniquer for SDBM expressions. This should not be used directly.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78039.260054.patch
Type: text/x-patch
Size: 1667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200425/8a465dd3/attachment.bin>


More information about the llvm-commits mailing list