Skip to content

Commit b205b33

Browse files
committed
[NFC] clang-format -i llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
1 parent d9b511d commit b205b33

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

+14-9
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ IRBuilder<>::InsertPoint OpenMPIRBuilder::createParallel(
604604

605605
// Add some fake uses for OpenMP provided arguments.
606606
ToBeDeleted.push_back(Builder.CreateLoad(Int32, TIDAddr, "tid.addr.use"));
607-
Instruction *ZeroAddrUse = Builder.CreateLoad(Int32, ZeroAddr,
608-
"zero.addr.use");
607+
Instruction *ZeroAddrUse =
608+
Builder.CreateLoad(Int32, ZeroAddr, "zero.addr.use");
609609
ToBeDeleted.push_back(ZeroAddrUse);
610610

611611
// ThenBB
@@ -2754,7 +2754,8 @@ CallInst *OpenMPIRBuilder::createCachedThreadPrivate(
27542754
}
27552755

27562756
OpenMPIRBuilder::InsertPointTy
2757-
OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD, bool RequiresFullRuntime) {
2757+
OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD,
2758+
bool RequiresFullRuntime) {
27582759
if (!updateToLocation(Loc))
27592760
return Loc.IP;
27602761

@@ -2763,16 +2764,18 @@ OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD, b
27632764
ConstantInt *IsSPMDVal = ConstantInt::getBool(Int32->getContext(), IsSPMD);
27642765
ConstantInt *UseGenericStateMachine =
27652766
ConstantInt::getBool(Int32->getContext(), !IsSPMD);
2766-
ConstantInt *RequiresFullRuntimeVal = ConstantInt::getBool(Int32->getContext(), RequiresFullRuntime);
2767+
ConstantInt *RequiresFullRuntimeVal =
2768+
ConstantInt::getBool(Int32->getContext(), RequiresFullRuntime);
27672769

27682770
Function *Fn = getOrCreateRuntimeFunctionPtr(
27692771
omp::RuntimeFunction::OMPRTL___kmpc_target_init);
27702772

2771-
CallInst *ThreadKind =
2772-
Builder.CreateCall(Fn, {Ident, IsSPMDVal, UseGenericStateMachine, RequiresFullRuntimeVal});
2773+
CallInst *ThreadKind = Builder.CreateCall(
2774+
Fn, {Ident, IsSPMDVal, UseGenericStateMachine, RequiresFullRuntimeVal});
27732775

27742776
Value *ExecUserCode = Builder.CreateICmpEQ(
2775-
ThreadKind, ConstantInt::get(ThreadKind->getType(), -1), "exec_user_code");
2777+
ThreadKind, ConstantInt::get(ThreadKind->getType(), -1),
2778+
"exec_user_code");
27762779

27772780
// ThreadKind = __kmpc_target_init(...)
27782781
// if (ThreadKind == -1)
@@ -2802,14 +2805,16 @@ OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD, b
28022805
}
28032806

28042807
void OpenMPIRBuilder::createTargetDeinit(const LocationDescription &Loc,
2805-
bool IsSPMD, bool RequiresFullRuntime) {
2808+
bool IsSPMD,
2809+
bool RequiresFullRuntime) {
28062810
if (!updateToLocation(Loc))
28072811
return;
28082812

28092813
Constant *SrcLocStr = getOrCreateSrcLocStr(Loc);
28102814
Value *Ident = getOrCreateIdent(SrcLocStr);
28112815
ConstantInt *IsSPMDVal = ConstantInt::getBool(Int32->getContext(), IsSPMD);
2812-
ConstantInt *RequiresFullRuntimeVal = ConstantInt::getBool(Int32->getContext(), RequiresFullRuntime);
2816+
ConstantInt *RequiresFullRuntimeVal =
2817+
ConstantInt::getBool(Int32->getContext(), RequiresFullRuntime);
28132818

28142819
Function *Fn = getOrCreateRuntimeFunctionPtr(
28152820
omp::RuntimeFunction::OMPRTL___kmpc_target_deinit);

0 commit comments

Comments
 (0)