Lines Matching defs:CodeGenFunction

1 //===--- CodeGenFunction.cpp - Emit LLVM Code from ASTs for a Function ----===//
13 #include "CodeGenFunction.h"
77 CodeGenFunction::CodeGenFunction(CodeGenModule &cgm, bool suppressNewContext)
92 CodeGenFunction::~CodeGenFunction() {
123 void CodeGenFunction::SetFastMathFlags(FPOptions FPFeatures) {
135 CodeGenFunction::CGFPOptionsRAII::CGFPOptionsRAII(CodeGenFunction &CGF,
141 CodeGenFunction::CGFPOptionsRAII::CGFPOptionsRAII(CodeGenFunction &CGF,
147 void CodeGenFunction::CGFPOptionsRAII::ConstructorHelper(FPOptions FPFeatures) {
192 CodeGenFunction::CGFPOptionsRAII::~CGFPOptionsRAII() {
200 bool MightBeSigned, CodeGenFunction &CGF,
215 CodeGenFunction::MakeNaturalAlignAddrLValue(llvm::Value *V, QualType T,
223 CodeGenFunction::MakeNaturalAlignPointeeAddrLValue(llvm::Value *V, QualType T) {
228 LValue CodeGenFunction::MakeNaturalAlignRawAddrLValue(llvm::Value *V,
234 LValue CodeGenFunction::MakeNaturalAlignPointeeRawAddrLValue(llvm::Value *V,
240 llvm::Type *CodeGenFunction::ConvertTypeForMem(QualType T) {
244 llvm::Type *CodeGenFunction::ConvertType(QualType T) {
248 llvm::Type *CodeGenFunction::convertTypeForLoadStore(QualType ASTTy,
253 TypeEvaluationKind CodeGenFunction::getEvaluationKind(QualType type) {
311 llvm::DebugLoc CodeGenFunction::EmitReturnBlock() {
357 static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) {
366 void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
579 bool CodeGenFunction::ShouldInstrumentFunction() {
589 bool CodeGenFunction::ShouldSkipSanitizerInstrumentation() {
597 bool CodeGenFunction::ShouldXRayInstrumentFunction() const {
603 bool CodeGenFunction::AlwaysEmitXRayCustomEvents() const {
610 bool CodeGenFunction::AlwaysEmitXRayTypedEvents() const {
618 CodeGenFunction::getUBSanFunctionTypeHash(QualType Ty) const {
630 void CodeGenFunction::EmitKernelMetadata(const FunctionDecl *FD,
700 void CodeGenFunction::markAsIgnoreThreadCheckingAtRuntime(llvm::Function *Fn) {
708 bool CodeGenFunction::requiresReturnValueCheck() const {
734 bool CodeGenFunction::isInAllocaArgument(CGCXXABI &ABI, QualType Ty) {
739 bool CodeGenFunction::hasInAllocaArg(const CXXMethodDecl *MD) {
756 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
763 "Do not use a CodeGenFunction object for more than one function");
1356 void CodeGenFunction::EmitFunctionBody(const Stmt *Body) {
1369 void CodeGenFunction::EmitBlockWithFallThrough(llvm::BasicBlock *BB,
1406 QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD,
1449 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1631 bool CodeGenFunction::ContainsLabel(const Stmt *S, bool IgnoreCaseStmts) {
1663 bool CodeGenFunction::containsBreak(const Stmt *S) {
1684 bool CodeGenFunction::mightAddDeclToScope(const Stmt *S) {
1710 bool CodeGenFunction::ConstantFoldsToSimpleInteger(const Expr *Cond,
1731 bool CodeGenFunction::ConstantFoldsToSimpleInteger(const Expr *Cond,
1741 if (!AllowLabels && CodeGenFunction::ContainsLabel(Cond))
1750 const Expr *CodeGenFunction::stripCond(const Expr *C) {
1761 bool CodeGenFunction::isInstrumentedCondition(const Expr *C) {
1770 void CodeGenFunction::EmitBranchToCounterBlock(
1846 void CodeGenFunction::EmitBranchOnBoolExpr(
2118 void CodeGenFunction::ErrorUnsupported(const Stmt *S, const char *Type) {
2129 static void emitNonZeroVLAInit(CodeGenFunction &CGF, QualType baseType,
2174 CodeGenFunction::EmitNullInitialization(Address DestPtr, QualType Ty) {
2244 llvm::BlockAddress *CodeGenFunction::GetAddrOfLabel(const LabelDecl *L) {
2256 llvm::BasicBlock *CodeGenFunction::GetIndirectGotoBlock() {
2273 llvm::Value *CodeGenFunction::emitArrayLength(const ArrayType *origArrayType,
2363 CodeGenFunction::VlaSizePair CodeGenFunction::getVLASize(QualType type) {
2369 CodeGenFunction::VlaSizePair
2370 CodeGenFunction::getVLASize(const VariableArrayType *type) {
2393 CodeGenFunction::VlaSizePair
2394 CodeGenFunction::getVLAElements1D(QualType type) {
2400 CodeGenFunction::VlaSizePair
2401 CodeGenFunction::getVLAElements1D(const VariableArrayType *Vla) {
2408 void CodeGenFunction::EmitVariablyModifiedType(QualType type) {
2568 Address CodeGenFunction::EmitVAListRef(const Expr* E) {
2574 Address CodeGenFunction::EmitMSVAListRef(const Expr *E) {
2578 void CodeGenFunction::EmitDeclRefExprDbgValue(const DeclRefExpr *E,
2586 CodeGenFunction::PeepholeProtection
2587 CodeGenFunction::protectFromPeepholes(RValue rvalue) {
2606 void CodeGenFunction::unprotectFromPeepholes(PeepholeProtection protection) {
2613 void CodeGenFunction::emitAlignmentAssumption(llvm::Value *PtrValue,
2653 void CodeGenFunction::emitAlignmentAssumption(llvm::Value *PtrValue,
2665 llvm::Value *CodeGenFunction::EmitAnnotationCall(llvm::Function *AnnotationFn,
2681 void CodeGenFunction::EmitVarAnnotations(const VarDecl *D, llvm::Value *V) {
2689 Address CodeGenFunction::EmitFieldAnnotations(const FieldDecl *D,
2714 CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() { }
2716 CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
2722 CodeGenFunction::SanitizerScope::~SanitizerScope() {
2726 void CodeGenFunction::InsertHelper(llvm::Instruction *I,
2744 void CodeGenFunction::checkTargetFeatures(const CallExpr *E,
2769 void CodeGenFunction::checkTargetFeatures(SourceLocation Loc,
2846 void CodeGenFunction::EmitSanitizerStatReport(llvm::SanitizerStatKind SSK) {
2855 void CodeGenFunction::EmitKCFIOperandBundle(
2864 CodeGenFunction::FormAArch64ResolverCondition(const FMVResolverOption &RO) {
2869 CodeGenFunction::FormX86ResolverCondition(const FMVResolverOption &RO) {
2912 void CodeGenFunction::EmitMultiVersionResolver(
2936 void CodeGenFunction::EmitRISCVMultiVersionResolver(
3037 void CodeGenFunction::EmitAArch64MultiVersionResolver(
3082 void CodeGenFunction::EmitX86MultiVersionResolver(
3128 void CodeGenFunction::emitAlignmentAssumptionCheck(
3177 llvm::DebugLoc CodeGenFunction::SourceLocToDebugLoc(SourceLocation Location) {
3185 CodeGenFunction::emitCondLikelihoodViaExpectIntrinsic(llvm::Value *Cond,
3208 llvm::Value *CodeGenFunction::emitBoolVecConversion(llvm::Value *SrcVec,
3224 void CodeGenFunction::EmitPointerAuthOperandBundle(
3240 static llvm::Value *EmitPointerAuthCommon(CodeGenFunction &CGF,
3268 CodeGenFunction::EmitPointerAuthSign(const CGPointerAuthInfo &PointerAuth,
3276 static llvm::Value *EmitStrip(CodeGenFunction &CGF,
3290 CodeGenFunction::EmitPointerAuthAuth(const CGPointerAuthInfo &PointerAuth,