[all-commits] [llvm/llvm-project] 04d630: [mlir] Add debug messages for failures of isValidI...
Jeremy Kun via All-commits
all-commits at lists.llvm.org
Wed Oct 18 18:47:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 04d63088cd5b97398d3c83a943e231e760c27cd7
https://github.com/llvm/llvm-project/commit/04d63088cd5b97398d3c83a943e231e760c27cd7
Author: Jeremy Kun <jkun at google.com>
Date: 2023-10-18 (Wed, 18 Oct 2023)
Changed paths:
M mlir/lib/IR/BuiltinAttributes.cpp
Log Message:
-----------
[mlir] Add debug messages for failures of isValidIntOrFloat
I have run into assertion failures quite often when calling this method
via `DenseElementsAttr::get`, and I think this would help, at the very
least, by printing out the bit width size mismatches, rather than a
plain assertion failure. I included all the other cases in the method
for completeness
More information about the All-commits
mailing list