[clang] [CIR] Upstream support for data member comparison (PR #171897)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 13 07:09:20 PST 2025


================
@@ -108,4 +112,12 @@ mlir::Operation *LowerItaniumCXXABI::lowerGetRuntimeMember(
                              cir::CastKind::bitcast, memberBytesPtr);
 }
 
+mlir::Value
+LowerItaniumCXXABI::lowerDataMemberCmp(cir::CmpOp op, mlir::Value loweredLhs,
+                                       mlir::Value loweredRhs,
+                                       mlir::OpBuilder &builder) const {
+  return cir::CmpOp::create(builder, op.getLoc(), op.getKind(), loweredLhs,
----------------
Lancern wrote:

I'll later rebase my patch onto the latest incubator main.

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


More information about the cfe-commits mailing list