@@ -762,9 +762,9 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
762762 // FIXME(cir): For now lets pretend we shouldn't use the conversion
763763 // intrinsics and insert a cast here unconditionally.
764764 src = builder.createCast (cgf.getLoc (loc), cir::CastKind::floating, src,
765- cgf.FloatTy );
765+ cgf.floatTy );
766766 srcType = cgf.getContext ().FloatTy ;
767- mlirSrcType = cgf.FloatTy ;
767+ mlirSrcType = cgf.floatTy ;
768768 }
769769 }
770770
@@ -1738,7 +1738,7 @@ mlir::Value ScalarExprEmitter::emitSub(const BinOpInfo &ops) {
17381738 //
17391739 // See more in `EmitSub` in CGExprScalar.cpp.
17401740 assert (!cir::MissingFeatures::llvmLoweringPtrDiffConsidersPointee ());
1741- return cir::PtrDiffOp::create (builder, cgf.getLoc (ops.loc ), cgf.PtrDiffTy ,
1741+ return cir::PtrDiffOp::create (builder, cgf.getLoc (ops.loc ), cgf.ptrDiffTy ,
17421742 ops.lhs , ops.rhs );
17431743}
17441744
@@ -2220,20 +2220,20 @@ mlir::Value ScalarExprEmitter::VisitUnaryExprOrTypeTraitExpr(
22202220 " sizeof operator for VariableArrayType" ,
22212221 e->getStmtClassName ());
22222222 return builder.getConstant (
2223- loc, cir::IntAttr::get (cgf.cgm .UInt64Ty ,
2223+ loc, cir::IntAttr::get (cgf.cgm .uInt64Ty ,
22242224 llvm::APSInt (llvm::APInt (64 , 1 ), true )));
22252225 }
22262226 } else if (e->getKind () == UETT_OpenMPRequiredSimdAlign) {
22272227 cgf.getCIRGenModule ().errorNYI (
22282228 e->getSourceRange (), " sizeof operator for OpenMpRequiredSimdAlign" ,
22292229 e->getStmtClassName ());
22302230 return builder.getConstant (
2231- loc, cir::IntAttr::get (cgf.cgm .UInt64Ty ,
2231+ loc, cir::IntAttr::get (cgf.cgm .uInt64Ty ,
22322232 llvm::APSInt (llvm::APInt (64 , 1 ), true )));
22332233 }
22342234
22352235 return builder.getConstant (
2236- loc, cir::IntAttr::get (cgf.cgm .UInt64Ty ,
2236+ loc, cir::IntAttr::get (cgf.cgm .uInt64Ty ,
22372237 e->EvaluateKnownConstInt (cgf.getContext ())));
22382238}
22392239
@@ -2329,14 +2329,14 @@ mlir::Value ScalarExprEmitter::VisitAbstractConditionalOperator(
23292329
23302330 mlir::Value lhs = Visit (lhsExpr);
23312331 if (!lhs) {
2332- lhs = builder.getNullValue (cgf.VoidTy , loc);
2332+ lhs = builder.getNullValue (cgf.voidTy , loc);
23332333 lhsIsVoid = true ;
23342334 }
23352335
23362336 mlir::Value rhs = Visit (rhsExpr);
23372337 if (lhsIsVoid) {
23382338 assert (!rhs && " lhs and rhs types must match" );
2339- rhs = builder.getNullValue (cgf.VoidTy , loc);
2339+ rhs = builder.getNullValue (cgf.voidTy , loc);
23402340 }
23412341
23422342 return builder.createSelect (loc, condV, lhs, rhs);
@@ -2381,7 +2381,7 @@ mlir::Value ScalarExprEmitter::VisitAbstractConditionalOperator(
23812381 if (!insertPoints.empty ()) {
23822382 // If both arms are void, so be it.
23832383 if (!yieldTy)
2384- yieldTy = cgf.VoidTy ;
2384+ yieldTy = cgf.voidTy ;
23852385
23862386 // Insert required yields.
23872387 for (mlir::OpBuilder::InsertPoint &toInsert : insertPoints) {
0 commit comments