Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:CGF

71     CodeGenFunction &CGF, SourceLocation Loc, OpenMPLocationFlags Flags) {
77 assert(CGF.CurFn && "No function in current CodeGenFunction.");
80 OpenMPLocMapTy::iterator I = OpenMPLocMap.find(CGF.CurFn);
85 llvm::AllocaInst *AI = CGF.CreateTempAlloca(IdentTy, ".kmpc_loc.addr");
87 OpenMPLocMap[CGF.CurFn] = AI;
90 CGBuilderTy::InsertPointGuard IPG(CGF.Builder);
91 CGF.Builder.SetInsertPoint(CGF.AllocaInsertPt);
92 CGF.Builder.CreateMemCpy(LocValue, GetOrCreateDefaultOpenMPLocation(Flags),
99 CGF.Builder.CreateConstInBoundsGEP2_32(LocValue, 0, IdentField_PSource);
106 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc);
109 dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl)) {
113 OMPDebugLoc = CGF.Builder.CreateGlobalStringPtr(OS2.str());
117 CGF.Builder.CreateStore(OMPDebugLoc, PSource);
122 llvm::Value *CGOpenMPRuntime::GetOpenMPGlobalThreadNum(CodeGenFunction &CGF,
124 assert(CGF.CurFn && "No function in current CodeGenFunction.");
127 OpenMPGtidMapTy::iterator I = OpenMPGtidMap.find(CGF.CurFn);
132 CGBuilderTy::InsertPointGuard IPG(CGF.Builder);
133 CGF.Builder.SetInsertPoint(CGF.AllocaInsertPt);
134 llvm::Value *Args[] = {EmitOpenMPUpdateLocation(CGF, Loc)};
135 GTid = CGF.EmitRuntimeCall(
137 OpenMPGtidMap[CGF.CurFn] = GTid;
142 void CGOpenMPRuntime::FunctionFinished(CodeGenFunction &CGF) {
143 assert(CGF.CurFn && "No function in current CodeGenFunction.");
144 if (OpenMPGtidMap.count(CGF.CurFn))
145 OpenMPGtidMap.erase(CGF.CurFn);
146 if (OpenMPLocMap.count(CGF.CurFn))
147 OpenMPLocMap.erase(CGF.CurFn);