@@ -3322,14 +3322,14 @@ mlir::LogicalResult CIRToLLVMComplexAddOpLowering::matchAndRewrite(
33223322 auto complexType = mlir::cast<cir::ComplexType>(op.getLhs ().getType ());
33233323 mlir::Type complexElemTy =
33243324 getTypeConverter ()->convertType (complexType.getElementType ());
3325- auto lhsReal =
3326- mlir::LLVM::ExtractValueOp::create ( rewriter, loc, complexElemTy, lhs, 0 );
3327- auto lhsImag =
3328- mlir::LLVM::ExtractValueOp::create ( rewriter, loc, complexElemTy, lhs, 1 );
3329- auto rhsReal =
3330- mlir::LLVM::ExtractValueOp::create ( rewriter, loc, complexElemTy, rhs, 0 );
3331- auto rhsImag =
3332- mlir::LLVM::ExtractValueOp::create ( rewriter, loc, complexElemTy, rhs, 1 );
3325+ auto lhsReal = mlir::LLVM::ExtractValueOp::create (
3326+ rewriter, loc, complexElemTy, lhs, ArrayRef ( int64_t { 0 }) );
3327+ auto lhsImag = mlir::LLVM::ExtractValueOp::create (
3328+ rewriter, loc, complexElemTy, lhs, ArrayRef ( int64_t { 1 }) );
3329+ auto rhsReal = mlir::LLVM::ExtractValueOp::create (
3330+ rewriter, loc, complexElemTy, rhs, ArrayRef ( int64_t { 0 }) );
3331+ auto rhsImag = mlir::LLVM::ExtractValueOp::create (
3332+ rewriter, loc, complexElemTy, rhs, ArrayRef ( int64_t { 1 }) );
33333333
33343334 mlir::Value newReal;
33353335 mlir::Value newImag;
@@ -3404,13 +3404,13 @@ mlir::LogicalResult CIRToLLVMComplexSubOpLowering::matchAndRewrite(
34043404 mlir::Type complexElemTy =
34053405 getTypeConverter ()->convertType (complexType.getElementType ());
34063406 auto lhsReal =
3407- mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, lhs, 0 );
3407+ mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, lhs, ArrayRef ( int64_t { 0 }) );
34083408 auto lhsImag =
3409- mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, lhs, 1 );
3409+ mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, lhs, ArrayRef ( int64_t { 1 }) );
34103410 auto rhsReal =
3411- mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, rhs, 0 );
3411+ mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, rhs, ArrayRef ( int64_t { 0 }) );
34123412 auto rhsImag =
3413- mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, rhs, 1 );
3413+ mlir::LLVM::ExtractValueOp::create (rewriter, loc, complexElemTy, rhs, ArrayRef ( int64_t { 1 }) );
34143414
34153415 mlir::Value newReal;
34163416 mlir::Value newImag;
@@ -3434,10 +3434,10 @@ mlir::LogicalResult CIRToLLVMComplexSubOpLowering::matchAndRewrite(
34343434 mlir::LLVM::PoisonOp::create (rewriter, op->getLoc (), complexLLVMTy);
34353435
34363436 auto realComplex = mlir::LLVM::InsertValueOp::create (
3437- rewriter, op->getLoc (), initialComplex, newReal, 0 );
3437+ rewriter, op->getLoc (), initialComplex, newReal, ArrayRef ( int64_t { 0 }) );
34383438
3439- rewriter.replaceOpWithNewOp <mlir::LLVM::InsertValueOp>(op, realComplex,
3440- newImag, 1 );
3439+ rewriter.replaceOpWithNewOp <mlir::LLVM::InsertValueOp>(
3440+ op, realComplex, newImag, ArrayRef ( int64_t { 1 }) );
34413441
34423442 return mlir::success ();
34433443}
0 commit comments