[Mlir-commits] [mlir] [mlir][spirv] Tighten SPIR-V TOSA pool constraints (PR #193515)
Davide Grohmann
llvmlistbot at llvm.org
Fri Apr 24 05:58:28 PDT 2026
================
@@ -54,6 +54,96 @@ void printSPIRV_I32_1DArmTensor(OpAsmPrinter &printer, Operation *,
// SPIRV Tosa Custom verifiers
//===----------------------------------------------------------------------===//
+namespace {
+
+int64_t getIntValue(DenseIntElementsAttr attr, size_t idx) {
+ return (*std::next(attr.getValues<APInt>().begin(), idx)).getSExtValue();
----------------
davidegrohmann wrote:
Changed to `attr.getValues<APInt>()[idx].getSExtValue()` for some reason attr.getValues<int64_t>()[idx]` segfaults.
https://github.com/llvm/llvm-project/pull/193515
More information about the Mlir-commits
mailing list