================
@@ -291,6 +291,21 @@ def CIR_ConstantOp : CIR_Op<"const", [
         return ptrAttr.isNullValue();
       return false;
     }
+
+    template <typename T>
+    T getValueAttr() { return mlir::dyn_cast<T>(getValue()); }
+
+    llvm::APInt getIntValue() {
----------------
xlauko wrote:

They are in not upstreamed parts of this PR in the incubator, I will drop them 
for now.

https://github.com/llvm/llvm-project/pull/151216
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to