return TaskEntry;
}
-llvm::Value *emitDestructorsFunction(CodeGenModule &CGM, SourceLocation Loc,
- QualType KmpInt32Ty,
- QualType KmpTaskTPtrQTy,
- QualType KmpTaskQTy,
- RecordDecl *KmpTaskQTyRD) {
+static llvm::Value *
+emitDestructorsFunction(CodeGenModule &CGM, SourceLocation Loc,
+ QualType KmpInt32Ty, QualType KmpTaskTPtrQTy,
+ QualType KmpTaskQTy, RecordDecl *KmpTaskQTyRD) {
auto &C = CGM.getContext();
FunctionArgList Args;
ImplicitParamDecl GtidArg(C, /*DC=*/nullptr, Loc, /*Id=*/nullptr, KmpInt32Ty);
CGF.CGM.getOpenMPRuntime().emitFlush(CGF, llvm::None, Loc);
}
-std::pair<bool, RValue> emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X,
- RValue Update, BinaryOperatorKind BO,
- llvm::AtomicOrdering AO,
- bool IsXLHSInRHSPart) {
+static std::pair<bool, RValue> emitOMPAtomicRMW(CodeGenFunction &CGF, LValue X,
+ RValue Update,
+ BinaryOperatorKind BO,
+ llvm::AtomicOrdering AO,
+ bool IsXLHSInRHSPart) {
auto &Context = CGF.CGM.getContext();
// Allow atomicrmw only if 'x' and 'update' are integer values, lvalue for 'x'
// expression is simple and atomic is allowed for the given type for the