/external/clang/lib/CodeGen/ |
CGDeclCXX.cpp | 25 static void EmitDeclInit(CodeGenFunction &CGF, const VarDecl &D, 31 ASTContext &Context = CGF.getContext(); 35 LValue lv = CGF.MakeAddrLValue(DeclPtr, type, alignment); 38 switch (CGF.getEvaluationKind(type)) { 40 CodeGenModule &CGM = CGF.CGM; 42 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), 45 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), 48 CGF.EmitScalarInit(Init, &D, lv, false) [all...] |
CodeGenFunction.h | 205 virtual void EmitBody(CodeGenFunction &CGF, Stmt *S) { 206 RegionCounter Cnt = CGF.getPGORegionCounter(S); 207 Cnt.beginRegion(CGF.Builder); 208 CGF.EmitStmt(S); 315 void enter(CodeGenFunction &CGF, const Stmt *Finally, 318 void exit(CodeGenFunction &CGF); 470 CodeGenFunction& CGF; 474 explicit RunCleanupsScope(CodeGenFunction &CGF) 475 : PerformCleanup(true), CGF(CGF) [all...] |
CGBlocks.cpp | 267 CodeGenFunction *CGF, 288 return CGM.EmitConstantInit(*var, CGF); 331 static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, 358 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) && 360 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(C); 395 if (llvm::Constant *constant = tryCaptureAsConstant(CGM, CGF, variable)) { 556 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) { 557 assert(CGF.HaveInsertPoint()) [all...] |
CGOpenMPRuntime.h | 143 /// \param CGF Reference to finished CodeGenFunction. 145 void FunctionFinished(CodeGenFunction &CGF); 148 /// \param CGF Reference to current CodeGenFunction. 153 EmitOpenMPUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc, 157 /// \param CGF Reference to current CodeGenFunction. 160 llvm::Value *GetOpenMPGlobalThreadNum(CodeGenFunction &CGF,
|
CGStmtOpenMP.cpp | 32 CodeGenFunction CGF(CGM, true); 34 CGF.CapturedStmtInfo = &CGInfo; 35 OutlinedFn = CGF.GenerateCapturedStmtFunction(*CS);
|
CGCall.cpp | 663 uint64_t DstSize, CodeGenFunction &CGF) { 672 CGF.CGM.getDataLayout().getTypeAllocSize(FirstElt); 674 FirstEltSize < CGF.CGM.getDataLayout().getTypeAllocSize(SrcSTy)) 678 SrcPtr = CGF.Builder.CreateConstGEP2_32(SrcPtr, 0, 0, "coerce.dive"); 684 return EnterStructPointerForCoercedAccess(SrcPtr, SrcSTy, DstSize, CGF); 698 CodeGenFunction &CGF) { 705 return CGF.Builder.CreateBitCast(Val, Ty, "coerce.val"); 708 Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi"); 713 DestIntTy = CGF.IntPtrTy [all...] |
CGDecl.cpp | 149 static std::string GetStaticDeclName(CodeGenFunction &CGF, const VarDecl &D, 151 CodeGenModule &CGM = CGF.CGM; 153 if (CGF.getLangOpts().CPlusPlus) 157 if (!CGF.CurFuncDecl) { 165 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CGF.CurFuncDecl)) 167 else if (isa<ObjCMethodDecl>(CGF.CurFuncDecl)) 168 ContextName = CGF.CurFn->getName(); 372 void Emit(CodeGenFunction &CGF, Flags flags) override { 377 CGF.emitDestroy(addr, type, destroyer, useEHCleanupForArray); 391 void Emit(CodeGenFunction &CGF, Flags flags) override [all...] |
CGOpenCLRuntime.cpp | 27 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF, 29 return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage);
|
CGObjCGNU.cpp | 439 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, 449 virtual llvm::Value *GetClassNamed(CodeGenFunction &CGF, 454 virtual llvm::Value *LookupIMP(CodeGenFunction &CGF, 462 virtual llvm::Value *LookupIMPSuper(CodeGenFunction &CGF, 485 GenerateMessageSend(CodeGenFunction &CGF, ReturnValueSlot Return, 491 GenerateMessageSendSuper(CodeGenFunction &CGF, ReturnValueSlot Return, 497 llvm::Value *GetClass(CodeGenFunction &CGF, 499 llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, 501 llvm::Value *GetSelector(CodeGenFunction &CGF, 510 llvm::Value *GenerateProtocolRef(CodeGenFunction &CGF, [all...] |
ABIInfo.h | 75 CodeGen::CodeGenFunction &CGF) const = 0;
|
CGExprConstant.cpp | 38 CodeGenFunction *CGF; 45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 51 ConstStructBuilder(CodeGenModule &CGM, CodeGenFunction *CGF) 52 : CGM(CGM), CGF(CGF), Packed(false), 371 Field->getType(), CGF); 460 CGM.EmitConstantValueForMemory(FieldValue, Field->getType(), CGF); 528 CodeGenFunction *CGF, 530 ConstStructBuilder Builder(CGM, CGF); [all...] |
CGCXX.cpp | 306 static llvm::Value *BuildAppleKextVirtualCall(CodeGenFunction &CGF, 310 assert(!CGF.CGM.getTarget().getCXXABI().isMicrosoft() && 313 CodeGenModule &CGM = CGF.CGM; 316 VTable = CGF.Builder.CreateBitCast(VTable, Ty); 324 CGF.Builder.CreateConstInBoundsGEP1_64(VTable, VTableIndex, "vfnkxt"); 325 return CGF.Builder.CreateLoad(VFuncPtr);
|
CGCall.h | 121 void allocateArgumentMemory(CodeGenFunction &CGF); 123 void freeArgumentMemory(CodeGenFunction &CGF) const;
|
CGExpr.cpp | 177 pushTemporaryCleanup(CodeGenFunction &CGF, const MaterializeTemporaryExpr *M, 184 if (CGF.getLangOpts().ObjCAutoRefCount && 219 CleanupKind = CGF.getARCCleanupKind(); 229 CGF.pushDestroy(CleanupKind, ReferenceTemporary, 233 CGF.pushLifetimeExtendedDestroy(CleanupKind, ReferenceTemporary, 264 CleanupFn = CodeGenFunction(CGF.CGM).generateDestroyHelper( 266 CodeGenFunction::destroyCXXObject, CGF.getLangOpts().Exceptions, 268 CleanupArg = llvm::Constant::getNullValue(CGF.Int8PtrTy); 271 CGF.CGM.GetAddrOfCXXDestructor(ReferenceTemporaryDtor, Dtor_Complete); 274 CGF.CGM.getCXXABI().registerGlobalDtor [all...] |
CGVTables.cpp | 69 static RValue PerformReturnAdjustment(CodeGenFunction &CGF, 82 AdjustNull = CGF.createBasicBlock("adjust.null"); 83 AdjustNotNull = CGF.createBasicBlock("adjust.notnull"); 84 AdjustEnd = CGF.createBasicBlock("adjust.end"); 86 llvm::Value *IsNull = CGF.Builder.CreateIsNull(ReturnValue); 87 CGF.Builder.CreateCondBr(IsNull, AdjustNull, AdjustNotNull); 88 CGF.EmitBlock(AdjustNotNull); 91 ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment(CGF, ReturnValue, 95 CGF.Builder.CreateBr(AdjustEnd) [all...] |
CodeGenFunction.cpp | 187 static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) { 190 return CGF.CurFn->getBasicBlockList().push_back(BB); 746 static void EmitSizedDeallocationFunction(CodeGenFunction &CGF, 749 CGF.CurFn->setLinkage(llvm::Function::LinkOnceAnyLinkage); 753 llvm::Constant *Unsized = CGF.CGM.GetAddrOfFunction(UnsizedDealloc); 754 CGF.Builder.CreateCall(Unsized, &*CGF.CurFn->arg_begin()); [all...] |
CGStmt.cpp | 398 = CGF.EHStack.getInnermostNormalCleanup(); 403 assert(CGF.LabelMap.count(*i)); 404 JumpDest &dest = CGF.LabelMap.find(*i)->second; [all...] |
CGBuiltin.cpp | 56 static Value *EmitToInt(CodeGenFunction &CGF, llvm::Value *V, 58 V = CGF.EmitToMemory(V, T); 61 return CGF.Builder.CreatePtrToInt(V, IntType); 67 static Value *EmitFromInt(CodeGenFunction &CGF, llvm::Value *V, 69 V = CGF.EmitFromMemory(V, T); 72 return CGF.Builder.CreateIntToPtr(V, ResultType); 80 static RValue EmitBinaryAtomic(CodeGenFunction &CGF, 85 assert(CGF.getContext().hasSameUnqualifiedType(T, 87 assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); 89 llvm::Value *DestPtr = CGF.EmitScalarExpr(E->getArg(0)) [all...] |
CodeGenModule.h | 730 virtual void emitCopy(CodeGenFunction &CGF, 734 virtual void emitDispose(CodeGenFunction &CGF, llvm::Value *field) = 0; 864 CodeGenFunction *CGF = nullptr); 869 CodeGenFunction *CGF = nullptr); 874 CodeGenFunction *CGF = nullptr); 880 CodeGenFunction *CGF = nullptr); [all...] |
CGDebugInfo.h | 426 SaveAndRestoreLocation(CodeGenFunction &CGF, CGBuilderTy &B); 436 NoLocation(CodeGenFunction &CGF, CGBuilderTy &B); 454 ArtificialLocation(CodeGenFunction &CGF, CGBuilderTy &B);
|
CGDebugInfo.cpp | 55 SaveAndRestoreLocation::SaveAndRestoreLocation(CodeGenFunction &CGF, 57 : DI(CGF.getDebugInfo()), Builder(B) { 69 NoLocation::NoLocation(CodeGenFunction &CGF, CGBuilderTy &B) 70 : SaveAndRestoreLocation(CGF, B) { 80 ArtificialLocation::ArtificialLocation(CodeGenFunction &CGF, CGBuilderTy &B) 81 : SaveAndRestoreLocation(CGF, B) { [all...] |