Home
last modified time | relevance | path

Searched refs:CodeGenFunction (Results 1 – 25 of 41) sorted by relevance

12

/external/clang/lib/CodeGen/
DCGCXXABI.h38 class CodeGenFunction; variable
51 ImplicitParamDecl *&getThisDecl(CodeGenFunction &CGF) { in getThisDecl()
54 llvm::Value *&getThisValue(CodeGenFunction &CGF) { in getThisValue()
58 ImplicitParamDecl *&getVTTDecl(CodeGenFunction &CGF) { in getVTTDecl()
61 llvm::Value *&getVTTValue(CodeGenFunction &CGF) { in getVTTValue()
66 void BuildThisParam(CodeGenFunction &CGF, FunctionArgList &Params);
70 void EmitThisParam(CodeGenFunction &CGF);
95 EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF,
101 virtual llvm::Value *EmitMemberDataPointerAddress(CodeGenFunction &CGF,
108 virtual llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF,
[all …]
DCGObjCRuntime.h37 class CodeGenFunction; variable
86 LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF,
99 void EmitTryCatchStmt(CodeGenFunction &CGF,
108 void EmitAtSynchronizedStmt(CodeGenFunction &CGF,
154 GenerateMessageSend(CodeGen::CodeGenFunction &CGF,
170 GenerateMessageSendSuper(CodeGen::CodeGenFunction &CGF,
231 virtual void EmitSynchronizedStmt(CodeGen::CodeGenFunction &CGF,
233 virtual void EmitTryStmt(CodeGen::CodeGenFunction &CGF,
235 virtual void EmitThrowStmt(CodeGen::CodeGenFunction &CGF,
237 virtual llvm::Value *EmitObjCWeakRead(CodeGen::CodeGenFunction &CGF,
[all …]
DCGCXXABI.cpp22 static void ErrorUnsupportedABI(CodeGenFunction &CGF, in ErrorUnsupportedABI()
42 llvm::Value *CGCXXABI::EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF, in EmitLoadOfMemberFunctionPointer()
57 llvm::Value *CGCXXABI::EmitMemberDataPointerAddress(CodeGenFunction &CGF, in EmitMemberDataPointerAddress()
66 llvm::Value *CGCXXABI::EmitMemberPointerConversion(CodeGenFunction &CGF, in EmitMemberPointerConversion()
79 CGCXXABI::EmitMemberPointerComparison(CodeGenFunction &CGF, in EmitMemberPointerComparison()
89 CGCXXABI::EmitMemberPointerIsNotNull(CodeGenFunction &CGF, in EmitMemberPointerIsNotNull()
121 void CGCXXABI::BuildThisParam(CodeGenFunction &CGF, FunctionArgList &params) { in BuildThisParam()
134 void CGCXXABI::EmitThisParam(CodeGenFunction &CGF) { in EmitThisParam()
142 void CGCXXABI::EmitReturnFromThunk(CodeGenFunction &CGF, in EmitReturnFromThunk()
158 llvm::Value *CGCXXABI::InitializeArrayCookie(CodeGenFunction &CGF, in InitializeArrayCookie()
[all …]
DCGDecl.cpp33 void CodeGenFunction::EmitDecl(const Decl &D) { in EmitDecl()
109 void CodeGenFunction::EmitVarDecl(const VarDecl &D) { in EmitVarDecl()
141 static std::string GetStaticDeclName(CodeGenFunction &CGF, const VarDecl &D, in GetStaticDeclName()
173 CodeGenFunction::CreateStaticVarDecl(const VarDecl &D, in CreateStaticVarDecl()
218 CodeGenFunction::AddInitializerToStaticVarDecl(const VarDecl &D, in AddInitializerToStaticVarDecl()
277 void CodeGenFunction::EmitStaticVarDecl(const VarDecl &D, in EmitStaticVarDecl()
345 CodeGenFunction::Destroyer *destroyer, in DestroyObject()
352 CodeGenFunction::Destroyer *destroyer;
355 void Emit(CodeGenFunction &CGF, Flags flags) { in Emit()
374 void Emit(CodeGenFunction &CGF, Flags flags) { in Emit()
[all …]
DMicrosoftCXXABI.cpp49 void BuildInstanceFunctionParams(CodeGenFunction &CGF, in BuildInstanceFunctionParams()
56 void EmitInstanceFunctionProlog(CodeGenFunction &CGF) { in EmitInstanceFunctionProlog()
61 void EmitGuardedInit(CodeGenFunction &CGF, const VarDecl &D,
94 llvm::Value *InitializeArrayCookie(CodeGenFunction &CGF,
99 llvm::Value *readArrayCookieImpl(CodeGenFunction &CGF,
127 llvm::Value *MicrosoftCXXABI::readArrayCookieImpl(CodeGenFunction &CGF, in readArrayCookieImpl()
136 llvm::Value* MicrosoftCXXABI::InitializeArrayCookie(CodeGenFunction &CGF, in InitializeArrayCookie()
161 void MicrosoftCXXABI::EmitGuardedInit(CodeGenFunction &CGF, const VarDecl &D, in EmitGuardedInit()
DCodeGenFunction.cpp31 CodeGenFunction::CodeGenFunction(CodeGenModule &cgm, bool suppressNewContext) in CodeGenFunction() function in CodeGenFunction
49 CodeGenFunction::~CodeGenFunction() { in ~CodeGenFunction()
58 llvm::Type *CodeGenFunction::ConvertTypeForMem(QualType T) { in ConvertTypeForMem()
62 llvm::Type *CodeGenFunction::ConvertType(QualType T) { in ConvertType()
66 bool CodeGenFunction::hasAggregateLLVMType(QualType type) { in hasAggregateLLVMType()
107 void CodeGenFunction::EmitReturnBlock() { in EmitReturnBlock()
149 static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) { in EmitIfUsed()
156 void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { in FinishFunction()
218 bool CodeGenFunction::ShouldInstrumentFunction() { in ShouldInstrumentFunction()
229 void CodeGenFunction::EmitFunctionInstrumentation(const char *Fn) { in EmitFunctionInstrumentation()
[all …]
DCGObjC.cpp31 tryEmitARCRetainScalarExpr(CodeGenFunction &CGF, const Expr *e);
32 static RValue AdjustRelatedResultType(CodeGenFunction &CGF,
46 llvm::Value *CodeGenFunction::EmitObjCStringLiteral(const ObjCStringLiteral *E) in EmitObjCStringLiteral()
59 CodeGenFunction::EmitObjCBoxedExpr(const ObjCBoxedExpr *E) { in EmitObjCBoxedExpr()
88 llvm::Value *CodeGenFunction::EmitObjCCollectionLiteral(const Expr *E, in EmitObjCCollectionLiteral()
179 llvm::Value *CodeGenFunction::EmitObjCArrayLiteral(const ObjCArrayLiteral *E) { in EmitObjCArrayLiteral()
183 llvm::Value *CodeGenFunction::EmitObjCDictionaryLiteral( in EmitObjCDictionaryLiteral()
189 llvm::Value *CodeGenFunction::EmitObjCSelectorExpr(const ObjCSelectorExpr *E) { in EmitObjCSelectorExpr()
197 llvm::Value *CodeGenFunction::EmitObjCProtocolExpr(const ObjCProtocolExpr *E) { in EmitObjCProtocolExpr()
204 static RValue AdjustRelatedResultType(CodeGenFunction &CGF, in AdjustRelatedResultType()
[all …]
DCGException.cpp25 static llvm::Constant *getAllocateExceptionFn(CodeGenFunction &CGF) { in getAllocateExceptionFn()
34 static llvm::Constant *getFreeExceptionFn(CodeGenFunction &CGF) { in getFreeExceptionFn()
43 static llvm::Constant *getThrowFn(CodeGenFunction &CGF) { in getThrowFn()
54 static llvm::Constant *getReThrowFn(CodeGenFunction &CGF) { in getReThrowFn()
63 static llvm::Constant *getGetExceptionPtrFn(CodeGenFunction &CGF) { in getGetExceptionPtrFn()
72 static llvm::Constant *getBeginCatchFn(CodeGenFunction &CGF) { in getBeginCatchFn()
81 static llvm::Constant *getEndCatchFn(CodeGenFunction &CGF) { in getEndCatchFn()
90 static llvm::Constant *getUnexpectedFn(CodeGenFunction &CGF) { in getUnexpectedFn()
99 llvm::Constant *CodeGenFunction::getUnwindResumeFn() { in getUnwindResumeFn()
108 llvm::Constant *CodeGenFunction::getUnwindResumeOrRethrowFn() { in getUnwindResumeOrRethrowFn()
[all …]
DCGDeclCXX.cpp23 static void EmitDeclInit(CodeGenFunction &CGF, const VarDecl &D, in EmitDeclInit()
57 static void EmitDeclDestroy(CodeGenFunction &CGF, const VarDecl &D, in EmitDeclDestroy()
95 function = CodeGenFunction(CGM).generateDestroyHelper(addr, type, in EmitDeclDestroy()
106 static void EmitDeclInvariant(CodeGenFunction &CGF, const VarDecl &D, in EmitDeclInvariant()
124 void CodeGenFunction::EmitCXXGlobalVarDeclInit(const VarDecl &D, in EmitCXXGlobalVarDeclInit()
164 CodeGenFunction CGF(CGM); in createAtExitStub()
183 void CodeGenFunction::registerGlobalDtorWithAtExit(llvm::Constant *dtor, in registerGlobalDtorWithAtExit()
200 void CodeGenFunction::EmitCXXGuardedInit(const VarDecl &D, in EmitCXXGuardedInit()
247 CodeGenFunction(*this).GenerateCXXGlobalVarDeclInitFunc(Fn, D, Addr, in EmitCXXGlobalVarDeclInitFunc()
292 CodeGenFunction(*this).GenerateCXXGlobalInitFunc(Fn, in EmitCXXGlobalInitFunc()
[all …]
DTargetInfo.h35 class CodeGenFunction; variable
88 virtual bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF, in initDwarfEHRegSizeTable()
98 virtual llvm::Value *decodeReturnAddress(CodeGen::CodeGenFunction &CGF, in decodeReturnAddress()
108 virtual llvm::Value *encodeReturnAddress(CodeGen::CodeGenFunction &CGF, in encodeReturnAddress()
113 virtual llvm::Type* adjustInlineAsmType(CodeGen::CodeGenFunction &CGF, in adjustInlineAsmType()
DCGStmt.cpp32 void CodeGenFunction::EmitStopPoint(const Stmt *S) { in EmitStopPoint()
43 void CodeGenFunction::EmitStmt(const Stmt *S) { in EmitStmt()
171 bool CodeGenFunction::EmitSimpleStmt(const Stmt *S) { in EmitSimpleStmt()
193 RValue CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
227 void CodeGenFunction::SimplifyForwardingBlocks(llvm::BasicBlock *BB) { in SimplifyForwardingBlocks()
245 void CodeGenFunction::EmitBlock(llvm::BasicBlock *BB, bool IsFinished) { in EmitBlock()
265 void CodeGenFunction::EmitBranch(llvm::BasicBlock *Target) { in EmitBranch()
282 void CodeGenFunction::EmitBlockAfterUses(llvm::BasicBlock *block) { in EmitBlockAfterUses()
299 CodeGenFunction::JumpDest
300 CodeGenFunction::getJumpDestForLabel(const LabelDecl *D) { in getJumpDestForLabel()
[all …]
DItaniumCXXABI.cpp60 llvm::Value *EmitLoadOfMemberFunctionPointer(CodeGenFunction &CGF,
65 llvm::Value *EmitMemberDataPointerAddress(CodeGenFunction &CGF,
70 llvm::Value *EmitMemberPointerConversion(CodeGenFunction &CGF,
85 llvm::Value *EmitMemberPointerComparison(CodeGenFunction &CGF,
91 llvm::Value *EmitMemberPointerIsNotNull(CodeGenFunction &CGF,
105 void BuildInstanceFunctionParams(CodeGenFunction &CGF,
109 void EmitInstanceFunctionProlog(CodeGenFunction &CGF);
114 llvm::Value *InitializeArrayCookie(CodeGenFunction &CGF,
119 llvm::Value *readArrayCookieImpl(CodeGenFunction &CGF,
123 void EmitGuardedInit(CodeGenFunction &CGF, const VarDecl &D,
[all …]
DCGClass.cpp78 CodeGenFunction::GetAddressOfDirectBaseInCompleteClass(llvm::Value *This, in GetAddressOfDirectBaseInCompleteClass()
108 ApplyNonVirtualAndVirtualOffset(CodeGenFunction &CGF, llvm::Value *ptr, in ApplyNonVirtualAndVirtualOffset()
133 CodeGenFunction::GetAddressOfBaseClass(llvm::Value *Value, in GetAddressOfBaseClass()
225 CodeGenFunction::GetAddressOfDerivedClass(llvm::Value *Value, in GetAddressOfDerivedClass()
284 static llvm::Value *GetVTTParameter(CodeGenFunction &CGF, GlobalDecl GD, in GetVTTParameter()
338 void Emit(CodeGenFunction &CGF, Flags flags) { in Emit()
375 static void EmitBaseInitializer(CodeGenFunction &CGF, in EmitBaseInitializer()
421 static void EmitAggMemberInitializer(CodeGenFunction &CGF, in EmitAggMemberInitializer()
431 CodeGenFunction::RunCleanupsScope Cleanups(CGF); in EmitAggMemberInitializer()
507 CodeGenFunction::RunCleanupsScope Cleanups(CGF); in EmitAggMemberInitializer()
[all …]
DCGExpr.cpp37 llvm::Value *CodeGenFunction::EmitCastToVoidPtr(llvm::Value *value) { in EmitCastToVoidPtr()
51 llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, in CreateTempAlloca()
58 void CodeGenFunction::InitTempAlloca(llvm::AllocaInst *Var, in InitTempAlloca()
65 llvm::AllocaInst *CodeGenFunction::CreateIRTemp(QualType Ty, in CreateIRTemp()
74 llvm::AllocaInst *CodeGenFunction::CreateMemTemp(QualType Ty, in CreateMemTemp()
85 llvm::Value *CodeGenFunction::EvaluateExprAsBool(const Expr *E) { in EvaluateExprAsBool()
100 void CodeGenFunction::EmitIgnoredExpr(const Expr *E) { in EmitIgnoredExpr()
112 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
128 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
139 void CodeGenFunction::EmitAnyExprToMem(const Expr *E, in EmitAnyExprToMem()
[all …]
DCGCUDARuntime.h25 class CodeGenFunction; variable
39 virtual RValue EmitCUDAKernelCallExpr(CodeGenFunction &CGF,
43 virtual void EmitDeviceStubBody(CodeGenFunction &CGF,
DCGBlocks.cpp50 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper()
56 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper()
218 CodeGenFunction *CGF, in tryCaptureAsConstant()
282 static void computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, in computeBlockInfo()
497 static void enterBlockScope(CodeGenFunction &CGF, BlockDecl *block) { in enterBlockScope()
539 CodeGenFunction::Destroyer *destroyer; in enterBlockScope()
544 destroyer = CodeGenFunction::destroyARCStrongImprecise; in enterBlockScope()
573 void CodeGenFunction::enterNonTrivialFullExpression(const ExprWithCleanups *E) { in enterNonTrivialFullExpression()
600 void CodeGenFunction::destroyBlockInfos(CGBlockInfo *head) { in destroyBlockInfos()
610 llvm::Value *CodeGenFunction::EmitBlockLiteral(const BlockExpr *blockExpr) { in EmitBlockLiteral()
[all …]
DCGCleanup.cpp35 DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { in save()
50 CodeGenFunction::ComplexPairTy V = rv.getComplexVal(); in save()
72 RValue DominatingValue<RValue>::saved_type::restore(CodeGenFunction &CGF) { in restore()
246 void CodeGenFunction::initFullExprCleanup() { in initFullExprCleanup()
272 static void ResolveAllBranchFixups(CodeGenFunction &CGF, in ResolveAllBranchFixups()
309 static llvm::SwitchInst *TransitionToCleanupSwitch(CodeGenFunction &CGF, in TransitionToCleanupSwitch()
329 void CodeGenFunction::ResolveBranchFixups(llvm::BasicBlock *Block) { in ResolveBranchFixups()
368 void CodeGenFunction::PopCleanupBlocks(EHScopeStack::stable_iterator Old) { in PopCleanupBlocks()
384 static llvm::BasicBlock *CreateNormalEntry(CodeGenFunction &CGF, in CreateNormalEntry()
400 static llvm::BasicBlock *SimplifyCleanupEntry(CodeGenFunction &CGF, in SimplifyCleanupEntry()
[all …]
DCGObjCRuntime.cpp81 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset()
155 void Emit(CodeGenFunction &CGF, Flags flags) { in Emit()
167 void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF, in EmitTryCatchStmt()
173 CodeGenFunction::JumpDest Cont; in EmitTryCatchStmt()
177 CodeGenFunction::FinallyInfo FinallyInfo; in EmitTryCatchStmt()
235 CodeGenFunction::LexicalScope cleanups(CGF, Handler.Body->getSourceRange()); in EmitTryCatchStmt()
300 void Emit(CodeGenFunction &CGF, Flags flags) { in Emit()
306 void CGObjCRuntime::EmitAtSynchronizedStmt(CodeGenFunction &CGF, in EmitAtSynchronizedStmt()
310 CodeGenFunction::RunCleanupsScope cleanups(CGF); in EmitAtSynchronizedStmt()
DCGExprCXX.cpp26 RValue CodeGenFunction::EmitCXXMemberCall(const CXXMethodDecl *MD, in EmitCXXMemberCall()
166 RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE, in EmitCXXMemberCallExpr()
320 CodeGenFunction::EmitCXXMemberPointerCallExpr(const CXXMemberCallExpr *E, in EmitCXXMemberPointerCallExpr()
369 CodeGenFunction::EmitCXXOperatorMemberCallExpr(const CXXOperatorCallExpr *E, in EmitCXXOperatorMemberCallExpr()
390 RValue CodeGenFunction::EmitCUDAKernelCallExpr(const CUDAKernelCallExpr *E, in EmitCUDAKernelCallExpr()
395 static void EmitNullBaseClassInitialization(CodeGenFunction &CGF, in EmitNullBaseClassInitialization()
439 CodeGenFunction::EmitCXXConstructExpr(const CXXConstructExpr *E, in EmitCXXConstructExpr()
510 CodeGenFunction::EmitSynthesizedCXXCopyCtor(llvm::Value *Dest, in EmitSynthesizedCXXCopyCtor()
534 static CharUnits CalculateCookiePadding(CodeGenFunction &CGF, in CalculateCookiePadding()
547 static llvm::Value *EmitCXXNewAllocSize(CodeGenFunction &CGF, in EmitCXXNewAllocSize()
[all …]
DCodeGenFunction.h110 static saved_type save(CodeGenFunction &CGF, type value) { return value; } in save()
111 static type restore(CodeGenFunction &CGF, saved_type value) { return value; } in restore()
226 virtual void Emit(CodeGenFunction &CGF, Flags flags) = 0;
236 void Emit(CodeGenFunction &CGF, Flags flags) {
253 void Emit(CodeGenFunction &CGF, Flags flags) {
273 void Emit(CodeGenFunction &CGF, Flags flags) {
296 void Emit(CodeGenFunction &CGF, Flags flags) {
534 class CodeGenFunction : public CodeGenTypeCache {
535 CodeGenFunction(const CodeGenFunction&); // DO NOT IMPLEMENT
536 void operator=(const CodeGenFunction&); // DO NOT IMPLEMENT
[all …]
DCGOpenCLRuntime.h25 class CodeGenFunction; variable
39 virtual void EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
DCGCXX.cpp206 CodeGenFunction(*this).GenerateCode(GlobalDecl(ctor, ctorType), fn, fnInfo); in EmitCXXConstructor()
270 CodeGenFunction(*this).GenerateCode(GlobalDecl(dtor, dtorType), fn, fnInfo); in EmitCXXDestructor()
293 static llvm::Value *BuildVirtualCall(CodeGenFunction &CGF, uint64_t VTableIndex, in BuildVirtualCall()
304 CodeGenFunction::BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *This, in BuildVirtualCall()
316 CodeGenFunction::BuildAppleKextVirtualCall(const CXXMethodDecl *MD, in BuildAppleKextVirtualCall()
350 CodeGenFunction::BuildAppleKextVirtualDestructorCall( in BuildAppleKextVirtualDestructorCall()
384 CodeGenFunction::BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type, in BuildVirtualCall()
DCGExprComplex.cpp28 typedef CodeGenFunction::ComplexPairTy ComplexPairTy;
33 CodeGenFunction &CGF;
39 ComplexExprEmitter(CodeGenFunction &cgf, bool ir=false, bool ii=false) in ComplexExprEmitter()
115 if (CodeGenFunction::ConstantEmission result = CGF.tryEmitAsConstant(E)) { in VisitDeclRefExpr()
192 CodeGenFunction::RunCleanupsScope Scope(CGF); in VisitExprWithCleanups()
349 CodeGenFunction::StmtExprEvaluation eval(CGF); in VisitStmtExpr()
703 CodeGenFunction::OpaqueValueMapping binding(CGF, E); in VisitAbstractConditionalOperator()
705 CodeGenFunction::ConditionalEvaluation eval(CGF); in VisitAbstractConditionalOperator()
785 ComplexPairTy CodeGenFunction::EmitComplexExpr(const Expr *E, bool IgnoreReal, in EmitComplexExpr()
796 void CodeGenFunction::EmitComplexExprIntoAddr(const Expr *E, in EmitComplexExprIntoAddr()
[all …]
DCGExprAgg.cpp34 CodeGenFunction &CGF;
64 AggExprEmitter(CodeGenFunction &cgf, AggValueSlot Dest) in AggExprEmitter()
123 if (CodeGenFunction::ConstantEmission result in VisitDeclRefExpr()
304 static void EmitStdInitializerListCleanup(CodeGenFunction &CGF, in EmitStdInitializerListCleanup()
316 CodeGenFunction::Destroyer *destroyer = CGF.getDestroyer(dtorKind); in EmitStdInitializerListCleanup()
555 CodeGenFunction::TCK_Load); in VisitCastExpr()
676 CodeGenFunction::StmtExprEvaluation eval(CGF); in VisitStmtExpr()
807 CodeGenFunction::OpaqueValueMapping binding(CGF, E); in VisitAbstractConditionalOperator()
809 CodeGenFunction::ConditionalEvaluation eval(CGF); in VisitAbstractConditionalOperator()
883 CodeGenFunction::RunCleanupsScope cleanups(CGF); in VisitExprWithCleanups()
[all …]
DCGCUDARuntime.cpp27 RValue CGCUDARuntime::EmitCUDAKernelCallExpr(CodeGenFunction &CGF, in EmitCUDAKernelCallExpr()
33 CodeGenFunction::ConditionalEvaluation eval(CGF); in EmitCUDAKernelCallExpr()

12