[Mlir-commits] [mlir] [mlir] Improve mlir-query tool by implementing `getBackwardSlice` and `getForwardSlice` matchers (PR #115670)

Denzel-Brian Budii llvmlistbot at llvm.org
Tue Apr 22 05:56:46 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();
----------------
chios202 wrote:

I think it doesn't make sense for primitive data types. I removed it

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


More information about the Mlir-commits mailing list