[Mlir-commits] [mlir] [mlir][emitc] Support dense as init value of constantOp (PR #144826)
Jianjian Guan
llvmlistbot at llvm.org
Mon Aug 18 02:07:34 PDT 2025
================
@@ -1362,8 +1362,9 @@ LogicalResult CppEmitter::emitAttribute(Location loc, Attribute attr) {
}
}
if (auto dense = dyn_cast<DenseIntElementsAttr>(attr)) {
+ assert(isa<ShapedType>(dense.getType()) && "Expected shaped type");
----------------
jacquesguan wrote:
Removed.
https://github.com/llvm/llvm-project/pull/144826
More information about the Mlir-commits
mailing list