diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -477,30 +477,27 @@ VPFunc = Intrinsic::getDeclaration(M, VPID, Params[0]->getType()); break; case Intrinsic::vp_load: - VPFunc = Intrinsic::getDeclaration(M, VPID, { - Params[0]->getType()->getPointerElementType(), - Params[0]->getType() - }); + VPFunc = Intrinsic::getDeclaration( + M, VPID, + {Params[0]->getType()->getPointerElementType(), Params[0]->getType()}); break; case Intrinsic::vp_gather: - VPFunc = Intrinsic::getDeclaration(M, VPID, { - VectorType::get( - cast(Params[0]->getType())->getElementType()->getPointerElementType(), - cast(Params[0]->getType())), - Params[0]->getType() - }); + VPFunc = Intrinsic::getDeclaration( + M, VPID, + {VectorType::get(cast(Params[0]->getType()) + ->getElementType() + ->getPointerElementType(), + cast(Params[0]->getType())), + Params[0]->getType()}); break; case Intrinsic::vp_store: - VPFunc = Intrinsic::getDeclaration(M, VPID, { - Params[1]->getType()->getPointerElementType(), - Params[1]->getType() - }); + VPFunc = Intrinsic::getDeclaration( + M, VPID, + {Params[1]->getType()->getPointerElementType(), Params[1]->getType()}); break; case Intrinsic::vp_scatter: - VPFunc = Intrinsic::getDeclaration(M, VPID, { - Params[0]->getType(), - Params[1]->getType() - }); + VPFunc = Intrinsic::getDeclaration( + M, VPID, {Params[0]->getType(), Params[1]->getType()}); break; } assert(VPFunc && "Could not declare VP intrinsic"); diff --git a/llvm/unittests/IR/VPIntrinsicTest.cpp b/llvm/unittests/IR/VPIntrinsicTest.cpp --- a/llvm/unittests/IR/VPIntrinsicTest.cpp +++ b/llvm/unittests/IR/VPIntrinsicTest.cpp @@ -46,10 +46,10 @@ Str << " declare <8 x float> @llvm.vp." << BinaryFPOpcode << ".v8f32(<8 x float>, <8 x float>, <8 x i1>, i32) "; - Str << " declare void @llvm.vp.store.v8i32.p0v8i32(<8 x i32>, <8 x i32>*, <8 x i1>, i32) " - << " declare void @llvm.vp.scatter.v8i32.v8p0i32(<8 x i32>, <8 x i32*>, <8 x i1>, i32) " - << " declare <8 x i32> @llvm.vp.load.v8i32.p0v8i32(<8 x i32>*, <8 x i1>, i32) " - << " declare <8 x i32> @llvm.vp.gather.v8i32.v8p0i32(<8 x i32*>, <8 x i1>, i32) "; + Str << " declare void @llvm.vp.store.v8i32.p0v8i32(<8 x i32>, <8 x i32>*, <8 x i1>, i32) "; + Str << " declare void @llvm.vp.scatter.v8i32.v8p0i32(<8 x i32>, <8 x i32*>, <8 x i1>, i32) "; + Str << " declare <8 x i32> @llvm.vp.load.v8i32.p0v8i32(<8 x i32>*, <8 x i1>, i32) "; + Str << " declare <8 x i32> @llvm.vp.gather.v8i32.v8p0i32(<8 x i32*>, <8 x i1>, i32) "; return parseAssemblyString(Str.str(), Err, C); } @@ -245,8 +245,8 @@ // Declare intrinsic anew with explicit types. std::vector Values; - for (auto *ParamTy : FuncTy->params()) - Values.push_back(UndefValue::get(ParamTy)); + for (auto *ParamTy : FuncTy->params()) { + Values.push_back(UndefValue::get(ParamTy));} ASSERT_NE(F.getIntrinsicID(), Intrinsic::not_intrinsic); auto *NewDecl = VPIntrinsic::getDeclarationForParams(