[mlir][linalg][bufferize] Fix build
authorMatthias Springer <springerm@google.com>
Tue, 25 Jan 2022 12:50:02 +0000 (21:50 +0900)
committerMatthias Springer <springerm@google.com>
Tue, 25 Jan 2022 12:59:23 +0000 (21:59 +0900)
This fixes a linker error related to ModuleBufferization.cpp.

Differential Revision: https://reviews.llvm.org/D118127

mlir/lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp

index 0fe7986..e5eac1f 100644 (file)
@@ -85,6 +85,16 @@ using namespace tensor;
 using namespace comprehensive_bufferize;
 using namespace mlir::bufferization;
 
+/// Attribute name used to mark the bufferization layout for region
+/// arguments during linalg comprehensive bufferization.
+constexpr const ::llvm::StringLiteral
+    bufferization::BufferizableOpInterface::kBufferLayoutAttrName;
+
+/// Attribute name used to mark region arguments that can be bufferized
+/// in-place during linalg comprehensive bufferization.
+constexpr const ::llvm::StringLiteral
+    bufferization::BufferizableOpInterface::kInplaceableAttrName;
+
 namespace {
 /// The state of analysis of a FuncOp.
 enum class FuncOpAnalysisState { NotAnalyzed, InProgress, Analyzed };