Lines Matching refs:CodeGenFunction
75 CodeGenFunction::CreateTempAllocaWithoutCast(llvm::Type *Ty, CharUnits Align, in CreateTempAllocaWithoutCast()
85 RawAddress CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, CharUnits Align, in CreateTempAlloca()
116 llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, in CreateTempAlloca()
135 RawAddress CodeGenFunction::CreateDefaultAlignTempAlloca(llvm::Type *Ty, in CreateDefaultAlignTempAlloca()
142 RawAddress CodeGenFunction::CreateIRTemp(QualType Ty, const Twine &Name) { in CreateIRTemp()
147 RawAddress CodeGenFunction::CreateMemTemp(QualType Ty, const Twine &Name, in CreateMemTemp()
153 RawAddress CodeGenFunction::CreateMemTemp(QualType Ty, CharUnits Align, in CreateMemTemp()
170 RawAddress CodeGenFunction::CreateMemTempWithoutCast(QualType Ty, in CreateMemTempWithoutCast()
176 RawAddress CodeGenFunction::CreateMemTempWithoutCast(QualType Ty, in CreateMemTempWithoutCast()
184 llvm::Value *CodeGenFunction::EvaluateExprAsBool(const Expr *E) { in EvaluateExprAsBool()
203 void CodeGenFunction::EmitIgnoredExpr(const Expr *E) { in EmitIgnoredExpr()
225 RValue CodeGenFunction::EmitAnyExpr(const Expr *E, in EmitAnyExpr()
244 RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E) { in EmitAnyExprToTemp()
254 void CodeGenFunction::EmitAnyExprToMem(const Expr *E, in EmitAnyExprToMem()
285 pushTemporaryCleanup(CodeGenFunction &CGF, const MaterializeTemporaryExpr *M, in pushTemporaryCleanup()
317 CodeGenFunction::Destroyer *Destroy; in pushTemporaryCleanup()
324 Destroy = Precise ? &CodeGenFunction::destroyARCStrongPrecise in pushTemporaryCleanup()
325 : &CodeGenFunction::destroyARCStrongImprecise; in pushTemporaryCleanup()
330 Destroy = &CodeGenFunction::destroyARCWeak; in pushTemporaryCleanup()
368 CleanupFn = CodeGenFunction(CGF.CGM).generateDestroyHelper( in pushTemporaryCleanup()
370 CodeGenFunction::destroyCXXObject, CGF.getLangOpts().Exceptions, in pushTemporaryCleanup()
385 CodeGenFunction::destroyCXXObject, in pushTemporaryCleanup()
392 CodeGenFunction::destroyCXXObject, in pushTemporaryCleanup()
401 static RawAddress createReferenceTemporary(CodeGenFunction &CGF, in createReferenceTemporary()
452 LValue CodeGenFunction::
626 CodeGenFunction::EmitReferenceBindingToExpr(const Expr *E) { in EmitReferenceBindingToExpr()
648 unsigned CodeGenFunction::getAccessedFieldNo(unsigned Idx, in getAccessedFieldNo()
663 bool CodeGenFunction::isNullPointerAllowed(TypeCheckKind TCK) { in isNullPointerAllowed()
668 bool CodeGenFunction::isVptrCheckRequired(TypeCheckKind TCK, QualType Ty) { in isVptrCheckRequired()
676 bool CodeGenFunction::sanitizePerformTypeCheck() const { in sanitizePerformTypeCheck()
683 void CodeGenFunction::EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, in EmitTypeCheck()
883 llvm::Value *CodeGenFunction::LoadPassedObjectSize(const Expr *E, in LoadPassedObjectSize()
924 static llvm::Value *getArrayIndexingBound(CodeGenFunction &CGF, in getArrayIndexingBound()
941 CodeGenFunction::SanitizerScope SanScope(&CGF); in getArrayIndexingBound()
954 CodeGenFunction::SanitizerScope SanScope(&CGF); in getArrayIndexingBound()
1075 static bool getGEPIndicesToField(CodeGenFunction &CGF, const RecordDecl *RD, in getGEPIndicesToField()
1114 llvm::Value *CodeGenFunction::EmitCountedByFieldExpr( in EmitCountedByFieldExpr()
1151 const FieldDecl *CodeGenFunction::FindCountedByField(const FieldDecl *FD) { in FindCountedByField()
1167 void CodeGenFunction::EmitBoundsCheck(const Expr *E, const Expr *Base, in EmitBoundsCheck()
1181 void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, in EmitBoundsCheckImpl()
1205 CodeGenFunction::ComplexPairTy CodeGenFunction::
1242 CodeGenFunction *CGF) { in EmitExplicitCastExprType()
1258 CodeGenFunction &CGF) { in EmitPointerWithAlignment()
1307 CodeGenFunction::CFITCK_UnrelatedCast, in EmitPointerWithAlignment()
1387 Address CodeGenFunction::EmitPointerWithAlignment( in EmitPointerWithAlignment()
1397 llvm::Value *CodeGenFunction::EmitNonNullRValueCheck(RValue RV, QualType T) { in EmitNonNullRValueCheck()
1404 RValue CodeGenFunction::GetUndefRValue(QualType Ty) { in GetUndefRValue()
1430 RValue CodeGenFunction::EmitUnsupportedRValue(const Expr *E, in EmitUnsupportedRValue()
1436 LValue CodeGenFunction::EmitUnsupportedLValue(const Expr *E, in EmitUnsupportedLValue()
1445 bool CodeGenFunction::IsWrappedCXXThis(const Expr *Obj) { in IsWrappedCXXThis()
1468 LValue CodeGenFunction::EmitCheckedLValue(const Expr *E, TypeCheckKind TCK) { in EmitCheckedLValue()
1503 LValue CodeGenFunction::EmitLValue(const Expr *E, in EmitLValue()
1519 LValue CodeGenFunction::EmitLValueHelper(const Expr *E, in EmitLValueHelper()
1726 CodeGenFunction::ConstantEmission
1727 CodeGenFunction::tryEmitAsConstant(DeclRefExpr *refExpr) { in tryEmitAsConstant()
1812 static DeclRefExpr *tryToConvertMemberExprToDeclRefExpr(CodeGenFunction &CGF, in tryToConvertMemberExprToDeclRefExpr()
1824 CodeGenFunction::ConstantEmission
1825 CodeGenFunction::tryEmitAsConstant(const MemberExpr *ME) { in tryEmitAsConstant()
1831 llvm::Value *CodeGenFunction::emitScalarConstant( in emitScalarConstant()
1832 const CodeGenFunction::ConstantEmission &Constant, Expr *E) { in emitScalarConstant()
1841 llvm::Value *CodeGenFunction::EmitLoadOfScalar(LValue lvalue, in EmitLoadOfScalar()
1861 static bool getRangeForType(CodeGenFunction &CGF, QualType Ty, in getRangeForType()
1880 llvm::MDNode *CodeGenFunction::getRangeForLoadFromType(QualType Ty) { in getRangeForLoadFromType()
1890 bool CodeGenFunction::EmitScalarRangeCheck(llvm::Value *Value, QualType Ty, in EmitScalarRangeCheck()
1937 llvm::Value *CodeGenFunction::EmitLoadOfScalar(Address Addr, bool Volatile, in EmitLoadOfScalar()
2021 llvm::Value *CodeGenFunction::EmitToMemory(llvm::Value *Value, QualType Ty) { in EmitToMemory()
2044 llvm::Value *CodeGenFunction::EmitFromMemory(llvm::Value *Value, QualType Ty) { in EmitFromMemory()
2068 CodeGenFunction &CGF, in MaybeConvertMatrixAddress()
2093 bool isInit, CodeGenFunction &CGF) { in EmitStoreOfMatrixScalar()
2101 void CodeGenFunction::EmitStoreOfScalar(llvm::Value *Value, Address Addr, in EmitStoreOfScalar()
2150 void CodeGenFunction::EmitStoreOfScalar(llvm::Value *value, LValue lvalue, in EmitStoreOfScalar()
2165 CodeGenFunction &CGF) { in EmitLoadOfMatrixLValue()
2172 RValue CodeGenFunction::EmitLoadOfAnyValue(LValue LV, AggValueSlot Slot, in EmitLoadOfAnyValue()
2190 RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, SourceLocation Loc) { in EmitLoadOfLValue()
2252 RValue CodeGenFunction::EmitLoadOfBitfieldLValue(LValue LV, in EmitLoadOfBitfieldLValue()
2289 RValue CodeGenFunction::EmitLoadOfExtVectorElementLValue(LValue LV) { in EmitLoadOfExtVectorElementLValue()
2324 Address CodeGenFunction::EmitExtVectorElementLValue(LValue LV) { in EmitExtVectorElementLValue()
2342 RValue CodeGenFunction::EmitLoadOfGlobalRegLValue(LValue LV) { in EmitLoadOfGlobalRegLValue()
2366 void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst, in EmitStoreThroughLValue()
2488 void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst, in EmitStoreThroughBitfieldLValue()
2566 void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src, in EmitStoreThroughExtVectorComponentLValue()
2641 void CodeGenFunction::EmitStoreThroughGlobalRegLValue(RValue Src, LValue Dst) { in EmitStoreThroughGlobalRegLValue()
2764 CodeGenFunction &CGF, const VarDecl *VD, QualType T, Address Addr, in EmitThreadPrivateVarDeclLValue()
2767 Addr = CodeGenFunction::OMPBuilderCBHelpers::getAddrOfThreadPrivate( in EmitThreadPrivateVarDeclLValue()
2777 static Address emitDeclTargetVarDeclLValue(CodeGenFunction &CGF, in emitDeclTargetVarDeclLValue()
2799 CodeGenFunction::EmitLoadOfReference(LValue RefLVal, in EmitLoadOfReference()
2810 LValue CodeGenFunction::EmitLoadOfReferenceLValue(LValue RefLVal) { in EmitLoadOfReferenceLValue()
2819 Address CodeGenFunction::EmitLoadOfPointer(Address Ptr, in EmitLoadOfPointer()
2829 LValue CodeGenFunction::EmitLoadOfPointerLValue(Address PtrAddr, in EmitLoadOfPointerLValue()
2837 static LValue EmitGlobalVarDeclLValue(CodeGenFunction &CGF, in EmitGlobalVarDeclLValue()
2888 static LValue EmitFunctionDeclLValue(CodeGenFunction &CGF, const Expr *E, in EmitFunctionDeclLValue()
2897 static LValue EmitCapturedFieldLValue(CodeGenFunction &CGF, const FieldDecl *FD, in EmitCapturedFieldLValue()
2934 static bool canEmitSpuriousReferenceToVariable(CodeGenFunction &CGF, in canEmitSpuriousReferenceToVariable()
2981 LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { in EmitDeclRefLValue()
3193 LValue CodeGenFunction::EmitUnaryOpLValue(const UnaryOperator *E) { in EmitUnaryOpLValue()
3260 LValue CodeGenFunction::EmitStringLiteralLValue(const StringLiteral *E) { in EmitStringLiteralLValue()
3265 LValue CodeGenFunction::EmitObjCEncodeExprLValue(const ObjCEncodeExpr *E) { in EmitObjCEncodeExprLValue()
3270 LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) { in EmitPredefinedLValue()
3307 llvm::Constant *CodeGenFunction::EmitCheckTypeDescriptor(QualType T) { in EmitCheckTypeDescriptor()
3349 llvm::Value *CodeGenFunction::EmitCheckValue(llvm::Value *V) { in EmitCheckValue()
3387 llvm::Constant *CodeGenFunction::EmitCheckSourceLocation(SourceLocation Loc) { in EmitCheckSourceLocation()
3474 static void emitCheckHandlerCall(CodeGenFunction &CGF, in emitCheckHandlerCall()
3522 void CodeGenFunction::EmitCheck( in EmitCheck()
3644 void CodeGenFunction::EmitCfiSlowPathCheck( in EmitCfiSlowPathCheck()
3691 void CodeGenFunction::EmitCfiCheckStub() { in EmitCfiCheckStub()
3730 void CodeGenFunction::EmitCfiCheckFail() { in EmitCfiCheckFail()
3818 void CodeGenFunction::EmitUnreachable(SourceLocation Loc) { in EmitUnreachable()
3829 void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, in EmitTrapCheck()
3874 llvm::CallInst *CodeGenFunction::EmitTrapCall(llvm::Intrinsic::ID IntrID) { in EmitTrapCall()
3887 Address CodeGenFunction::EmitArrayToPointerDecay(const Expr *E, in EmitArrayToPointerDecay()
3938 static llvm::Value *emitArraySubscriptGEP(CodeGenFunction &CGF, in emitArraySubscriptGEP()
3948 CodeGenFunction::NotSubtraction, loc, in emitArraySubscriptGEP()
3955 static Address emitArraySubscriptGEP(CodeGenFunction &CGF, Address addr, in emitArraySubscriptGEP()
3963 CodeGenFunction::NotSubtraction, loc, in emitArraySubscriptGEP()
4010 static Address wrapWithBPFPreserveStaticOffset(CodeGenFunction &CGF, in wrapWithBPFPreserveStaticOffset()
4023 static bool IsPreserveAIArrayBase(CodeGenFunction &CGF, const Expr *ArrayBase) { in IsPreserveAIArrayBase()
4057 static Address emitArraySubscriptGEP(CodeGenFunction &CGF, Address addr, in emitArraySubscriptGEP()
4108 static bool getFieldOffsetInBits(CodeGenFunction &CGF, const RecordDecl *RD, in getFieldOffsetInBits()
4139 static std::optional<int64_t> getOffsetDifferenceInBits(CodeGenFunction &CGF, in getOffsetDifferenceInBits()
4162 LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, in EmitArraySubscriptExpr()
4358 LValue CodeGenFunction::EmitMatrixSubscriptExpr(const MatrixSubscriptExpr *E) { in EmitMatrixSubscriptExpr()
4375 static Address emitOMPArraySectionBase(CodeGenFunction &CGF, const Expr *Base, in emitOMPArraySectionBase()
4414 LValue CodeGenFunction::EmitArraySectionExpr(const ArraySectionExpr *E, in EmitArraySectionExpr()
4577 LValue CodeGenFunction::
4635 LValue CodeGenFunction::EmitMemberExpr(const MemberExpr *E) { in EmitMemberExpr()
4686 LValue CodeGenFunction::EmitLValueForLambdaField(const FieldDecl *Field, in EmitLValueForLambdaField()
4725 LValue CodeGenFunction::EmitLValueForLambdaField(const FieldDecl *Field) { in EmitLValueForLambdaField()
4731 unsigned CodeGenFunction::getDebugInfoFIndex(const RecordDecl *Rec, in getDebugInfoFIndex()
4748 static Address emitAddrOfZeroSizeField(CodeGenFunction &CGF, Address Base, in emitAddrOfZeroSizeField()
4762 static Address emitAddrOfFieldStorage(CodeGenFunction &CGF, Address base, in emitAddrOfFieldStorage()
4775 static Address emitPreserveStructAccess(CodeGenFunction &CGF, LValue base, in emitPreserveStructAccess()
4807 LValue CodeGenFunction::EmitLValueForField(LValue base, in EmitLValueForField()
4977 CodeGenFunction::EmitLValueForFieldInitialization(LValue Base, in EmitLValueForFieldInitialization()
5000 LValue CodeGenFunction::EmitCompoundLiteralLValue(const CompoundLiteralExpr *E){ in EmitCompoundLiteralLValue()
5027 LValue CodeGenFunction::EmitInitListLValue(const InitListExpr *E) { in EmitInitListLValue()
5040 static std::optional<LValue> EmitLValueOrThrowExpression(CodeGenFunction &CGF, in EmitLValueOrThrowExpression()
5054 CodeGenFunction &CGF, const AbstractConditionalOperator *E) { in HandleConditionalOperatorLValueSimpleCase()
5089 ConditionalInfo EmitConditionalBlocks(CodeGenFunction &CGF, in EmitConditionalBlocks()
5097 CodeGenFunction::ConditionalEvaluation eval(CGF); in EmitConditionalBlocks()
5124 void CodeGenFunction::EmitIgnoredConditionalOperator( in EmitIgnoredConditionalOperator()
5137 EmitConditionalBlocks(*this, E, [](CodeGenFunction &CGF, const Expr *E) { in EmitIgnoredConditionalOperator()
5142 LValue CodeGenFunction::EmitConditionalOperatorLValue( in EmitConditionalOperatorLValue()
5157 *this, expr, [](CodeGenFunction &CGF, const Expr *E) { in EmitConditionalOperatorLValue()
5192 LValue CodeGenFunction::EmitCastLValue(const CastExpr *E) { in EmitCastLValue()
5382 LValue CodeGenFunction::EmitOpaqueValueLValue(const OpaqueValueExpr *e) { in EmitOpaqueValueLValue()
5388 CodeGenFunction::getOrCreateOpaqueLValueMapping(const OpaqueValueExpr *e) { in getOrCreateOpaqueLValueMapping()
5402 CodeGenFunction::getOrCreateOpaqueRValueMapping(const OpaqueValueExpr *e) { in getOrCreateOpaqueRValueMapping()
5415 RValue CodeGenFunction::EmitRValueForField(LValue LV, in EmitRValueForField()
5443 RValue CodeGenFunction::EmitCallExpr(const CallExpr *E, in EmitCallExpr()
5478 RValue CodeGenFunction::EmitSimpleCallExpr(const CallExpr *E, in EmitSimpleCallExpr()
5494 static CGCallee EmitDirectCallee(CodeGenFunction &CGF, GlobalDecl GD) { in EmitDirectCallee()
5546 CGCallee CodeGenFunction::EmitCallee(const Expr *E) { in EmitCallee()
5599 LValue CodeGenFunction::EmitBinaryOperatorLValue(const BinaryOperator *E) { in EmitBinaryOperatorLValue()
5685 LValue CodeGenFunction::EmitCallExprLValue(const CallExpr *E) { in EmitCallExprLValue()
5699 LValue CodeGenFunction::EmitVAArgExprLValue(const VAArgExpr *E) { in EmitVAArgExprLValue()
5704 LValue CodeGenFunction::EmitCXXConstructLValue(const CXXConstructExpr *E) { in EmitCXXConstructLValue()
5713 CodeGenFunction::EmitCXXTypeidLValue(const CXXTypeidExpr *E) { in EmitCXXTypeidLValue()
5717 Address CodeGenFunction::EmitCXXUuidofExpr(const CXXUuidofExpr *E) { in EmitCXXUuidofExpr()
5722 LValue CodeGenFunction::EmitCXXUuidofLValue(const CXXUuidofExpr *E) { in EmitCXXUuidofLValue()
5728 CodeGenFunction::EmitCXXBindTemporaryLValue(const CXXBindTemporaryExpr *E) { in EmitCXXBindTemporaryLValue()
5736 LValue CodeGenFunction::EmitObjCMessageExprLValue(const ObjCMessageExpr *E) { in EmitObjCMessageExprLValue()
5750 LValue CodeGenFunction::EmitObjCSelectorLValue(const ObjCSelectorExpr *E) { in EmitObjCSelectorLValue()
5756 llvm::Value *CodeGenFunction::EmitIvarOffset(const ObjCInterfaceDecl *Interface, in EmitIvarOffset()
5762 CodeGenFunction::EmitIvarOffsetAsPointerDiff(const ObjCInterfaceDecl *Interface, in EmitIvarOffsetAsPointerDiff()
5770 LValue CodeGenFunction::EmitLValueForIvar(QualType ObjectTy, in EmitLValueForIvar()
5778 LValue CodeGenFunction::EmitObjCIvarRefLValue(const ObjCIvarRefExpr *E) { in EmitObjCIvarRefLValue()
5802 LValue CodeGenFunction::EmitStmtExprLValue(const StmtExpr *E) { in EmitStmtExprLValue()
5809 RValue CodeGenFunction::EmitCall(QualType CalleeType, const CGCallee &OrigCallee, in EmitCall()
6050 LValue CodeGenFunction::
6073 RValue CodeGenFunction::convertTempToRValue(Address addr, in convertTempToRValue()
6088 void CodeGenFunction::SetFPAccuracy(llvm::Value *Val, float Accuracy) { in SetFPAccuracy()
6099 void CodeGenFunction::SetSqrtFPAccuracy(llvm::Value *Val) { in SetSqrtFPAccuracy()
6120 void CodeGenFunction::SetDivFPAccuracy(llvm::Value *Val) { in SetDivFPAccuracy()
6148 static LValueOrRValue emitPseudoObjectExpr(CodeGenFunction &CGF, in emitPseudoObjectExpr()
6152 SmallVector<CodeGenFunction::OpaqueValueMappingData, 4> opaques; in emitPseudoObjectExpr()
6174 typedef CodeGenFunction::OpaqueValueMappingData OVMA; in emitPseudoObjectExpr()
6177 CodeGenFunction::hasAggregateEvaluationKind(ov->getType())) { in emitPseudoObjectExpr()
6220 RValue CodeGenFunction::EmitPseudoObjectRValue(const PseudoObjectExpr *E, in EmitPseudoObjectRValue()
6225 LValue CodeGenFunction::EmitPseudoObjectLValue(const PseudoObjectExpr *E) { in EmitPseudoObjectLValue()