Skip to content

Commit 26f8d2c

Browse files
committed
format code
1 parent be237ff commit 26f8d2c

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp

+14-17
Original file line numberDiff line numberDiff line change
@@ -2227,12 +2227,12 @@ static mlir::Value vecReduceIntValue(CIRGenFunction &cgf, mlir::Value val,
22272227
}
22282228

22292229
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) {
22362236
// TODO: Consider removing the following unreachable when we have
22372237
// emitConstrainedFPCall feature implemented
22382238
assert(!cir::MissingFeatures::emitConstrainedFPCall());
@@ -2262,13 +2262,11 @@ static mlir::Value emitNeonCall(CIRGenBuilderTy &builder,
22622262
}
22632263

22642264
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) {
22722270
// TODO: Consider removing the following unreachable when we have
22732271
// emitConstrainedFPCall feature implemented
22742272
assert(!cir::MissingFeatures::emitConstrainedFPCall());
@@ -2291,9 +2289,7 @@ static mlir::Value emitNeonCall(CIRGenBuilderTy &builder,
22912289
assert(!cir::MissingFeatures::emitConstrainedFPCall());
22922290
return nullptr;
22932291
}
2294-
return builder
2295-
.create<Operation>(loc, funcResTy, args)
2296-
.getResult();
2292+
return builder.create<Operation>(loc, funcResTy, args).getResult();
22972293
}
22982294

22992295
/// This function `emitCommonNeonCallPattern0` implements a common way
@@ -4173,7 +4169,8 @@ CIRGenFunction::emitAArch64BuiltinExpr(unsigned BuiltinID, const CallExpr *E,
41734169
mlir::Value arg0 = emitScalarExpr(E->getArg(0));
41744170
args.push_back(arg0);
41754171
return emitNeonCall<cir::RoundEvenOp>(builder, {arg0.getType()}, args,
4176-
getCIRGenModule().FloatTy, getLoc(E->getExprLoc()));
4172+
getCIRGenModule().FloatTy,
4173+
getLoc(E->getExprLoc()));
41774174
}
41784175
case NEON::BI__builtin_neon_vrndph_f16: {
41794176
llvm_unreachable("NEON::BI__builtin_neon_vrndph_f16 NYI");

0 commit comments

Comments
 (0)