[llvm-branch-commits] [mlir] 1ccfb41 - printf debugging

Alex Zinenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 6 02:50:23 PST 2024


Author: Alex Zinenko
Date: 2024-03-06T10:49:17Z
New Revision: 1ccfb41ab32ac27b32919438a11806bd688a030d

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

LOG: printf debugging

Added: 
    

Modified: 
    mlir/lib/IR/BuiltinAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/IR/BuiltinAttributes.cpp b/mlir/lib/IR/BuiltinAttributes.cpp
index 89b1ed67f5d067..2f3798ed54f2f3 100644
--- a/mlir/lib/IR/BuiltinAttributes.cpp
+++ b/mlir/lib/IR/BuiltinAttributes.cpp
@@ -1084,6 +1084,11 @@ bool DenseElementsAttr::isValidRawBuffer(ShapedType type,
     return rawBufferWidth == llvm::alignTo<8>(numElements);
   }
 
+  llvm::errs() << "storage width: " << storageWidth
+               << " rawBufferWidth: " << rawBufferWidth
+               << " numElements: " << numElements << "\n";
+  type.dump();
+
   // All other types are 8-bit aligned, so we can just check the buffer width
   // to know if only a single initializer element was passed in.
   if (rawBufferWidth == storageWidth) {


        


More information about the llvm-branch-commits mailing list