[clang] [CIR] Implement builtin extractf (PR #170427)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 5 16:06:36 PST 2025


================
@@ -425,6 +425,32 @@ def CIR_ConstantOp : CIR_Op<"const", [
         return boolAttr.getValue();
       llvm_unreachable("Expected a BoolAttr in ConstantOp");
     }
+    static bool isAllOnesValue(mlir::Value value) {
----------------
andykaylor wrote:

This feels weird as a static function. @xlauko is that what you had in mind? I would have expected the dynamic cast to ConstantOp to happen at the callsite with this as a non-static function.

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


More information about the cfe-commits mailing list