[Mlir-commits] [mlir] [mlir] MLIR-QUERY slice-matchers implementation (PR #115670)

Jacques Pienaar llvmlistbot at llvm.org
Mon Apr 21 08:28:05 PDT 2025


================
@@ -85,12 +92,24 @@ void VariantValue::reset() {
     delete value.Matcher;
     break;
   // Cases that do nothing.
+  case ValueType::Signed:
   case ValueType::Nothing:
     break;
   }
   type = ValueType::Nothing;
 }
 
+// Signed
+bool VariantValue::isSigned() const { return type == ValueType::Signed; }
+
+int64_t VariantValue::getSigned() const { return value.Signed; }
+
+void VariantValue::setSigned(int64_t newValue) {
+  reset();
----------------
jpienaar wrote:

Is this needed?

https://github.com/llvm/llvm-project/pull/115670


More information about the Mlir-commits mailing list