@@ -2734,8 +2734,8 @@ GetAlignedMapping(const OMPLoopDirective &S, CodeGenFunction &CGF) {
2734
2734
2735
2735
// Pass OMPLoopDirective (instead of OMPSimdDirective) to make this function
2736
2736
// available for "loop bind(thread)", which maps to "simd".
2737
- void emitOMPSimdDirective (const OMPLoopDirective &S, CodeGenFunction &CGF ,
2738
- CodeGenModule &CGM) {
2737
+ static void emitOMPSimdDirective (const OMPLoopDirective &S,
2738
+ CodeGenFunction &CGF, CodeGenModule &CGM) {
2739
2739
bool UseOMPIRBuilder =
2740
2740
CGM.getLangOpts ().OpenMPIRBuilder && isSimdSupportedByOpenMPIRBuilder (S);
2741
2741
if (UseOMPIRBuilder) {
@@ -3987,8 +3987,8 @@ convertClauseKindToSchedKind(OpenMPScheduleClauseKind ScheduleClauseKind) {
3987
3987
3988
3988
// Pass OMPLoopDirective (instead of OMPForDirective) to make this function
3989
3989
// available for "loop bind(parallel)", which maps to "for".
3990
- void emitOMPForDirective (const OMPLoopDirective &S, CodeGenFunction &CGF,
3991
- CodeGenModule &CGM, bool HasCancel) {
3990
+ static void emitOMPForDirective (const OMPLoopDirective &S, CodeGenFunction &CGF,
3991
+ CodeGenModule &CGM, bool HasCancel) {
3992
3992
bool HasLastprivates = false ;
3993
3993
bool UseOMPIRBuilder = CGM.getLangOpts ().OpenMPIRBuilder &&
3994
3994
isForSupportedByOpenMPIRBuilder (S, HasCancel);
@@ -5447,7 +5447,7 @@ void CodeGenFunction::EmitOMPTaskwaitDirective(const OMPTaskwaitDirective &S) {
5447
5447
CGM.getOpenMPRuntime ().emitTaskwaitCall (*this , S.getBeginLoc (), Data);
5448
5448
}
5449
5449
5450
- bool isSupportedByOpenMPIRBuilder (const OMPTaskgroupDirective &T) {
5450
+ static bool isSupportedByOpenMPIRBuilder (const OMPTaskgroupDirective &T) {
5451
5451
return T.clauses ().empty ();
5452
5452
}
5453
5453
@@ -5968,8 +5968,9 @@ void CodeGenFunction::EmitOMPDistributeLoop(const OMPLoopDirective &S,
5968
5968
5969
5969
// Pass OMPLoopDirective (instead of OMPDistributeDirective) to make this
5970
5970
// function available for "loop bind(teams)", which maps to "distribute".
5971
- void emitOMPDistributeDirective (const OMPLoopDirective &S, CodeGenFunction &CGF,
5972
- CodeGenModule &CGM) {
5971
+ static void emitOMPDistributeDirective (const OMPLoopDirective &S,
5972
+ CodeGenFunction &CGF,
5973
+ CodeGenModule &CGM) {
5973
5974
auto &&CodeGen = [&S](CodeGenFunction &CGF, PrePostActionTy &) {
5974
5975
CGF.EmitOMPDistributeLoop (S, emitOMPLoopBodyWithStopPoint, S.getInc ());
5975
5976
};
0 commit comments