Lines Matching refs:CodeGenFunction
53 llvm::Value *CodeGenFunction::EmitCastToVoidPtr(llvm::Value *value) { in EmitCastToVoidPtr()
67 Address CodeGenFunction::CreateTempAllocaWithoutCast(llvm::Type *Ty, in CreateTempAllocaWithoutCast()
78 Address CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, CharUnits Align, in CreateTempAlloca()
109 llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, in CreateTempAlloca()
122 Address CodeGenFunction::CreateDefaultAlignTempAlloca(llvm::Type *Ty, in CreateDefaultAlignTempAlloca()
129 void CodeGenFunction::InitTempAlloca(Address Var, llvm::Value *Init) { in InitTempAlloca()
142 Address CodeGenFunction::CreateIRTemp(QualType Ty, const Twine &Name) { in CreateIRTemp()
147 Address CodeGenFunction::CreateMemTemp(QualType Ty, const Twine &Name, in CreateMemTemp()
153 Address CodeGenFunction::CreateMemTemp(QualType Ty, CharUnits Align, in CreateMemTemp()
170 Address CodeGenFunction::CreateMemTempWithoutCast(QualType Ty, CharUnits Align, in CreateMemTempWithoutCast()
175 Address CodeGenFunction::CreateMemTempWithoutCast(QualType Ty, in CreateMemTempWithoutCast()
183 llvm::Value *CodeGenFunction::EvaluateExprAsBool(const Expr *E) { in EvaluateExprAsBool()
202 void CodeGenFunction::EmitIgnoredExpr(const Expr *E) { in EmitIgnoredExpr()
214 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
233 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
243 void CodeGenFunction::EmitAnyExprToMem(const Expr *E, in EmitAnyExprToMem()
274 pushTemporaryCleanup(CodeGenFunction &CGF, const MaterializeTemporaryExpr *M, in pushTemporaryCleanup()
306 CodeGenFunction::Destroyer *Destroy; in pushTemporaryCleanup()
313 Destroy = Precise ? &CodeGenFunction::destroyARCStrongPrecise in pushTemporaryCleanup()
314 : &CodeGenFunction::destroyARCStrongImprecise; in pushTemporaryCleanup()
319 Destroy = &CodeGenFunction::destroyARCWeak; in pushTemporaryCleanup()
357 CleanupFn = CodeGenFunction(CGF.CGM).generateDestroyHelper( in pushTemporaryCleanup()
359 CodeGenFunction::destroyCXXObject, CGF.getLangOpts().Exceptions, in pushTemporaryCleanup()
374 CodeGenFunction::destroyCXXObject, in pushTemporaryCleanup()
381 CodeGenFunction::destroyCXXObject, in pushTemporaryCleanup()
390 static Address createReferenceTemporary(CodeGenFunction &CGF, in createReferenceTemporary()
441 LValue CodeGenFunction::
616 CodeGenFunction::EmitReferenceBindingToExpr(const Expr *E) { in EmitReferenceBindingToExpr()
638 unsigned CodeGenFunction::getAccessedFieldNo(unsigned Idx, in getAccessedFieldNo()
656 bool CodeGenFunction::isNullPointerAllowed(TypeCheckKind TCK) { in isNullPointerAllowed()
661 bool CodeGenFunction::isVptrCheckRequired(TypeCheckKind TCK, QualType Ty) { in isVptrCheckRequired()
669 bool CodeGenFunction::sanitizePerformTypeCheck() const { in sanitizePerformTypeCheck()
676 void CodeGenFunction::EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, in EmitTypeCheck()
919 llvm::Value *CodeGenFunction::LoadPassedObjectSize(const Expr *E, in LoadPassedObjectSize()
961 CodeGenFunction &CGF, const Expr *Base, QualType &IndexedType) { in getArrayIndexingBound()
992 void CodeGenFunction::EmitBoundsCheck(const Expr *E, const Expr *Base, in EmitBoundsCheck()
1020 CodeGenFunction::ComplexPairTy CodeGenFunction::
1057 CodeGenFunction *CGF) { in EmitExplicitCastExprType()
1072 Address CodeGenFunction::EmitPointerWithAlignment(const Expr *E, in EmitPointerWithAlignment()
1124 CodeGenFunction::CFITCK_UnrelatedCast, in EmitPointerWithAlignment()
1179 llvm::Value *CodeGenFunction::EmitNonNullRValueCheck(RValue RV, QualType T) { in EmitNonNullRValueCheck()
1186 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
1212 RValue CodeGenFunction::EmitUnsupportedRValue(const Expr *E, in EmitUnsupportedRValue()
1218 LValue CodeGenFunction::EmitUnsupportedLValue(const Expr *E, in EmitUnsupportedLValue()
1226 bool CodeGenFunction::IsWrappedCXXThis(const Expr *Obj) { in IsWrappedCXXThis()
1249 LValue CodeGenFunction::EmitCheckedLValue(const Expr *E, TypeCheckKind TCK) { in EmitCheckedLValue()
1285 LValue CodeGenFunction::EmitLValue(const Expr *E) { in EmitLValue()
1483 CodeGenFunction::ConstantEmission
1484 CodeGenFunction::tryEmitAsConstant(DeclRefExpr *refExpr) { in tryEmitAsConstant()
1569 static DeclRefExpr *tryToConvertMemberExprToDeclRefExpr(CodeGenFunction &CGF, in tryToConvertMemberExprToDeclRefExpr()
1581 CodeGenFunction::ConstantEmission
1582 CodeGenFunction::tryEmitAsConstant(const MemberExpr *ME) { in tryEmitAsConstant()
1588 llvm::Value *CodeGenFunction::emitScalarConstant( in emitScalarConstant()
1589 const CodeGenFunction::ConstantEmission &Constant, Expr *E) { in emitScalarConstant()
1598 llvm::Value *CodeGenFunction::EmitLoadOfScalar(LValue lvalue, in EmitLoadOfScalar()
1618 static bool getRangeForType(CodeGenFunction &CGF, QualType Ty, in getRangeForType()
1651 llvm::MDNode *CodeGenFunction::getRangeForLoadFromType(QualType Ty) { in getRangeForLoadFromType()
1661 bool CodeGenFunction::EmitScalarRangeCheck(llvm::Value *Value, QualType Ty, in EmitScalarRangeCheck()
1708 llvm::Value *CodeGenFunction::EmitLoadOfScalar(Address Addr, bool Volatile, in EmitLoadOfScalar()
1764 llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value *Value, QualType Ty) { in EmitToMemory()
1778 llvm::Value *CodeGenFunction::EmitFromMemory(llvm::Value *Value, QualType Ty) { in EmitFromMemory()
1791 static Address MaybeConvertMatrixAddress(Address Addr, CodeGenFunction &CGF, in MaybeConvertMatrixAddress()
1818 bool isInit, CodeGenFunction &CGF) { in EmitStoreOfMatrixScalar()
1826 void CodeGenFunction::EmitStoreOfScalar(llvm::Value *Value, Address Addr, in EmitStoreOfScalar()
1870 void CodeGenFunction::EmitStoreOfScalar(llvm::Value *value, LValue lvalue, in EmitStoreOfScalar()
1885 CodeGenFunction &CGF) { in EmitLoadOfMatrixLValue()
1895 RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, SourceLocation Loc) { in EmitLoadOfLValue()
1952 RValue CodeGenFunction::EmitLoadOfBitfieldLValue(LValue LV, in EmitLoadOfBitfieldLValue()
1989 RValue CodeGenFunction::EmitLoadOfExtVectorElementLValue(LValue LV) { in EmitLoadOfExtVectorElementLValue()
2016 Address CodeGenFunction::EmitExtVectorElementLValue(LValue LV) { in EmitExtVectorElementLValue()
2036 RValue CodeGenFunction::EmitLoadOfGlobalRegLValue(LValue LV) { in EmitLoadOfGlobalRegLValue()
2060 void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst, in EmitStoreThroughLValue()
2167 void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst, in EmitStoreThroughBitfieldLValue()
2245 void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src, in EmitStoreThroughExtVectorComponentLValue()
2309 void CodeGenFunction::EmitStoreThroughGlobalRegLValue(RValue Src, LValue Dst) { in EmitStoreThroughGlobalRegLValue()
2432 EmitBitCastOfLValueToProperType(CodeGenFunction &CGF, in EmitBitCastOfLValueToProperType()
2440 CodeGenFunction &CGF, const VarDecl *VD, QualType T, Address Addr, in EmitThreadPrivateVarDeclLValue()
2443 Addr = CodeGenFunction::OMPBuilderCBHelpers::getAddrOfThreadPrivate( in EmitThreadPrivateVarDeclLValue()
2453 static Address emitDeclTargetVarDeclLValue(CodeGenFunction &CGF, in emitDeclTargetVarDeclLValue()
2473 CodeGenFunction::EmitLoadOfReference(LValue RefLVal, in EmitLoadOfReference()
2486 LValue CodeGenFunction::EmitLoadOfReferenceLValue(LValue RefLVal) { in EmitLoadOfReferenceLValue()
2495 Address CodeGenFunction::EmitLoadOfPointer(Address Ptr, in EmitLoadOfPointer()
2505 LValue CodeGenFunction::EmitLoadOfPointerLValue(Address PtrAddr, in EmitLoadOfPointerLValue()
2513 static LValue EmitGlobalVarDeclLValue(CodeGenFunction &CGF, in EmitGlobalVarDeclLValue()
2574 static LValue EmitFunctionDeclLValue(CodeGenFunction &CGF, const Expr *E, in EmitFunctionDeclLValue()
2583 static LValue EmitCapturedFieldLValue(CodeGenFunction &CGF, const FieldDecl *FD, in EmitCapturedFieldLValue()
2621 static bool canEmitSpuriousReferenceToVariable(CodeGenFunction &CGF, in canEmitSpuriousReferenceToVariable()
2669 LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { in EmitDeclRefLValue()
2870 LValue CodeGenFunction::EmitUnaryOpLValue(const UnaryOperator *E) { in EmitUnaryOpLValue()
2937 LValue CodeGenFunction::EmitStringLiteralLValue(const StringLiteral *E) { in EmitStringLiteralLValue()
2942 LValue CodeGenFunction::EmitObjCEncodeExprLValue(const ObjCEncodeExpr *E) { in EmitObjCEncodeExprLValue()
2947 LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) { in EmitPredefinedLValue()
2984 llvm::Constant *CodeGenFunction::EmitCheckTypeDescriptor(QualType T) { in EmitCheckTypeDescriptor()
3027 llvm::Value *CodeGenFunction::EmitCheckValue(llvm::Value *V) { in EmitCheckValue()
3065 llvm::Constant *CodeGenFunction::EmitCheckSourceLocation(SourceLocation Loc) { in EmitCheckSourceLocation()
3151 static void emitCheckHandlerCall(CodeGenFunction &CGF, in emitCheckHandlerCall()
3199 void CodeGenFunction::EmitCheck( in EmitCheck()
3309 void CodeGenFunction::EmitCfiSlowPathCheck( in EmitCfiSlowPathCheck()
3357 void CodeGenFunction::EmitCfiCheckStub() { in EmitCfiCheckStub()
3381 void CodeGenFunction::EmitCfiCheckFail() { in EmitCfiCheckFail()
3468 void CodeGenFunction::EmitUnreachable(SourceLocation Loc) { in EmitUnreachable()
3479 void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, in EmitTrapCheck()
3518 llvm::CallInst *CodeGenFunction::EmitTrapCall(llvm::Intrinsic::ID IntrID) { in EmitTrapCall()
3531 Address CodeGenFunction::EmitArrayToPointerDecay(const Expr *E, in EmitArrayToPointerDecay()
3582 static llvm::Value *emitArraySubscriptGEP(CodeGenFunction &CGF, in emitArraySubscriptGEP()
3592 CodeGenFunction::NotSubtraction, loc, in emitArraySubscriptGEP()
3625 static bool IsPreserveAIArrayBase(CodeGenFunction &CGF, const Expr *ArrayBase) { in IsPreserveAIArrayBase()
3659 static Address emitArraySubscriptGEP(CodeGenFunction &CGF, Address addr, in emitArraySubscriptGEP()
3706 LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, in EmitArraySubscriptExpr()
3866 LValue CodeGenFunction::EmitMatrixSubscriptExpr(const MatrixSubscriptExpr *E) { in EmitMatrixSubscriptExpr()
3883 static Address emitOMPArraySectionBase(CodeGenFunction &CGF, const Expr *Base, in emitOMPArraySectionBase()
3922 LValue CodeGenFunction::EmitOMPArraySectionExpr(const OMPArraySectionExpr *E, in EmitOMPArraySectionExpr()
4079 LValue CodeGenFunction::
4137 LValue CodeGenFunction::EmitMemberExpr(const MemberExpr *E) { in EmitMemberExpr()
4187 LValue CodeGenFunction::EmitLValueForLambdaField(const FieldDecl *Field) { in EmitLValueForLambdaField()
4200 unsigned CodeGenFunction::getDebugInfoFIndex(const RecordDecl *Rec, in getDebugInfoFIndex()
4217 static Address emitAddrOfZeroSizeField(CodeGenFunction &CGF, Address Base, in emitAddrOfZeroSizeField()
4231 static Address emitAddrOfFieldStorage(CodeGenFunction &CGF, Address base, in emitAddrOfFieldStorage()
4244 static Address emitPreserveStructAccess(CodeGenFunction &CGF, LValue base, in emitPreserveStructAccess()
4276 LValue CodeGenFunction::EmitLValueForField(LValue base, in EmitLValueForField()
4446 CodeGenFunction::EmitLValueForFieldInitialization(LValue Base, in EmitLValueForFieldInitialization()
4469 LValue CodeGenFunction::EmitCompoundLiteralLValue(const CompoundLiteralExpr *E){ in EmitCompoundLiteralLValue()
4496 LValue CodeGenFunction::EmitInitListLValue(const InitListExpr *E) { in EmitInitListLValue()
4509 static Optional<LValue> EmitLValueOrThrowExpression(CodeGenFunction &CGF, in EmitLValueOrThrowExpression()
4519 LValue CodeGenFunction::
4615 LValue CodeGenFunction::EmitCastLValue(const CastExpr *E) { in EmitCastLValue()
4779 LValue CodeGenFunction::EmitOpaqueValueLValue(const OpaqueValueExpr *e) { in EmitOpaqueValueLValue()
4785 CodeGenFunction::getOrCreateOpaqueLValueMapping(const OpaqueValueExpr *e) { in getOrCreateOpaqueLValueMapping()
4799 CodeGenFunction::getOrCreateOpaqueRValueMapping(const OpaqueValueExpr *e) { in getOrCreateOpaqueRValueMapping()
4812 RValue CodeGenFunction::EmitRValueForField(LValue LV, in EmitRValueForField()
4840 RValue CodeGenFunction::EmitCallExpr(const CallExpr *E, in EmitCallExpr()
4872 RValue CodeGenFunction::EmitSimpleCallExpr(const CallExpr *E, in EmitSimpleCallExpr()
4878 static CGCallee EmitDirectCallee(CodeGenFunction &CGF, GlobalDecl GD) { in EmitDirectCallee()
4899 CGCallee CodeGenFunction::EmitCallee(const Expr *E) { in EmitCallee()
4951 LValue CodeGenFunction::EmitBinaryOperatorLValue(const BinaryOperator *E) { in EmitBinaryOperatorLValue()
5004 LValue CodeGenFunction::EmitCallExprLValue(const CallExpr *E) { in EmitCallExprLValue()
5018 LValue CodeGenFunction::EmitVAArgExprLValue(const VAArgExpr *E) { in EmitVAArgExprLValue()
5023 LValue CodeGenFunction::EmitCXXConstructLValue(const CXXConstructExpr *E) { in EmitCXXConstructLValue()
5032 CodeGenFunction::EmitCXXTypeidLValue(const CXXTypeidExpr *E) { in EmitCXXTypeidLValue()
5036 Address CodeGenFunction::EmitCXXUuidofExpr(const CXXUuidofExpr *E) { in EmitCXXUuidofExpr()
5041 LValue CodeGenFunction::EmitCXXUuidofLValue(const CXXUuidofExpr *E) { in EmitCXXUuidofLValue()
5047 CodeGenFunction::EmitCXXBindTemporaryLValue(const CXXBindTemporaryExpr *E) { in EmitCXXBindTemporaryLValue()
5055 LValue CodeGenFunction::EmitObjCMessageExprLValue(const ObjCMessageExpr *E) { in EmitObjCMessageExprLValue()
5069 LValue CodeGenFunction::EmitObjCSelectorLValue(const ObjCSelectorExpr *E) { in EmitObjCSelectorLValue()
5075 llvm::Value *CodeGenFunction::EmitIvarOffset(const ObjCInterfaceDecl *Interface, in EmitIvarOffset()
5080 LValue CodeGenFunction::EmitLValueForIvar(QualType ObjectTy, in EmitLValueForIvar()
5088 LValue CodeGenFunction::EmitObjCIvarRefLValue(const ObjCIvarRefExpr *E) { in EmitObjCIvarRefLValue()
5112 LValue CodeGenFunction::EmitStmtExprLValue(const StmtExpr *E) { in EmitStmtExprLValue()
5119 RValue CodeGenFunction::EmitCall(QualType CalleeType, const CGCallee &OrigCallee, in EmitCall()
5317 LValue CodeGenFunction::
5340 RValue CodeGenFunction::convertTempToRValue(Address addr, in convertTempToRValue()
5355 void CodeGenFunction::SetFPAccuracy(llvm::Value *Val, float Accuracy) { in SetFPAccuracy()
5373 static LValueOrRValue emitPseudoObjectExpr(CodeGenFunction &CGF, in emitPseudoObjectExpr()
5377 SmallVector<CodeGenFunction::OpaqueValueMappingData, 4> opaques; in emitPseudoObjectExpr()
5399 typedef CodeGenFunction::OpaqueValueMappingData OVMA; in emitPseudoObjectExpr()
5402 CodeGenFunction::hasAggregateEvaluationKind(ov->getType())) { in emitPseudoObjectExpr()
5445 RValue CodeGenFunction::EmitPseudoObjectRValue(const PseudoObjectExpr *E, in EmitPseudoObjectRValue()
5450 LValue CodeGenFunction::EmitPseudoObjectLValue(const PseudoObjectExpr *E) { in EmitPseudoObjectLValue()