[Mlir-commits] [mlir] [mlir][quant] Print actual quant storage type when signed (PR #187300)
German Gambon
llvmlistbot at llvm.org
Fri Apr 10 00:48:40 PDT 2026
================
@@ -680,7 +680,13 @@ def Builtin_Integer : Builtin_Type<"Integer", "integer",
/// Get the storage type as a string.
std::string getStorageTypeName(bool isSigned) const {
- return (isSigned ? "i" : "u") + std::to_string(getWidth());
+ if (isSignless()) {
+ return (isSigned ? "i" : "u") + std::to_string(getWidth());
+ } else {
+ std::string s;
+ llvm::raw_string_ostream(s) << *this;
----------------
ggambon wrote:
Yes, that's correct.
https://github.com/llvm/llvm-project/pull/187300
More information about the Mlir-commits
mailing list