[Mlir-commits] [mlir] 8521850 - Provide a definition for OperationPosition::kDown

Benjamin Kramer llvmlistbot at llvm.org
Fri Nov 26 05:12:38 PST 2021


Author: Benjamin Kramer
Date: 2021-11-26T14:11:59+01:00
New Revision: 8521850f20dbd9f2926999da84d8a10b52bb2574

URL: https://github.com/llvm/llvm-project/commit/8521850f20dbd9f2926999da84d8a10b52bb2574
DIFF: https://github.com/llvm/llvm-project/commit/8521850f20dbd9f2926999da84d8a10b52bb2574.diff

LOG: Provide a definition for OperationPosition::kDown

This isn't necessary in C++17, but C++14 still requires it.

Added: 
    

Modified: 
    mlir/lib/Conversion/PDLToPDLInterp/Predicate.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/PDLToPDLInterp/Predicate.cpp b/mlir/lib/Conversion/PDLToPDLInterp/Predicate.cpp
index 8983ecb8d324..8d560ebbcde8 100644
--- a/mlir/lib/Conversion/PDLToPDLInterp/Predicate.cpp
+++ b/mlir/lib/Conversion/PDLToPDLInterp/Predicate.cpp
@@ -44,3 +44,8 @@ OperandPosition::OperandPosition(const KeyTy &key) : Base(key) {
 OperandGroupPosition::OperandGroupPosition(const KeyTy &key) : Base(key) {
   parent = std::get<0>(key);
 }
+
+//===----------------------------------------------------------------------===//
+// OperationPosition
+
+constexpr unsigned OperationPosition::kDown;


        


More information about the Mlir-commits mailing list