[clang] [CIR] Upstream ExtractMemberOp (PR #173512)
Vishruth Thimmaiah via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 6 12:29:23 PST 2026
================
@@ -3289,6 +3289,35 @@ mlir::LogicalResult CIRToLLVMGetMemberOpLowering::matchAndRewrite(
}
}
+mlir::LogicalResult CIRToLLVMExtractMemberOpLowering::matchAndRewrite(
+ cir::ExtractMemberOp op, OpAdaptor adaptor,
+ mlir::ConversionPatternRewriter &rewriter) const {
+ std::int64_t indecies[1] = {static_cast<std::int64_t>(op.getIndex())};
+
+ mlir::Type recordTy = op.getRecord().getType();
+ if (auto llvmStructTy =
+ mlir::dyn_cast<mlir::LLVM::LLVMStructType>(recordTy)) {
----------------
vishruth-thimmaiah wrote:
Yep, I think this can be removed.
https://github.com/llvm/llvm-project/pull/173512
More information about the cfe-commits
mailing list