[Mlir-commits] [mlir] [mlir][arith] Refine the verifier for	arith.constant (PR #86178)
    Cullen Rhodes 
    llvmlistbot at llvm.org
       
    Fri Mar 22 02:50:57 PDT 2024
    
    
  
================
@@ -190,6 +190,14 @@ LogicalResult arith::ConstantOp::verify() {
     return emitOpError(
         "value must be an integer, float, or elements attribute");
   }
+
+  // Intializing scalable vectors with elements attribute is not supported
+  // unless it's a vector splot.
----------------
c-rhodes wrote:
`s/splot/splat`, also move comment to `emitOpError` message? It's more descriptive and kills two birds with one stone :)
https://github.com/llvm/llvm-project/pull/86178
    
    
More information about the Mlir-commits
mailing list