[clang] [CIR] Implement ViewLikeOpInterface for multiple Ops (PR #230897)

Henrich Lauko via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 03:13:55 PDT 2026


================
@@ -548,7 +550,8 @@ def CIR_PtrStrideOp : CIR_Op<"ptr_stride", [
 //===----------------------------------------------------------------------===//
 
 def CIR_PtrMaskOp : CIR_Op<"ptr_mask", [
-  Pure, AllTypesMatch<["ptr", "result"]>
+  Pure, AllTypesMatch<["ptr", "result"]>,
+  DeclareOpInterfaceMethods<ViewLikeOpInterface>
----------------
xlauko wrote:

This is not really a a viewLikeOp. All other semantically match to some degree to `llvm.gep`, but not this one.

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


More information about the cfe-commits mailing list