@@ -535,10 +535,10 @@ decodeFixedType(ArrayRef<llvm::Intrinsic::IITDescriptor> &infos,
535
535
// / Helper function to correct integer signedness for intrinsic arguments.
536
536
// / IIT always returns signed integers, but the actual intrinsic may expect
537
537
// / 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) {
542
542
// If it's not an integer type, return as-is
543
543
auto intTy = dyn_cast<cir::IntType>(iitType);
544
544
if (!intTy)
@@ -2769,8 +2769,8 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
2769
2769
mlir::Type expectedTy = intrinsicType.getInput (i);
2770
2770
2771
2771
// 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 ());
2774
2774
2775
2775
if (argType != correctedExpectedTy)
2776
2776
llvm_unreachable (" NYI" );
0 commit comments