[Mlir-commits] [mlir] 042d97e - [MLIR] Remove constexpr from LoopOps.td

Diego Caballero llvmlistbot at llvm.org
Fri Feb 21 11:50:53 PST 2020


Author: Nagy Mostafa
Date: 2020-02-21T11:49:32-08:00
New Revision: 042d97eda9fabbf7718e32fc5efe9150c7d8bfa9

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

LOG: [MLIR] Remove constexpr from LoopOps.td

Reviewed By: rriddle

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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/LoopOps/LoopOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td
index 0c943b3e38a2..2d04965dcb08 100644
--- a/mlir/include/mlir/Dialect/LoopOps/LoopOps.td
+++ b/mlir/include/mlir/Dialect/LoopOps/LoopOps.td
@@ -149,7 +149,7 @@ def ForOp : Loop_Op<"for",
       return getBody()->getNumArguments() - 1; 
     }
     /// Number of operands controlling the loop: lb, ub, step
-    constexpr unsigned getNumControlOperands() { return 3; }
+    unsigned getNumControlOperands() { return 3; }
     /// Does the operation hold operands for loop-carried values
     bool hasIterOperands() { 
       return getOperation()->getNumOperands() > getNumControlOperands();


        


More information about the Mlir-commits mailing list