[Mlir-commits] [mlir] e900320 - [mlir] Hotfix - Drop spurious constexpr that breaks build

Nicolas Vasilache llvmlistbot at llvm.org
Tue May 26 13:21:40 PDT 2020


Author: Nicolas Vasilache
Date: 2020-05-26T16:21:31-04:00
New Revision: e9003207591e4830bcce2de1631db901f8c4f2b8

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

LOG: [mlir] Hotfix - Drop spurious constexpr that breaks build

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
index 02d276256076..13db3a2a88d2 100644
--- a/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
+++ b/mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
@@ -81,21 +81,21 @@ constexpr StringRef getPaddingAttrName() { return "padding"; }
 
 /// Use to encode that a particular iterator type has parallel semantics.
 constexpr StringRef getParallelIteratorTypeName() { return "parallel"; }
-constexpr bool isParallelIterator(Attribute attr) {
+bool isParallelIterator(Attribute attr) {
   auto strAttr = attr.dyn_cast_or_null<StringAttr>();
   return strAttr && strAttr.getValue() == getParallelIteratorTypeName();
 }
 
 /// Use to encode that a particular iterator type has reduction semantics.
 constexpr StringRef getReductionIteratorTypeName() { return "reduction"; }
-constexpr bool isReductionIterator(Attribute attr) {
+bool isReductionIterator(Attribute attr) {
   auto strAttr = attr.dyn_cast_or_null<StringAttr>();
   return strAttr && strAttr.getValue() == getReductionIteratorTypeName();
 }
 
 /// Use to encode that a particular iterator type has window semantics.
 constexpr StringRef getWindowIteratorTypeName() { return "window"; }
-constexpr bool isWindowIterator(Attribute attr) {
+bool isWindowIterator(Attribute attr) {
   auto strAttr = attr.dyn_cast_or_null<StringAttr>();
   return strAttr && strAttr.getValue() == getWindowIteratorTypeName();
 }


        


More information about the Mlir-commits mailing list