@@ -535,10 +535,10 @@ decodeFixedType(ArrayRef<llvm::Intrinsic::IITDescriptor> &infos,
535535// / Helper function to correct integer signedness for intrinsic arguments.
536536// / IIT always returns signed integers, but the actual intrinsic may expect
537537// / unsigned integers based on the AST FunctionDecl parameter types.
538- static mlir::Type
539- correctIntrinsicIntegerSignedness (mlir::Type iitType, const CallExpr *E,
540- unsigned argIndex,
541- mlir::MLIRContext *context) {
538+ static mlir::Type getIntrinsicArgumentTypeFromAST (mlir::Type iitType,
539+ const CallExpr *E,
540+ unsigned argIndex,
541+ mlir::MLIRContext *context) {
542542 // If it's not an integer type, return as-is
543543 auto intTy = dyn_cast<cir::IntType>(iitType);
544544 if (!intTy)
@@ -2769,8 +2769,8 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
27692769 mlir::Type expectedTy = intrinsicType.getInput (i);
27702770
27712771 // Use helper to get the correct integer type based on AST signedness
2772- mlir::Type correctedExpectedTy = correctIntrinsicIntegerSignedness (
2773- expectedTy, E, i, &getMLIRContext ());
2772+ mlir::Type correctedExpectedTy =
2773+ getIntrinsicArgumentTypeFromAST ( expectedTy, E, i, &getMLIRContext ());
27742774
27752775 if (argType != correctedExpectedTy)
27762776 llvm_unreachable (" NYI" );
0 commit comments