@@ -2227,12 +2227,12 @@ static mlir::Value vecReduceIntValue(CIRGenFunction &cgf, mlir::Value val,
2227
2227
}
2228
2228
2229
2229
static mlir::Value emitNeonCall (CIRGenBuilderTy &builder,
2230
- llvm::SmallVector<mlir::Type> argTypes,
2231
- llvm::SmallVectorImpl<mlir::Value> &args,
2232
- llvm::StringRef intrinsicName, mlir::Type funcResTy ,
2233
- mlir::Location loc,
2234
- bool isConstrainedFPIntrinsic = false ,
2235
- unsigned shift = 0 , bool rightshift = false ) {
2230
+ llvm::SmallVector<mlir::Type> argTypes,
2231
+ llvm::SmallVectorImpl<mlir::Value> &args,
2232
+ llvm::StringRef intrinsicName,
2233
+ mlir::Type funcResTy, mlir::Location loc,
2234
+ bool isConstrainedFPIntrinsic = false ,
2235
+ unsigned shift = 0 , bool rightshift = false ) {
2236
2236
// TODO: Consider removing the following unreachable when we have
2237
2237
// emitConstrainedFPCall feature implemented
2238
2238
assert (!cir::MissingFeatures::emitConstrainedFPCall ());
@@ -2262,13 +2262,11 @@ static mlir::Value emitNeonCall(CIRGenBuilderTy &builder,
2262
2262
}
2263
2263
2264
2264
template <typename Operation>
2265
- static mlir::Value emitNeonCall (CIRGenBuilderTy &builder,
2266
- llvm::SmallVector<mlir::Type> argTypes,
2267
- llvm::SmallVectorImpl<mlir::Value> &args,
2268
- mlir::Type funcResTy,
2269
- mlir::Location loc,
2270
- bool isConstrainedFPIntrinsic = false ,
2271
- unsigned shift = 0 , bool rightshift = false ) {
2265
+ static mlir::Value
2266
+ emitNeonCall (CIRGenBuilderTy &builder, llvm::SmallVector<mlir::Type> argTypes,
2267
+ llvm::SmallVectorImpl<mlir::Value> &args, mlir::Type funcResTy,
2268
+ mlir::Location loc, bool isConstrainedFPIntrinsic = false ,
2269
+ unsigned shift = 0 , bool rightshift = false ) {
2272
2270
// TODO: Consider removing the following unreachable when we have
2273
2271
// emitConstrainedFPCall feature implemented
2274
2272
assert (!cir::MissingFeatures::emitConstrainedFPCall ());
@@ -2291,9 +2289,7 @@ static mlir::Value emitNeonCall(CIRGenBuilderTy &builder,
2291
2289
assert (!cir::MissingFeatures::emitConstrainedFPCall ());
2292
2290
return nullptr ;
2293
2291
}
2294
- return builder
2295
- .create <Operation>(loc, funcResTy, args)
2296
- .getResult ();
2292
+ return builder.create <Operation>(loc, funcResTy, args).getResult ();
2297
2293
}
2298
2294
2299
2295
// / This function `emitCommonNeonCallPattern0` implements a common way
@@ -4173,7 +4169,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned BuiltinID, const CallExpr *E,
4173
4169
mlir::Value arg0 = emitScalarExpr (E->getArg (0 ));
4174
4170
args.push_back (arg0);
4175
4171
return emitNeonCall<cir::RoundEvenOp>(builder, {arg0.getType ()}, args,
4176
- getCIRGenModule ().FloatTy , getLoc (E->getExprLoc ()));
4172
+ getCIRGenModule ().FloatTy ,
4173
+ getLoc (E->getExprLoc ()));
4177
4174
}
4178
4175
case NEON::BI__builtin_neon_vrndph_f16: {
4179
4176
llvm_unreachable (" NEON::BI__builtin_neon_vrndph_f16 NYI" );
0 commit comments