@@ -604,8 +604,8 @@ IRBuilder<>::InsertPoint OpenMPIRBuilder::createParallel(
604
604
605
605
// Add some fake uses for OpenMP provided arguments.
606
606
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" );
609
609
ToBeDeleted.push_back (ZeroAddrUse);
610
610
611
611
// ThenBB
@@ -2754,7 +2754,8 @@ CallInst *OpenMPIRBuilder::createCachedThreadPrivate(
2754
2754
}
2755
2755
2756
2756
OpenMPIRBuilder::InsertPointTy
2757
- OpenMPIRBuilder::createTargetInit (const LocationDescription &Loc, bool IsSPMD, bool RequiresFullRuntime) {
2757
+ OpenMPIRBuilder::createTargetInit (const LocationDescription &Loc, bool IsSPMD,
2758
+ bool RequiresFullRuntime) {
2758
2759
if (!updateToLocation (Loc))
2759
2760
return Loc.IP ;
2760
2761
@@ -2763,16 +2764,18 @@ OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD, b
2763
2764
ConstantInt *IsSPMDVal = ConstantInt::getBool (Int32->getContext (), IsSPMD);
2764
2765
ConstantInt *UseGenericStateMachine =
2765
2766
ConstantInt::getBool (Int32->getContext (), !IsSPMD);
2766
- ConstantInt *RequiresFullRuntimeVal = ConstantInt::getBool (Int32->getContext (), RequiresFullRuntime);
2767
+ ConstantInt *RequiresFullRuntimeVal =
2768
+ ConstantInt::getBool (Int32->getContext (), RequiresFullRuntime);
2767
2769
2768
2770
Function *Fn = getOrCreateRuntimeFunctionPtr (
2769
2771
omp::RuntimeFunction::OMPRTL___kmpc_target_init);
2770
2772
2771
- CallInst *ThreadKind =
2772
- Builder. CreateCall ( Fn, {Ident, IsSPMDVal, UseGenericStateMachine, RequiresFullRuntimeVal});
2773
+ CallInst *ThreadKind = Builder. CreateCall (
2774
+ Fn, {Ident, IsSPMDVal, UseGenericStateMachine, RequiresFullRuntimeVal});
2773
2775
2774
2776
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" );
2776
2779
2777
2780
// ThreadKind = __kmpc_target_init(...)
2778
2781
// if (ThreadKind == -1)
@@ -2802,14 +2805,16 @@ OpenMPIRBuilder::createTargetInit(const LocationDescription &Loc, bool IsSPMD, b
2802
2805
}
2803
2806
2804
2807
void OpenMPIRBuilder::createTargetDeinit (const LocationDescription &Loc,
2805
- bool IsSPMD, bool RequiresFullRuntime) {
2808
+ bool IsSPMD,
2809
+ bool RequiresFullRuntime) {
2806
2810
if (!updateToLocation (Loc))
2807
2811
return ;
2808
2812
2809
2813
Constant *SrcLocStr = getOrCreateSrcLocStr (Loc);
2810
2814
Value *Ident = getOrCreateIdent (SrcLocStr);
2811
2815
ConstantInt *IsSPMDVal = ConstantInt::getBool (Int32->getContext (), IsSPMD);
2812
- ConstantInt *RequiresFullRuntimeVal = ConstantInt::getBool (Int32->getContext (), RequiresFullRuntime);
2816
+ ConstantInt *RequiresFullRuntimeVal =
2817
+ ConstantInt::getBool (Int32->getContext (), RequiresFullRuntime);
2813
2818
2814
2819
Function *Fn = getOrCreateRuntimeFunctionPtr (
2815
2820
omp::RuntimeFunction::OMPRTL___kmpc_target_deinit);
0 commit comments