[clang] [CIR] Upstream ExtractMemberOp (PR #173512)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 25 10:19:30 PST 2025
================
@@ -2557,6 +2557,23 @@ LogicalResult cir::GetMemberOp::verify() {
return mlir::success();
}
+
+//===----------------------------------------------------------------------===//
+// ExtractMemberOp Definitions
+//===----------------------------------------------------------------------===//
+
+LogicalResult cir::ExtractMemberOp::verify() {
+ auto recordTy = mlir::cast<cir::RecordType>(getRecord().getType());
----------------
AmrDeveloper wrote:
Can you please add a test for the verifier?
Check `clang/test/CIR/IR/invalid-vector.cir` for reference
https://github.com/llvm/llvm-project/pull/173512
More information about the cfe-commits
mailing list