@@ -2772,26 +2772,8 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
27722772 mlir::Type correctedExpectedTy = correctIntrinsicIntegerSignedness (
27732773 expectedTy, E, i, &getMLIRContext ());
27742774
2775- if (argType != correctedExpectedTy) {
2776- // XXX - vector of pointers?
2777- if (cir::PointerType expectedPtrTy =
2778- dyn_cast<cir::PointerType>(correctedExpectedTy)) {
2779- if (cir::PointerType argPtrTy = dyn_cast<cir::PointerType>(argType)) {
2780- if (expectedPtrTy.getAddrSpace () != argPtrTy.getAddrSpace ()) {
2781- argValue = builder.createAddrSpaceCast (
2782- getLoc (E->getExprLoc ()), argValue,
2783- cir::PointerType::get (expectedPtrTy,
2784- expectedPtrTy.getAddrSpace ()));
2785- }
2786- }
2787- }
2788- // TODO(cir): Cast vector type (e.g., v256i32) to x86_amx, this only
2789- // happens in amx intrinsics.
2790- if (cir::MissingFeatures::vectorToX86AmxCasting ())
2791- llvm_unreachable (" NYI" );
2792-
2793- argValue = builder.createBitcast (argValue, correctedExpectedTy);
2794- }
2775+ if (argType != correctedExpectedTy)
2776+ llvm_unreachable (" NYI" );
27952777
27962778 args.push_back (argValue);
27972779 }
0 commit comments