|
clang
5.0.0
|
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code. More...
Classes | |
| class | AbstractCallee |
| An abstract representation of regular/ObjC call/message targets. More... | |
| class | ArrayInitLoopExprScope |
| The scope of an ArrayInitLoopExpr. More... | |
| class | AutoVarEmission |
| class | CallLifetimeEnd |
| class | CGCapturedStmtInfo |
| API for captured statement code generation. More... | |
| class | CGCapturedStmtRAII |
| RAII for correct setting/restoring of CapturedStmtInfo. More... | |
| struct | CGCoroInfo |
| class | ConditionalEvaluation |
| An object to manage conditionally-evaluated expressions. More... | |
| class | ConstantEmission |
| class | CXXDefaultInitExprScope |
| The scope of a CXXDefaultInitExpr. More... | |
| class | FieldConstructionScope |
| A scope within which we are constructing the fields of an object which might use a CXXDefaultInitExpr. More... | |
| class | FinallyInfo |
| A class controlling the emission of a finally block. More... | |
| class | InlinedInheritingConstructorScope |
| struct | JumpDest |
| A jump destination is an abstract label, branching to which may require a jump out through normal cleanups. More... | |
| class | LexicalScope |
| struct | LifetimeExtendedCleanupHeader |
| Header for data within LifetimeExtendedCleanupStack. More... | |
| class | OMPPrivateScope |
| The scope used to remap some variables as private in the OpenMP loop body (or other captured region emitted without outlining), and to restore old vars back on exit. More... | |
| class | OpaqueValueMapping |
| An RAII object to set (and then clear) a mapping for an OpaqueValueExpr. More... | |
| class | OpaqueValueMappingData |
| A non-RAII class containing all the information about a bound opaque value. More... | |
| class | ParamValue |
| class | PeepholeProtection |
| An object which temporarily prevents a value from being destroyed by aggressive peephole optimizations that assume that all uses of a value have been realized in the IR. More... | |
| class | RunCleanupsScope |
| Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More... | |
| class | SanitizerScope |
| RAII object to set/unset CodeGenFunction::IsSanitizerScope. More... | |
| class | StmtExprEvaluation |
| An RAII object to record that we're evaluating a statement expression. More... | |
| struct | VPtr |
| Struct with all informations about dynamic [sub]class needed to set vptr. More... | |
Public Member Functions | |
| void | InsertHelper (llvm::Instruction *I, const llvm::Twine &Name, llvm::BasicBlock *BB, llvm::BasicBlock::iterator InsertPt) const |
| CGBuilder insert helper. More... | |
| bool | hasLabelBeenSeenInCurrentScope () const |
| Return true if a label was seen in the current scope. More... | |
| llvm::BasicBlock * | EmitLandingPad () |
| Emits a landing pad for the current EH stack. More... | |
| llvm::BasicBlock * | getInvokeDestImpl () |
| template<class T > | |
| DominatingValue< T >::saved_type | saveValueInCond (T value) |
| bool | isSEHTryScope () const |
| Returns true inside SEH __try blocks. More... | |
| bool | isCleanupPadScope () const |
| Returns true while emitting a cleanuppad. More... | |
| template<class T , class... As> | |
| void | pushFullExprCleanup (CleanupKind kind, As...A) |
| pushFullExprCleanup - Push a cleanup to be run at the end of the current full-expression. More... | |
| template<class T , class... As> | |
| void | pushCleanupAfterFullExpr (CleanupKind Kind, As...A) |
| Queue a cleanup to be pushed after finishing the current full-expression. More... | |
| void | initFullExprCleanup () |
| Set up the last cleaup that was pushed as a conditional full-expression cleanup. More... | |
| void | PushDestructorCleanup (QualType T, Address Addr) |
| PushDestructorCleanup - Push a cleanup to call the complete-object destructor of an object of the given type at the given address. More... | |
| void | PushDestructorCleanup (const CXXDestructorDecl *Dtor, Address Addr) |
| PushDestructorCleanup - Push a cleanup to call the complete-object variant of the given destructor on the object at the given address. More... | |
| void | PopCleanupBlock (bool FallThroughIsBranchThrough=false) |
| PopCleanupBlock - Will pop the cleanup entry on the stack and process all branch fixups. More... | |
| void | DeactivateCleanupBlock (EHScopeStack::stable_iterator Cleanup, llvm::Instruction *DominatingIP) |
| DeactivateCleanupBlock - Deactivates the given cleanup block. More... | |
| void | ActivateCleanupBlock (EHScopeStack::stable_iterator Cleanup, llvm::Instruction *DominatingIP) |
| ActivateCleanupBlock - Activates an initially-inactive cleanup. More... | |
| void | PopCleanupBlocks (EHScopeStack::stable_iterator OldCleanupStackSize, std::initializer_list< llvm::Value ** > ValuesToReload={}) |
| Takes the old cleanup stack size and emits the cleanup blocks that have been added. More... | |
| void | PopCleanupBlocks (EHScopeStack::stable_iterator OldCleanupStackSize, size_t OldLifetimeExtendedStackSize, std::initializer_list< llvm::Value ** > ValuesToReload={}) |
| Takes the old cleanup stack size and emits the cleanup blocks that have been added, then adds all lifetime-extended cleanups from the given position to the stack. More... | |
| void | ResolveBranchFixups (llvm::BasicBlock *Target) |
| JumpDest | getJumpDestInCurrentScope (llvm::BasicBlock *Target) |
| The given basic block lies in the current EH scope, but may be a target of a potentially scope-crossing jump; get a stable handle to which we can perform this jump later. More... | |
| JumpDest | getJumpDestInCurrentScope (StringRef Name=StringRef()) |
| The given basic block lies in the current EH scope, but may be a target of a potentially scope-crossing jump; get a stable handle to which we can perform this jump later. More... | |
| void | EmitBranchThroughCleanup (JumpDest Dest) |
| EmitBranchThroughCleanup - Emit a branch from the current insert block through the normal cleanup handling code (if any) and then on to. More... | |
| bool | isObviouslyBranchWithoutCleanups (JumpDest Dest) const |
| isObviouslyBranchWithoutCleanups - Return true if a branch to the specified destination obviously has no cleanups to run. More... | |
| void | popCatchScope () |
| popCatchScope - Pops the catch scope at the top of the EHScope stack, emitting any required code (other than the catch handlers themselves). More... | |
| llvm::BasicBlock * | getEHResumeBlock (bool isCleanup) |
| llvm::BasicBlock * | getEHDispatchBlock (EHScopeStack::stable_iterator scope) |
| llvm::BasicBlock * | getMSVCDispatchBlock (EHScopeStack::stable_iterator scope) |
| bool | isInConditionalBranch () const |
| isInConditionalBranch - Return true if we're currently emitting one branch or the other of a conditional expression. More... | |
| void | setBeforeOutermostConditional (llvm::Value *value, Address addr) |
| void | incrementProfileCounter (const Stmt *S, llvm::Value *StepV=nullptr) |
Increment the profiler's counter for the given statement by StepV. More... | |
| uint64_t | getProfileCount (const Stmt *S) |
| Get the profiler's count for the given statement. More... | |
| void | setCurrentProfileCount (uint64_t Count) |
| Set the profiler's current count. More... | |
| uint64_t | getCurrentProfileCount () |
| Get the profiler's current count. More... | |
| CodeGenFunction (CodeGenModule &cgm, bool suppressNewContext=false) | |
| ~CodeGenFunction () | |
| CodeGenTypes & | getTypes () const |
| ASTContext & | getContext () const |
| CGDebugInfo * | getDebugInfo () |
| void | disableDebugInfo () |
| void | enableDebugInfo () |
| bool | shouldUseFusedARCCalls () |
| const LangOptions & | getLangOpts () const |
| Address | getExceptionSlot () |
| Returns a pointer to the function's exception object and selector slot, which is assigned in every landing pad. More... | |
| Address | getEHSelectorSlot () |
| llvm::Value * | getExceptionFromSlot () |
| Returns the contents of the function's exception object and selector slots. More... | |
| llvm::Value * | getSelectorFromSlot () |
| Address | getNormalCleanupDestSlot () |
| llvm::BasicBlock * | getUnreachableBlock () |
| llvm::BasicBlock * | getInvokeDest () |
| bool | currentFunctionUsesSEHTry () const |
| const TargetInfo & | getTarget () const |
| llvm::LLVMContext & | getLLVMContext () |
| const TargetCodeGenInfo & | getTargetHooks () const |
| void | pushIrregularPartialArrayCleanup (llvm::Value *arrayBegin, Address arrayEndPointer, QualType elementType, CharUnits elementAlignment, Destroyer *destroyer) |
| pushIrregularPartialArrayCleanup - Push an EH cleanup to destroy already-constructed elements of the given array. More... | |
| void | pushRegularPartialArrayCleanup (llvm::Value *arrayBegin, llvm::Value *arrayEnd, QualType elementType, CharUnits elementAlignment, Destroyer *destroyer) |
| pushRegularPartialArrayCleanup - Push an EH cleanup to destroy already-constructed elements of the given array. More... | |
| void | pushDestroy (QualType::DestructionKind dtorKind, Address addr, QualType type) |
| pushDestroy - Push the standard destructor for the given type as at least a normal cleanup. More... | |
| void | pushEHDestroy (QualType::DestructionKind dtorKind, Address addr, QualType type) |
| pushEHDestroy - Push the standard destructor for the given type as an EH-only cleanup. More... | |
| void | pushDestroy (CleanupKind kind, Address addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray) |
| void | pushLifetimeExtendedDestroy (CleanupKind kind, Address addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray) |
| void | pushCallObjectDeleteCleanup (const FunctionDecl *OperatorDelete, llvm::Value *CompletePtr, QualType ElementType) |
| void | pushStackRestore (CleanupKind kind, Address SPMem) |
| void | emitDestroy (Address addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray) |
| emitDestroy - Immediately perform the destruction of the given object. More... | |
| llvm::Function * | generateDestroyHelper (Address addr, QualType type, Destroyer *destroyer, bool useEHCleanupForArray, const VarDecl *VD) |
| generateDestroyHelper - Generates a helper function which, when invoked, destroys the given object. More... | |
| void | emitArrayDestroy (llvm::Value *begin, llvm::Value *end, QualType elementType, CharUnits elementAlign, Destroyer *destroyer, bool checkZeroLength, bool useEHCleanup) |
| emitArrayDestroy - Destroys all the elements of the given array, beginning from last to first. More... | |
| Destroyer * | getDestroyer (QualType::DestructionKind destructionKind) |
| bool | needsEHCleanup (QualType::DestructionKind kind) |
| Determines whether an EH cleanup is required to destroy a type with the given destruction kind. More... | |
| CleanupKind | getCleanupKind (QualType::DestructionKind kind) |
| void | GenerateObjCMethod (const ObjCMethodDecl *OMD) |
| Generate an Objective-C method. More... | |
| void | StartObjCMethod (const ObjCMethodDecl *MD, const ObjCContainerDecl *CD) |
| StartObjCMethod - Begin emission of an ObjCMethod. More... | |
| void | GenerateObjCGetter (ObjCImplementationDecl *IMP, const ObjCPropertyImplDecl *PID) |
| GenerateObjCGetter - Synthesize an Objective-C property getter function. More... | |
| void | generateObjCGetterBody (const ObjCImplementationDecl *classImpl, const ObjCPropertyImplDecl *propImpl, const ObjCMethodDecl *GetterMothodDecl, llvm::Constant *AtomicHelperFn) |
| void | GenerateObjCCtorDtorMethod (ObjCImplementationDecl *IMP, ObjCMethodDecl *MD, bool ctor) |
| void | GenerateObjCSetter (ObjCImplementationDecl *IMP, const ObjCPropertyImplDecl *PID) |
| GenerateObjCSetter - Synthesize an Objective-C property setter function for the given property. More... | |
| void | generateObjCSetterBody (const ObjCImplementationDecl *classImpl, const ObjCPropertyImplDecl *propImpl, llvm::Constant *AtomicHelperFn) |
| llvm::Value * | EmitBlockLiteral (const BlockExpr *) |
| Emit a block literal expression in the current function. More... | |
| llvm::Function * | GenerateBlockFunction (GlobalDecl GD, const CGBlockInfo &Info, const DeclMapTy &ldm, bool IsLambdaConversionToBlock) |
| llvm::Constant * | GenerateCopyHelperFunction (const CGBlockInfo &blockInfo) |
| Generate the copy-helper function for a block closure object: static void block_copy_helper(block_t *dst, block_t *src); The runtime will have previously initialized 'dst' by doing a bit-copy of 'src'. More... | |
| llvm::Constant * | GenerateDestroyHelperFunction (const CGBlockInfo &blockInfo) |
| Generate the destroy-helper function for a block closure object: static void block_destroy_helper(block_t *theBlock);. More... | |
| llvm::Constant * | GenerateObjCAtomicSetterCopyHelperFunction (const ObjCPropertyImplDecl *PID) |
| GenerateObjCAtomicSetterCopyHelperFunction - Given a c++ object type with non-trivial copy assignment function, produce following helper function. More... | |
| llvm::Constant * | GenerateObjCAtomicGetterCopyHelperFunction (const ObjCPropertyImplDecl *PID) |
| llvm::Value * | EmitBlockCopyAndAutorelease (llvm::Value *Block, QualType Ty) |
| void | BuildBlockRelease (llvm::Value *DeclPtr, BlockFieldFlags flags) |
| void | emitByrefStructureInit (const AutoVarEmission &emission) |
| Initialize the structural components of a __block variable, i.e. More... | |
| void | enterByrefCleanup (const AutoVarEmission &emission) |
| Enter a cleanup to destroy a __block variable. More... | |
| void | setBlockContextParameter (const ImplicitParamDecl *D, unsigned argNum, llvm::Value *ptr) |
| Address | LoadBlockStruct () |
| Address | GetAddrOfBlockDecl (const VarDecl *var, bool ByRef) |
| Address | emitBlockByrefAddress (Address baseAddr, const VarDecl *V, bool followForward=true) |
| BuildBlockByrefAddress - Computes the location of the data in a variable which is declared as __block. More... | |
| Address | emitBlockByrefAddress (Address baseAddr, const BlockByrefInfo &info, bool followForward, const llvm::Twine &name) |
| const BlockByrefInfo & | getBlockByrefInfo (const VarDecl *var) |
| BuildByrefInfo - This routine changes a __block variable declared as T x into: More... | |
| QualType | BuildFunctionArgList (GlobalDecl GD, FunctionArgList &Args) |
| void | GenerateCode (GlobalDecl GD, llvm::Function *Fn, const CGFunctionInfo &FnInfo) |
| void | StartFunction (GlobalDecl GD, QualType RetTy, llvm::Function *Fn, const CGFunctionInfo &FnInfo, const FunctionArgList &Args, SourceLocation Loc=SourceLocation(), SourceLocation StartLoc=SourceLocation()) |
| Emit code for the start of a function. More... | |
| void | EmitConstructorBody (FunctionArgList &Args) |
| EmitConstructorBody - Emits the body of the current constructor. More... | |
| void | EmitDestructorBody (FunctionArgList &Args) |
| EmitDestructorBody - Emits the body of the current destructor. More... | |
| void | emitImplicitAssignmentOperatorBody (FunctionArgList &Args) |
| void | EmitFunctionBody (FunctionArgList &Args, const Stmt *Body) |
| void | EmitBlockWithFallThrough (llvm::BasicBlock *BB, const Stmt *S) |
| When instrumenting to collect profile data, the counts for some blocks such as switch cases need to not include the fall-through counts, so emit a branch around the instrumentation code. More... | |
| void | EmitForwardingCallToLambda (const CXXMethodDecl *LambdaCallOperator, CallArgList &CallArgs) |
| void | EmitLambdaToBlockPointerBody (FunctionArgList &Args) |
| void | EmitLambdaBlockInvokeBody () |
| void | EmitLambdaDelegatingInvokeBody (const CXXMethodDecl *MD) |
| void | EmitLambdaStaticInvokeFunction (const CXXMethodDecl *MD) |
| void | EmitAsanPrologueOrEpilogue (bool Prologue) |
| llvm::DebugLoc | EmitReturnBlock () |
| Emit the unified return block, trying to avoid its emission when possible. More... | |
| void | FinishFunction (SourceLocation EndLoc=SourceLocation()) |
| FinishFunction - Complete IR generation of the current function. More... | |
| void | StartThunk (llvm::Function *Fn, GlobalDecl GD, const CGFunctionInfo &FnInfo) |
| void | EmitCallAndReturnForThunk (llvm::Constant *Callee, const ThunkInfo *Thunk) |
| void | FinishThunk () |
| void | EmitMustTailThunk (const CXXMethodDecl *MD, llvm::Value *AdjustedThisPtr, llvm::Value *Callee) |
| Emit a musttail call for a thunk with a potentially adjusted this pointer. More... | |
| void | generateThunk (llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) |
| Generate a thunk for the given method. More... | |
| llvm::Function * | GenerateVarArgsThunk (llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) |
| void | EmitCtorPrologue (const CXXConstructorDecl *CD, CXXCtorType Type, FunctionArgList &Args) |
| EmitCtorPrologue - This routine generates necessary code to initialize base classes and non-static data members belonging to this constructor. More... | |
| void | EmitInitializerForField (FieldDecl *Field, LValue LHS, Expr *Init) |
| void | InitializeVTablePointer (const VPtr &vptr) |
| Initialize the vtable pointer of the given subobject. More... | |
| VPtrsVector | getVTablePointers (const CXXRecordDecl *VTableClass) |
| void | getVTablePointers (BaseSubobject Base, const CXXRecordDecl *NearestVBase, CharUnits OffsetFromNearestVBase, bool BaseIsNonVirtualPrimaryBase, const CXXRecordDecl *VTableClass, VisitedVirtualBasesSetTy &VBases, VPtrsVector &vptrs) |
| void | InitializeVTablePointers (const CXXRecordDecl *ClassDecl) |
| llvm::Value * | GetVTablePtr (Address This, llvm::Type *VTableTy, const CXXRecordDecl *VTableClass) |
| GetVTablePtr - Return the Value of the vtable pointer member pointed to by This. More... | |
| void | EmitVTablePtrCheckForCast (QualType T, llvm::Value *Derived, bool MayBeNull, CFITypeCheckKind TCK, SourceLocation Loc) |
| Derived is the presumed address of an object of type T after a cast. More... | |
| void | EmitVTablePtrCheckForCall (const CXXRecordDecl *RD, llvm::Value *VTable, CFITypeCheckKind TCK, SourceLocation Loc) |
| EmitVTablePtrCheckForCall - Virtual method MD is being called via VTable. More... | |
| void | EmitVTablePtrCheck (const CXXRecordDecl *RD, llvm::Value *VTable, CFITypeCheckKind TCK, SourceLocation Loc) |
| EmitVTablePtrCheck - Emit a check that VTable is a valid virtual table for RD using llvm.type.test. More... | |
| void | EmitTypeMetadataCodeForVCall (const CXXRecordDecl *RD, llvm::Value *VTable, SourceLocation Loc) |
| If whole-program virtual table optimization is enabled, emit an assumption that VTable is a member of RD's type identifier. More... | |
| bool | ShouldEmitVTableTypeCheckedLoad (const CXXRecordDecl *RD) |
| Returns whether we should perform a type checked load when loading a virtual function for virtual calls to members of RD. More... | |
| llvm::Value * | EmitVTableTypeCheckedLoad (const CXXRecordDecl *RD, llvm::Value *VTable, uint64_t VTableByteOffset) |
| Emit a type checked load from the given vtable. More... | |
| void | EnterDtorCleanups (const CXXDestructorDecl *Dtor, CXXDtorType Type) |
| EnterDtorCleanups - Enter the cleanups necessary to complete the given phase of destruction for a destructor. More... | |
| bool | ShouldInstrumentFunction () |
| ShouldInstrumentFunction - Return true if the current function should be instrumented with __cyg_profile_func_* calls. More... | |
| bool | ShouldXRayInstrumentFunction () const |
| ShouldXRayInstrument - Return true if the current function should be instrumented with XRay nop sleds. More... | |
| void | EmitFunctionInstrumentation (const char *Fn) |
| EmitFunctionInstrumentation - Emit LLVM code to call the specified instrumentation function with the current function and the call site, if function instrumentation is enabled. More... | |
| void | EmitMCountInstrumentation () |
| EmitMCountInstrumentation - Emit call to .mcount. More... | |
| void | EmitFunctionProlog (const CGFunctionInfo &FI, llvm::Function *Fn, const FunctionArgList &Args) |
| EmitFunctionProlog - Emit the target specific LLVM code to load the arguments for the given function. More... | |
| void | EmitFunctionEpilog (const CGFunctionInfo &FI, bool EmitRetDbgLoc, SourceLocation EndLoc) |
| EmitFunctionEpilog - Emit the target specific LLVM code to return the given temporary. More... | |
| void | EmitReturnValueCheck (llvm::Value *RV) |
Emit a test that checks if the return value RV is nonnull. More... | |
| void | EmitStartEHSpec (const Decl *D) |
| EmitStartEHSpec - Emit the start of the exception spec. More... | |
| void | EmitEndEHSpec (const Decl *D) |
| EmitEndEHSpec - Emit the end of the exception spec. More... | |
| llvm::BasicBlock * | getTerminateLandingPad () |
| getTerminateLandingPad - Return a landing pad that just calls terminate. More... | |
| llvm::BasicBlock * | getTerminateHandler () |
| getTerminateHandler - Return a handler (not a landing pad, just a catch handler) that just calls terminate. More... | |
| llvm::Type * | ConvertTypeForMem (QualType T) |
| llvm::Type * | ConvertType (QualType T) |
| llvm::Type * | ConvertType (const TypeDecl *T) |
| llvm::Value * | LoadObjCSelf () |
| LoadObjCSelf - Load the value of self. More... | |
| QualType | TypeOfSelfObject () |
| TypeOfSelfObject - Return type of object that this self represents. More... | |
| llvm::BasicBlock * | createBasicBlock (const Twine &name="", llvm::Function *parent=nullptr, llvm::BasicBlock *before=nullptr) |
| createBasicBlock - Create an LLVM basic block. More... | |
| JumpDest | getJumpDestForLabel (const LabelDecl *S) |
| getBasicBlockForLabel - Return the LLVM basicblock that the specified label maps to. More... | |
| void | SimplifyForwardingBlocks (llvm::BasicBlock *BB) |
| SimplifyForwardingBlocks - If the given basic block is only a branch to another basic block, simplify it. More... | |
| void | EmitBlock (llvm::BasicBlock *BB, bool IsFinished=false) |
| EmitBlock - Emit the given block. More... | |
| void | EmitBlockAfterUses (llvm::BasicBlock *BB) |
| EmitBlockAfterUses - Emit the given block somewhere hopefully near its uses, and leave the insertion point in it. More... | |
| void | EmitBranch (llvm::BasicBlock *Block) |
| EmitBranch - Emit a branch to the specified basic block from the current insert block, taking care to avoid creation of branches from dummy blocks. More... | |
| bool | HaveInsertPoint () const |
| HaveInsertPoint - True if an insertion point is defined. More... | |
| void | EnsureInsertPoint () |
| EnsureInsertPoint - Ensure that an insertion point is defined so that emitted IR has a place to go. More... | |
| void | ErrorUnsupported (const Stmt *S, const char *Type) |
| ErrorUnsupported - Print out an error that codegen doesn't support the specified stmt yet. More... | |
| LValue | MakeAddrLValue (Address Addr, QualType T, LValueBaseInfo BaseInfo=LValueBaseInfo(AlignmentSource::Type)) |
| LValue | MakeAddrLValue (llvm::Value *V, QualType T, CharUnits Alignment, LValueBaseInfo BaseInfo=LValueBaseInfo(AlignmentSource::Type)) |
| LValue | MakeNaturalAlignPointeeAddrLValue (llvm::Value *V, QualType T) |
| Given a value of type T* that may not be to a complete object, construct an l-value with the natural pointee alignment of T. More... | |
| LValue | MakeNaturalAlignAddrLValue (llvm::Value *V, QualType T) |
| CharUnits | getNaturalTypeAlignment (QualType T, LValueBaseInfo *BaseInfo=nullptr, bool forPointeeType=false) |
| CharUnits | getNaturalPointeeTypeAlignment (QualType T, LValueBaseInfo *BaseInfo=nullptr) |
| Address | EmitLoadOfReference (Address Ref, const ReferenceType *RefTy, LValueBaseInfo *BaseInfo=nullptr) |
| LValue | EmitLoadOfReferenceLValue (Address Ref, const ReferenceType *RefTy) |
| Address | EmitLoadOfPointer (Address Ptr, const PointerType *PtrTy, LValueBaseInfo *BaseInfo=nullptr) |
| LValue | EmitLoadOfPointerLValue (Address Ptr, const PointerType *PtrTy) |
| llvm::AllocaInst * | CreateTempAlloca (llvm::Type *Ty, const Twine &Name="tmp", llvm::Value *ArraySize=nullptr) |
CreateTempAlloca - This creates an alloca and inserts it into the entry block if ArraySize is nullptr, otherwise inserts it at the current insertion point of the builder. More... | |
| Address | CreateTempAlloca (llvm::Type *Ty, CharUnits align, const Twine &Name="tmp", llvm::Value *ArraySize=nullptr, bool CastToDefaultAddrSpace=true) |
| CreateTempAlloca - This creates a alloca and inserts it into the entry block. More... | |
| Address | CreateDefaultAlignTempAlloca (llvm::Type *Ty, const Twine &Name="tmp") |
| CreateDefaultAlignedTempAlloca - This creates an alloca with the default ABI alignment of the given LLVM type. More... | |
| void | InitTempAlloca (Address Alloca, llvm::Value *Value) |
| InitTempAlloca - Provide an initial value for the given alloca which will be observable at all locations in the function. More... | |
| Address | CreateIRTemp (QualType T, const Twine &Name="tmp") |
| CreateIRTemp - Create a temporary IR object of the given type, with appropriate alignment. More... | |
| Address | CreateMemTemp (QualType T, const Twine &Name="tmp", bool CastToDefaultAddrSpace=true) |
| CreateMemTemp - Create a temporary memory object of the given type, with appropriate alignment. More... | |
| Address | CreateMemTemp (QualType T, CharUnits Align, const Twine &Name="tmp", bool CastToDefaultAddrSpace=true) |
| AggValueSlot | CreateAggTemp (QualType T, const Twine &Name="tmp") |
| CreateAggTemp - Create a temporary memory object for the given aggregate type. More... | |
| llvm::Value * | EmitCastToVoidPtr (llvm::Value *value) |
| Emit a cast to void* in the appropriate address space. More... | |
| llvm::Value * | EvaluateExprAsBool (const Expr *E) |
| EvaluateExprAsBool - Perform the usual unary conversions on the specified expression and compare the result against zero, returning an Int1Ty value. More... | |
| void | EmitIgnoredExpr (const Expr *E) |
| EmitIgnoredExpr - Emit an expression in a context which ignores the result. More... | |
| RValue | EmitAnyExpr (const Expr *E, AggValueSlot aggSlot=AggValueSlot::ignored(), bool ignoreResult=false) |
| EmitAnyExpr - Emit code to compute the specified expression which can have any type. More... | |
| Address | EmitVAListRef (const Expr *E) |
| Address | EmitMSVAListRef (const Expr *E) |
| Emit a "reference" to a __builtin_ms_va_list; this is always the value of the expression, because a __builtin_ms_va_list is a pointer to a char. More... | |
| RValue | EmitAnyExprToTemp (const Expr *E) |
| EmitAnyExprToTemp - Similarly to EmitAnyExpr(), however, the result will always be accessible even if no aggregate location is provided. More... | |
| void | EmitAnyExprToMem (const Expr *E, Address Location, Qualifiers Quals, bool IsInitializer) |
| EmitAnyExprToMem - Emits the code necessary to evaluate an arbitrary expression into the given memory location. More... | |
| void | EmitAnyExprToExn (const Expr *E, Address Addr) |
| void | EmitExprAsInit (const Expr *init, const ValueDecl *D, LValue lvalue, bool capturedByInit) |
| EmitExprAsInit - Emits the code necessary to initialize a location in memory with the given initializer. More... | |
| bool | hasVolatileMember (QualType T) |
| hasVolatileMember - returns true if aggregate type has a volatile member. More... | |
| void | EmitAggregateAssign (Address DestPtr, Address SrcPtr, QualType EltTy) |
| EmitAggregateCopy - Emit an aggregate assignment. More... | |
| void | EmitAggregateCopyCtor (Address DestPtr, Address SrcPtr, QualType DestTy, QualType SrcTy) |
| void | EmitAggregateCopy (Address DestPtr, Address SrcPtr, QualType EltTy, bool isVolatile=false, bool isAssignment=false) |
| EmitAggregateCopy - Emit an aggregate copy. More... | |
| Address | GetAddrOfLocalVar (const VarDecl *VD) |
| GetAddrOfLocalVar - Return the address of a local variable. More... | |
| const LValue & | getOpaqueLValueMapping (const OpaqueValueExpr *e) |
| getOpaqueLValueMapping - Given an opaque value expression (which must be mapped to an l-value), return its mapping. More... | |
| const RValue & | getOpaqueRValueMapping (const OpaqueValueExpr *e) |
| getOpaqueRValueMapping - Given an opaque value expression (which must be mapped to an r-value), return its mapping. More... | |
| llvm::Value * | getArrayInitIndex () |
| Get the index of the current ArrayInitLoopExpr, if any. More... | |
| llvm::BlockAddress * | GetAddrOfLabel (const LabelDecl *L) |
| llvm::BasicBlock * | GetIndirectGotoBlock () |
| void | EmitNullInitialization (Address DestPtr, QualType Ty) |
| EmitNullInitialization - Generate code to set a value of the given type to null, If the type contains data member pointers, they will be initialized to -1 in accordance with the Itanium C++ ABI. More... | |
| llvm::Value * | EmitVAStartEnd (llvm::Value *ArgValue, bool IsStart) |
Emits a call to an LLVM variable-argument intrinsic, either llvm.va_start or llvm.va_end. More... | |
| Address | EmitVAArg (VAArgExpr *VE, Address &VAListAddr) |
| Generate code to get an argument from the passed in pointer and update it accordingly. More... | |
| llvm::Value * | emitArrayLength (const ArrayType *arrayType, QualType &baseType, Address &addr) |
| emitArrayLength - Compute the length of an array, even if it's a VLA, and drill down to the base element type. More... | |
| void | EmitVariablyModifiedType (QualType Ty) |
| EmitVLASize - Capture all the sizes for the VLA expressions in the given variably-modified type and store them in the VLASizeMap. More... | |
| std::pair< llvm::Value *, QualType > | getVLASize (const VariableArrayType *vla) |
| getVLASize - Returns an LLVM value that corresponds to the size, in non-variably-sized elements, of a variable length array type, plus that largest non-variably-sized element type. More... | |
| std::pair< llvm::Value *, QualType > | getVLASize (QualType vla) |
| llvm::Value * | LoadCXXThis () |
| LoadCXXThis - Load the value of 'this'. More... | |
| Address | LoadCXXThisAddress () |
| llvm::Value * | LoadCXXVTT () |
| LoadCXXVTT - Load the VTT parameter to base constructors/destructors have virtual bases. More... | |
| Address | GetAddressOfDirectBaseInCompleteClass (Address Value, const CXXRecordDecl *Derived, const CXXRecordDecl *Base, bool BaseIsVirtual) |
| GetAddressOfBaseOfCompleteClass - Convert the given pointer to a complete class to the given direct base. More... | |
| Address | GetAddressOfBaseClass (Address Value, const CXXRecordDecl *Derived, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, bool NullCheckValue, SourceLocation Loc) |
| GetAddressOfBaseClass - This function will add the necessary delta to the load of 'this' and returns address of the base class. More... | |
| Address | GetAddressOfDerivedClass (Address Value, const CXXRecordDecl *Derived, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, bool NullCheckValue) |
| llvm::Value * | GetVTTParameter (GlobalDecl GD, bool ForVirtualBase, bool Delegating) |
| GetVTTParameter - Return the VTT parameter that should be passed to a base constructor/destructor with virtual bases. More... | |
| void | EmitDelegateCXXConstructorCall (const CXXConstructorDecl *Ctor, CXXCtorType CtorType, const FunctionArgList &Args, SourceLocation Loc) |
| void | EmitDelegatingCXXConstructorCall (const CXXConstructorDecl *Ctor, const FunctionArgList &Args) |
| void | EmitInlinedInheritingCXXConstructorCall (const CXXConstructorDecl *Ctor, CXXCtorType CtorType, bool ForVirtualBase, bool Delegating, CallArgList &Args) |
| Emit a call to an inheriting constructor (that is, one that invokes a constructor inherited from a base class) by inlining its definition. More... | |
| void | EmitInheritedCXXConstructorCall (const CXXConstructorDecl *D, bool ForVirtualBase, Address This, bool InheritedFromVBase, const CXXInheritedCtorInitExpr *E) |
| Emit a call to a constructor inherited from a base class, passing the current constructor's arguments along unmodified (without even making a copy). More... | |
| void | EmitCXXConstructorCall (const CXXConstructorDecl *D, CXXCtorType Type, bool ForVirtualBase, bool Delegating, Address This, const CXXConstructExpr *E) |
| void | EmitCXXConstructorCall (const CXXConstructorDecl *D, CXXCtorType Type, bool ForVirtualBase, bool Delegating, Address This, CallArgList &Args) |
| void | EmitVTableAssumptionLoads (const CXXRecordDecl *ClassDecl, Address This) |
| Emit assumption load for all bases. More... | |
| void | EmitVTableAssumptionLoad (const VPtr &vptr, Address This) |
| Emit assumption that vptr load == global vtable. More... | |
| void | EmitSynthesizedCXXCopyCtorCall (const CXXConstructorDecl *D, Address This, Address Src, const CXXConstructExpr *E) |
| void | EmitCXXAggrConstructorCall (const CXXConstructorDecl *D, const ArrayType *ArrayTy, Address ArrayPtr, const CXXConstructExpr *E, bool ZeroInitialization=false) |
| EmitCXXAggrConstructorCall - Emit a loop to call a particular constructor for each of several members of an array. More... | |
| void | EmitCXXAggrConstructorCall (const CXXConstructorDecl *D, llvm::Value *NumElements, Address ArrayPtr, const CXXConstructExpr *E, bool ZeroInitialization=false) |
| EmitCXXAggrConstructorCall - Emit a loop to call a particular constructor for each of several members of an array. More... | |
| void | EmitCXXDestructorCall (const CXXDestructorDecl *D, CXXDtorType Type, bool ForVirtualBase, bool Delegating, Address This) |
| void | EmitNewArrayInitializer (const CXXNewExpr *E, QualType elementType, llvm::Type *ElementTy, Address NewPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) |
| void | EmitCXXTemporary (const CXXTemporary *Temporary, QualType TempType, Address Ptr) |
| Emits all the code to cause the given temporary to be cleaned up. More... | |
| llvm::Value * | EmitLifetimeStart (uint64_t Size, llvm::Value *Addr) |
| Emit a lifetime.begin marker if some criteria are satisfied. More... | |
| void | EmitLifetimeEnd (llvm::Value *Size, llvm::Value *Addr) |
| llvm::Value * | EmitCXXNewExpr (const CXXNewExpr *E) |
| void | EmitCXXDeleteExpr (const CXXDeleteExpr *E) |
| void | EmitDeleteCall (const FunctionDecl *DeleteFD, llvm::Value *Ptr, QualType DeleteTy, llvm::Value *NumElements=nullptr, CharUnits CookieSize=CharUnits()) |
| RValue | EmitBuiltinNewDeleteCall (const FunctionProtoType *Type, const Expr *Arg, bool IsDelete) |
| llvm::Value * | EmitCXXTypeidExpr (const CXXTypeidExpr *E) |
| llvm::Value * | EmitDynamicCast (Address V, const CXXDynamicCastExpr *DCE) |
| Address | EmitCXXUuidofExpr (const CXXUuidofExpr *E) |
| bool | sanitizePerformTypeCheck () const |
| Whether any type-checking sanitizers are enabled. More... | |
| void | EmitTypeCheck (TypeCheckKind TCK, SourceLocation Loc, llvm::Value *V, QualType Type, CharUnits Alignment=CharUnits::Zero(), SanitizerSet SkippedChecks=SanitizerSet()) |
Emit a check that V is the address of storage of the appropriate size and alignment for an object of type Type. More... | |
| void | EmitBoundsCheck (const Expr *E, const Expr *Base, llvm::Value *Index, QualType IndexType, bool Accessed) |
Emit a check that Base points into an array object, which we can access at index Index. More... | |
| llvm::Value * | EmitScalarPrePostIncDec (const UnaryOperator *E, LValue LV, bool isInc, bool isPre) |
| ComplexPairTy | EmitComplexPrePostIncDec (const UnaryOperator *E, LValue LV, bool isInc, bool isPre) |
| void | EmitAlignmentAssumption (llvm::Value *PtrValue, unsigned Alignment, llvm::Value *OffsetValue=nullptr) |
| llvm::DebugLoc | SourceLocToDebugLoc (SourceLocation Location) |
| Converts Location to a DebugLoc, if debug information is enabled. More... | |
| void | EmitDecl (const Decl &D) |
| EmitDecl - Emit a declaration. More... | |
| void | EmitVarDecl (const VarDecl &D) |
| EmitVarDecl - Emit a local variable declaration. More... | |
| void | EmitScalarInit (const Expr *init, const ValueDecl *D, LValue lvalue, bool capturedByInit) |
| bool | isTrivialInitializer (const Expr *Init) |
| Determine whether the given initializer is trivial in the sense that it requires no code to be generated. More... | |
| void | EmitAutoVarDecl (const VarDecl &D) |
| EmitAutoVarDecl - Emit an auto variable declaration. More... | |
| AutoVarEmission | EmitAutoVarAlloca (const VarDecl &var) |
| EmitAutoVarAlloca - Emit the alloca and debug information for a local variable. More... | |
| void | EmitAutoVarInit (const AutoVarEmission &emission) |
| void | EmitAutoVarCleanups (const AutoVarEmission &emission) |
| void | emitAutoVarTypeCleanup (const AutoVarEmission &emission, QualType::DestructionKind dtorKind) |
| Enter a destroy cleanup for the given local variable. More... | |
| void | EmitStaticVarDecl (const VarDecl &D, llvm::GlobalValue::LinkageTypes Linkage) |
| void | EmitParmDecl (const VarDecl &D, ParamValue Arg, unsigned ArgNo) |
| EmitParmDecl - Emit a ParmVarDecl or an ImplicitParamDecl. More... | |
| PeepholeProtection | protectFromPeepholes (RValue rvalue) |
| protectFromPeepholes - Protect a value that we're intending to store to the side, but which will probably be used later, from aggressive peepholing optimizations that might delete it. More... | |
| void | unprotectFromPeepholes (PeepholeProtection protection) |
| void | EmitAlignmentAssumption (llvm::Value *PtrValue, llvm::Value *Alignment, llvm::Value *OffsetValue=nullptr) |
| void | EmitStopPoint (const Stmt *S) |
| EmitStopPoint - Emit a debug stoppoint if we are emitting debug info. More... | |
| void | EmitStmt (const Stmt *S) |
| EmitStmt - Emit the code for the statement. More... | |
| bool | EmitSimpleStmt (const Stmt *S) |
| EmitSimpleStmt - Try to emit a "simple" statement which does not necessarily require an insertion point or debug information; typically because the statement amounts to a jump or a container of other statements. More... | |
| Address | EmitCompoundStmt (const CompoundStmt &S, bool GetLast=false, AggValueSlot AVS=AggValueSlot::ignored()) |
| EmitCompoundStmt - Emit a compound statement {..} node. More... | |
| Address | EmitCompoundStmtWithoutScope (const CompoundStmt &S, bool GetLast=false, AggValueSlot AVS=AggValueSlot::ignored()) |
| void | EmitLabel (const LabelDecl *D) |
| EmitLabel - Emit the block for the given label. More... | |
| void | EmitLabelStmt (const LabelStmt &S) |
| void | EmitAttributedStmt (const AttributedStmt &S) |
| void | EmitGotoStmt (const GotoStmt &S) |
| void | EmitIndirectGotoStmt (const IndirectGotoStmt &S) |
| void | EmitIfStmt (const IfStmt &S) |
| void | EmitWhileStmt (const WhileStmt &S, ArrayRef< const Attr * > Attrs=None) |
| void | EmitDoStmt (const DoStmt &S, ArrayRef< const Attr * > Attrs=None) |
| void | EmitForStmt (const ForStmt &S, ArrayRef< const Attr * > Attrs=None) |
| void | EmitReturnStmt (const ReturnStmt &S) |
| EmitReturnStmt - Note that due to GCC extensions, this can have an operand if the function returns void, or may be missing one if the function returns non-void. More... | |
| void | EmitDeclStmt (const DeclStmt &S) |
| void | EmitBreakStmt (const BreakStmt &S) |
| void | EmitContinueStmt (const ContinueStmt &S) |
| void | EmitSwitchStmt (const SwitchStmt &S) |
| void | EmitDefaultStmt (const DefaultStmt &S) |
| void | EmitCaseStmt (const CaseStmt &S) |
| void | EmitCaseStmtRange (const CaseStmt &S) |
| EmitCaseStmtRange - If case statement range is not too big then add multiple cases to switch instruction, one for each value within the range. More... | |
| void | EmitAsmStmt (const AsmStmt &S) |
| void | EmitObjCForCollectionStmt (const ObjCForCollectionStmt &S) |
| void | EmitObjCAtTryStmt (const ObjCAtTryStmt &S) |
| void | EmitObjCAtThrowStmt (const ObjCAtThrowStmt &S) |
| void | EmitObjCAtSynchronizedStmt (const ObjCAtSynchronizedStmt &S) |
| void | EmitObjCAutoreleasePoolStmt (const ObjCAutoreleasePoolStmt &S) |
| void | EmitCoroutineBody (const CoroutineBodyStmt &S) |
| void | EmitCoreturnStmt (const CoreturnStmt &S) |
| RValue | EmitCoawaitExpr (const CoawaitExpr &E, AggValueSlot aggSlot=AggValueSlot::ignored(), bool ignoreResult=false) |
| LValue | EmitCoawaitLValue (const CoawaitExpr *E) |
| RValue | EmitCoyieldExpr (const CoyieldExpr &E, AggValueSlot aggSlot=AggValueSlot::ignored(), bool ignoreResult=false) |
| LValue | EmitCoyieldLValue (const CoyieldExpr *E) |
| RValue | EmitCoroutineIntrinsic (const CallExpr *E, unsigned int IID) |
| void | EnterCXXTryStmt (const CXXTryStmt &S, bool IsFnTryBlock=false) |
| void | ExitCXXTryStmt (const CXXTryStmt &S, bool IsFnTryBlock=false) |
| void | EmitCXXTryStmt (const CXXTryStmt &S) |
| void | EmitSEHTryStmt (const SEHTryStmt &S) |
| void | EmitSEHLeaveStmt (const SEHLeaveStmt &S) |
| void | EnterSEHTryStmt (const SEHTryStmt &S) |
| void | ExitSEHTryStmt (const SEHTryStmt &S) |
| void | startOutlinedSEHHelper (CodeGenFunction &ParentCGF, bool IsFilter, const Stmt *OutlinedStmt) |
| Arrange a function prototype that can be called by Windows exception handling personalities. More... | |
| llvm::Function * | GenerateSEHFilterFunction (CodeGenFunction &ParentCGF, const SEHExceptStmt &Except) |
| Create a stub filter function that will ultimately hold the code of the filter expression. More... | |
| llvm::Function * | GenerateSEHFinallyFunction (CodeGenFunction &ParentCGF, const SEHFinallyStmt &Finally) |
| void | EmitSEHExceptionCodeSave (CodeGenFunction &ParentCGF, llvm::Value *ParentFP, llvm::Value *EntryEBP) |
| llvm::Value * | EmitSEHExceptionCode () |
| llvm::Value * | EmitSEHExceptionInfo () |
| llvm::Value * | EmitSEHAbnormalTermination () |
| void | EmitCapturedLocals (CodeGenFunction &ParentCGF, const Stmt *OutlinedStmt, bool IsFilter) |
| Scan the outlined statement for captures from the parent function. More... | |
| Address | recoverAddrOfEscapedLocal (CodeGenFunction &ParentCGF, Address ParentVar, llvm::Value *ParentFP) |
| Recovers the address of a local in a parent function. More... | |
| void | EmitCXXForRangeStmt (const CXXForRangeStmt &S, ArrayRef< const Attr * > Attrs=None) |
| llvm::Value * | getTypeSize (QualType Ty) |
| Returns calculated size of the specified type. More... | |
| LValue | InitCapturedStruct (const CapturedStmt &S) |
| llvm::Function * | EmitCapturedStmt (const CapturedStmt &S, CapturedRegionKind K) |
| Generate an outlined function for the body of a CapturedStmt, store any captured variables into the captured struct, and call the outlined function. More... | |
| llvm::Function * | GenerateCapturedStmtFunction (const CapturedStmt &S) |
| Creates the outlined function for a CapturedStmt. More... | |
| Address | GenerateCapturedStmtArgument (const CapturedStmt &S) |
| llvm::Function * | GenerateOpenMPCapturedStmtFunction (const CapturedStmt &S) |
| void | GenerateOpenMPCapturedVars (const CapturedStmt &S, SmallVectorImpl< llvm::Value * > &CapturedVars) |
| void | emitOMPSimpleStore (LValue LVal, RValue RVal, QualType RValTy, SourceLocation Loc) |
| void | EmitOMPAggregateAssign (Address DestAddr, Address SrcAddr, QualType OriginalType, const llvm::function_ref< void(Address, Address)> &CopyGen) |
| Perform element by element copying of arrays with type OriginalType from SrcAddr to DestAddr using copying procedure generated by CopyGen. More... | |
| void | EmitOMPCopy (QualType OriginalType, Address DestAddr, Address SrcAddr, const VarDecl *DestVD, const VarDecl *SrcVD, const Expr *Copy) |
| Emit proper copying of data from one variable to another. More... | |
| std::pair< bool, RValue > | EmitOMPAtomicSimpleUpdateExpr (LValue X, RValue E, BinaryOperatorKind BO, bool IsXLHSInRHSPart, llvm::AtomicOrdering AO, SourceLocation Loc, const llvm::function_ref< RValue(RValue)> &CommonGen) |
| Emit atomic update code for constructs: X = X BO E or X = E BO E. More... | |
| bool | EmitOMPFirstprivateClause (const OMPExecutableDirective &D, OMPPrivateScope &PrivateScope) |
| void | EmitOMPPrivateClause (const OMPExecutableDirective &D, OMPPrivateScope &PrivateScope) |
| void | EmitOMPUseDevicePtrClause (const OMPClause &C, OMPPrivateScope &PrivateScope, const llvm::DenseMap< const ValueDecl *, Address > &CaptureDeviceAddrMap) |
| bool | EmitOMPCopyinClause (const OMPExecutableDirective &D) |
| Emit code for copyin clause in D directive. More... | |
| bool | EmitOMPLastprivateClauseInit (const OMPExecutableDirective &D, OMPPrivateScope &PrivateScope) |
| Emit initial code for lastprivate variables. More... | |
| void | EmitOMPLastprivateClauseFinal (const OMPExecutableDirective &D, bool NoFinals, llvm::Value *IsLastIterCond=nullptr) |
| Emit final copying of lastprivate values to original variables at the end of the worksharing or simd directive. More... | |
| void | EmitOMPLinearClause (const OMPLoopDirective &D, CodeGenFunction::OMPPrivateScope &PrivateScope) |
| Emit initial code for linear clauses. More... | |
| void | EmitOMPLinearClauseFinal (const OMPLoopDirective &D, const llvm::function_ref< llvm::Value *(CodeGenFunction &)> &CondGen) |
| Emit final code for linear clauses. More... | |
| void | EmitOMPReductionClauseInit (const OMPExecutableDirective &D, OMPPrivateScope &PrivateScope) |
| Emit initial code for reduction variables. More... | |
| void | EmitOMPReductionClauseFinal (const OMPExecutableDirective &D, const OpenMPDirectiveKind ReductionKind) |
| Emit final update of reduction values to original variables at the end of the directive. More... | |
| void | EmitOMPLinearClauseInit (const OMPLoopDirective &D) |
| Emit initial code for linear variables. More... | |
| void | EmitOMPTaskBasedDirective (const OMPExecutableDirective &S, const RegionCodeGenTy &BodyGen, const TaskGenTy &TaskGen, OMPTaskDataTy &Data) |
| void | EmitOMPParallelDirective (const OMPParallelDirective &S) |
| void | EmitOMPSimdDirective (const OMPSimdDirective &S) |
| void | EmitOMPForDirective (const OMPForDirective &S) |
| void | EmitOMPForSimdDirective (const OMPForSimdDirective &S) |
| void | EmitOMPSectionsDirective (const OMPSectionsDirective &S) |
| void | EmitOMPSectionDirective (const OMPSectionDirective &S) |
| void | EmitOMPSingleDirective (const OMPSingleDirective &S) |
| void | EmitOMPMasterDirective (const OMPMasterDirective &S) |
| void | EmitOMPCriticalDirective (const OMPCriticalDirective &S) |
| void | EmitOMPParallelForDirective (const OMPParallelForDirective &S) |
| void | EmitOMPParallelForSimdDirective (const OMPParallelForSimdDirective &S) |
| void | EmitOMPParallelSectionsDirective (const OMPParallelSectionsDirective &S) |
| void | EmitOMPTaskDirective (const OMPTaskDirective &S) |
| void | EmitOMPTaskyieldDirective (const OMPTaskyieldDirective &S) |
| void | EmitOMPBarrierDirective (const OMPBarrierDirective &S) |
| void | EmitOMPTaskwaitDirective (const OMPTaskwaitDirective &S) |
| void | EmitOMPTaskgroupDirective (const OMPTaskgroupDirective &S) |
| void | EmitOMPFlushDirective (const OMPFlushDirective &S) |
| void | EmitOMPOrderedDirective (const OMPOrderedDirective &S) |
| void | EmitOMPAtomicDirective (const OMPAtomicDirective &S) |
| void | EmitOMPTargetDirective (const OMPTargetDirective &S) |
| void | EmitOMPTargetDataDirective (const OMPTargetDataDirective &S) |
| void | EmitOMPTargetEnterDataDirective (const OMPTargetEnterDataDirective &S) |
| void | EmitOMPTargetExitDataDirective (const OMPTargetExitDataDirective &S) |
| void | EmitOMPTargetUpdateDirective (const OMPTargetUpdateDirective &S) |
| void | EmitOMPTargetParallelDirective (const OMPTargetParallelDirective &S) |
| void | EmitOMPTargetParallelForDirective (const OMPTargetParallelForDirective &S) |
| void | EmitOMPTeamsDirective (const OMPTeamsDirective &S) |
| void | EmitOMPCancellationPointDirective (const OMPCancellationPointDirective &S) |
| void | EmitOMPCancelDirective (const OMPCancelDirective &S) |
| void | EmitOMPTaskLoopBasedDirective (const OMPLoopDirective &S) |
| void | EmitOMPTaskLoopDirective (const OMPTaskLoopDirective &S) |
| void | EmitOMPTaskLoopSimdDirective (const OMPTaskLoopSimdDirective &S) |
| void | EmitOMPDistributeDirective (const OMPDistributeDirective &S) |
| void | EmitOMPDistributeParallelForDirective (const OMPDistributeParallelForDirective &S) |
| void | EmitOMPDistributeParallelForSimdDirective (const OMPDistributeParallelForSimdDirective &S) |
| void | EmitOMPDistributeSimdDirective (const OMPDistributeSimdDirective &S) |
| void | EmitOMPTargetParallelForSimdDirective (const OMPTargetParallelForSimdDirective &S) |
| void | EmitOMPTargetSimdDirective (const OMPTargetSimdDirective &S) |
| void | EmitOMPTeamsDistributeDirective (const OMPTeamsDistributeDirective &S) |
| void | EmitOMPTeamsDistributeSimdDirective (const OMPTeamsDistributeSimdDirective &S) |
| void | EmitOMPTeamsDistributeParallelForSimdDirective (const OMPTeamsDistributeParallelForSimdDirective &S) |
| void | EmitOMPTeamsDistributeParallelForDirective (const OMPTeamsDistributeParallelForDirective &S) |
| void | EmitOMPTargetTeamsDirective (const OMPTargetTeamsDirective &S) |
| void | EmitOMPTargetTeamsDistributeDirective (const OMPTargetTeamsDistributeDirective &S) |
| void | EmitOMPTargetTeamsDistributeParallelForDirective (const OMPTargetTeamsDistributeParallelForDirective &S) |
| void | EmitOMPTargetTeamsDistributeParallelForSimdDirective (const OMPTargetTeamsDistributeParallelForSimdDirective &S) |
| void | EmitOMPTargetTeamsDistributeSimdDirective (const OMPTargetTeamsDistributeSimdDirective &S) |
| void | EmitOMPInnerLoop (const Stmt &S, bool RequiresCleanup, const Expr *LoopCond, const Expr *IncExpr, const llvm::function_ref< void(CodeGenFunction &)> &BodyGen, const llvm::function_ref< void(CodeGenFunction &)> &PostIncGen) |
| Emit inner loop of the worksharing/simd construct. More... | |
| JumpDest | getOMPCancelDestination (OpenMPDirectiveKind Kind) |
| void | EmitOMPPrivateLoopCounters (const OMPLoopDirective &S, OMPPrivateScope &LoopScope) |
| Emit initial code for loop counters of loop-based directives. More... | |
| void | EmitOMPLoopBody (const OMPLoopDirective &D, JumpDest LoopExit) |
| Helper for the OpenMP loop directives. More... | |
| bool | EmitOMPWorksharingLoop (const OMPLoopDirective &S, Expr *EUB, const CodeGenLoopBoundsTy &CodeGenLoopBounds, const CodeGenDispatchBoundsTy &CGDispatchBounds) |
| Emit code for the worksharing loop-based directive. More... | |
| RValue | GetUndefRValue (QualType Ty) |
| GetUndefRValue - Get an appropriate 'undef' rvalue for the given type. More... | |
| RValue | EmitUnsupportedRValue (const Expr *E, const char *Name) |
| EmitUnsupportedRValue - Emit a dummy r-value using the type of E and issue an ErrorUnsupported style diagnostic (using the provided Name). More... | |
| LValue | EmitUnsupportedLValue (const Expr *E, const char *Name) |
| EmitUnsupportedLValue - Emit a dummy l-value using the type of E and issue an ErrorUnsupported style diagnostic (using the provided Name). More... | |
| LValue | EmitLValue (const Expr *E) |
| EmitLValue - Emit code to compute a designator that specifies the location of the expression. More... | |
| LValue | EmitCheckedLValue (const Expr *E, TypeCheckKind TCK) |
| Same as EmitLValue but additionally we generate checking code to guard against undefined behavior. More... | |
| RValue | convertTempToRValue (Address addr, QualType type, SourceLocation Loc) |
| Given the address of a temporary variable, produce an r-value of its type. More... | |
| void | EmitAtomicInit (Expr *E, LValue lvalue) |
| bool | LValueIsSuitableForInlineAtomic (LValue Src) |
| An LValue is a candidate for having its loads and stores be made atomic if we are operating under /volatile:ms and the LValue itself is volatile and performing such an operation can be performed without a libcall. More... | |
| RValue | EmitAtomicLoad (LValue LV, SourceLocation SL, AggValueSlot Slot=AggValueSlot::ignored()) |
| RValue | EmitAtomicLoad (LValue lvalue, SourceLocation loc, llvm::AtomicOrdering AO, bool IsVolatile=false, AggValueSlot slot=AggValueSlot::ignored()) |
| Emit a load from an l-value of atomic type. More... | |
| void | EmitAtomicStore (RValue rvalue, LValue lvalue, bool isInit) |
| void | EmitAtomicStore (RValue rvalue, LValue lvalue, llvm::AtomicOrdering AO, bool IsVolatile, bool isInit) |
| Emit a store to an l-value of atomic type. More... | |
| std::pair< RValue, llvm::Value * > | EmitAtomicCompareExchange (LValue Obj, RValue Expected, RValue Desired, SourceLocation Loc, llvm::AtomicOrdering Success=llvm::AtomicOrdering::SequentiallyConsistent, llvm::AtomicOrdering Failure=llvm::AtomicOrdering::SequentiallyConsistent, bool IsWeak=false, AggValueSlot Slot=AggValueSlot::ignored()) |
| Emit a compare-and-exchange op for atomic type. More... | |
| void | EmitAtomicUpdate (LValue LVal, llvm::AtomicOrdering AO, const llvm::function_ref< RValue(RValue)> &UpdateOp, bool IsVolatile) |
| llvm::Value * | EmitToMemory (llvm::Value *Value, QualType Ty) |
| EmitToMemory - Change a scalar value from its value representation to its in-memory representation. More... | |
| llvm::Value * | EmitFromMemory (llvm::Value *Value, QualType Ty) |
| EmitFromMemory - Change a scalar value from its memory representation to its value representation. More... | |
| bool | EmitScalarRangeCheck (llvm::Value *Value, QualType Ty, SourceLocation Loc) |
Check if the scalar Value is within the valid range for the given type Ty. More... | |
| llvm::Value * | EmitLoadOfScalar (Address Addr, bool Volatile, QualType Ty, SourceLocation Loc, LValueBaseInfo BaseInfo=LValueBaseInfo(AlignmentSource::Type), llvm::MDNode *TBAAInfo=nullptr, QualType TBAABaseTy=QualType(), uint64_t TBAAOffset=0, bool isNontemporal=false) |
| EmitLoadOfScalar - Load a scalar value from an address, taking care to appropriately convert from the memory representation to the LLVM value representation. More... | |
| llvm::Value * | EmitLoadOfScalar (LValue lvalue, SourceLocation Loc) |
| EmitLoadOfScalar - Load a scalar value from an address, taking care to appropriately convert from the memory representation to the LLVM value representation. More... | |
| void | EmitStoreOfScalar (llvm::Value *Value, Address Addr, bool Volatile, QualType Ty, LValueBaseInfo BaseInfo=LValueBaseInfo(AlignmentSource::Type), llvm::MDNode *TBAAInfo=nullptr, bool isInit=false, QualType TBAABaseTy=QualType(), uint64_t TBAAOffset=0, bool isNontemporal=false) |
| EmitStoreOfScalar - Store a scalar value to an address, taking care to appropriately convert from the memory representation to the LLVM value representation. More... | |
| void | EmitStoreOfScalar (llvm::Value *value, LValue lvalue, bool isInit=false) |
| EmitStoreOfScalar - Store a scalar value to an address, taking care to appropriately convert from the memory representation to the LLVM value representation. More... | |
| RValue | EmitLoadOfLValue (LValue V, SourceLocation Loc) |
| EmitLoadOfLValue - Given an expression that represents a value lvalue, this method emits the address of the lvalue, then loads the result as an rvalue, returning the rvalue. More... | |
| RValue | EmitLoadOfExtVectorElementLValue (LValue V) |
| RValue | EmitLoadOfBitfieldLValue (LValue LV, SourceLocation Loc) |
| RValue | EmitLoadOfGlobalRegLValue (LValue LV) |
| Load of global gamed gegisters are always calls to intrinsics. More... | |
| void | EmitStoreThroughLValue (RValue Src, LValue Dst, bool isInit=false) |
| EmitStoreThroughLValue - Store the specified rvalue into the specified lvalue, where both are guaranteed to the have the same type, and that type is 'Ty'. More... | |
| void | EmitStoreThroughExtVectorComponentLValue (RValue Src, LValue Dst) |
| void | EmitStoreThroughGlobalRegLValue (RValue Src, LValue Dst) |
| Store of global named registers are always calls to intrinsics. More... | |
| void | EmitStoreThroughBitfieldLValue (RValue Src, LValue Dst, llvm::Value **Result=nullptr) |
| EmitStoreThroughBitfieldLValue - Store Src into Dst with same constraints as EmitStoreThroughLValue. More... | |
| LValue | EmitComplexAssignmentLValue (const BinaryOperator *E) |
| Emit an l-value for an assignment (simple or compound) of complex type. More... | |
| LValue | EmitComplexCompoundAssignmentLValue (const CompoundAssignOperator *E) |
| LValue | EmitScalarCompoundAssignWithComplex (const CompoundAssignOperator *E, llvm::Value *&Result) |
| LValue | EmitBinaryOperatorLValue (const BinaryOperator *E) |
| LValue | EmitCompoundAssignmentLValue (const CompoundAssignOperator *E) |
| LValue | EmitCallExprLValue (const CallExpr *E) |
| LValue | EmitVAArgExprLValue (const VAArgExpr *E) |
| LValue | EmitDeclRefLValue (const DeclRefExpr *E) |
| LValue | EmitStringLiteralLValue (const StringLiteral *E) |
| LValue | EmitObjCEncodeExprLValue (const ObjCEncodeExpr *E) |
| LValue | EmitPredefinedLValue (const PredefinedExpr *E) |
| LValue | EmitUnaryOpLValue (const UnaryOperator *E) |
| LValue | EmitArraySubscriptExpr (const ArraySubscriptExpr *E, bool Accessed=false) |
| LValue | EmitOMPArraySectionExpr (const OMPArraySectionExpr *E, bool IsLowerBound=true) |
| LValue | EmitExtVectorElementExpr (const ExtVectorElementExpr *E) |
| LValue | EmitMemberExpr (const MemberExpr *E) |
| LValue | EmitObjCIsaExpr (const ObjCIsaExpr *E) |
| LValue | EmitCompoundLiteralLValue (const CompoundLiteralExpr *E) |
| LValue | EmitInitListLValue (const InitListExpr *E) |
| LValue | EmitConditionalOperatorLValue (const AbstractConditionalOperator *E) |
| LValue | EmitCastLValue (const CastExpr *E) |
| EmitCastLValue - Casts are never lvalues unless that cast is to a reference type. More... | |
| LValue | EmitMaterializeTemporaryExpr (const MaterializeTemporaryExpr *E) |
| LValue | EmitOpaqueValueLValue (const OpaqueValueExpr *e) |
| Address | EmitExtVectorElementLValue (LValue V) |
| Generates lvalue for partial ext_vector access. More... | |
| RValue | EmitRValueForField (LValue LV, const FieldDecl *FD, SourceLocation Loc) |
| Address | EmitArrayToPointerDecay (const Expr *Array, LValueBaseInfo *BaseInfo=nullptr) |
| ConstantEmission | tryEmitAsConstant (DeclRefExpr *refExpr) |
| Try to emit a reference to the given value without producing it as an l-value. More... | |
| RValue | EmitPseudoObjectRValue (const PseudoObjectExpr *e, AggValueSlot slot=AggValueSlot::ignored()) |
| LValue | EmitPseudoObjectLValue (const PseudoObjectExpr *e) |
| llvm::Value * | EmitIvarOffset (const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) |
| LValue | EmitLValueForField (LValue Base, const FieldDecl *Field) |
| LValue | EmitLValueForLambdaField (const FieldDecl *Field) |
| Given that we are currently emitting a lambda, emit an l-value for one of its members. More... | |
| LValue | EmitLValueForFieldInitialization (LValue Base, const FieldDecl *Field) |
| EmitLValueForFieldInitialization - Like EmitLValueForField, except that if the Field is a reference, this will return the address of the reference and not the address of the value stored in the reference. More... | |
| LValue | EmitLValueForIvar (QualType ObjectTy, llvm::Value *Base, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers) |
| LValue | EmitCXXConstructLValue (const CXXConstructExpr *E) |
| LValue | EmitCXXBindTemporaryLValue (const CXXBindTemporaryExpr *E) |
| LValue | EmitLambdaLValue (const LambdaExpr *E) |
| LValue | EmitCXXTypeidLValue (const CXXTypeidExpr *E) |
| LValue | EmitCXXUuidofLValue (const CXXUuidofExpr *E) |
| LValue | EmitObjCMessageExprLValue (const ObjCMessageExpr *E) |
| LValue | EmitObjCIvarRefLValue (const ObjCIvarRefExpr *E) |
| LValue | EmitStmtExprLValue (const StmtExpr *E) |
| LValue | EmitPointerToDataMemberBinaryExpr (const BinaryOperator *E) |
| LValue | EmitObjCSelectorLValue (const ObjCSelectorExpr *E) |
| void | EmitDeclRefExprDbgValue (const DeclRefExpr *E, const APValue &Init) |
| RValue | EmitCall (const CGFunctionInfo &CallInfo, const CGCallee &Callee, ReturnValueSlot ReturnValue, const CallArgList &Args, llvm::Instruction **callOrInvoke=nullptr) |
| EmitCall - Generate a call of the given function, expecting the given result type, and using the given argument list which specifies both the LLVM arguments and the types they were derived from. More... | |
| RValue | EmitCall (QualType FnType, const CGCallee &Callee, const CallExpr *E, ReturnValueSlot ReturnValue, llvm::Value *Chain=nullptr) |
| RValue | EmitCallExpr (const CallExpr *E, ReturnValueSlot ReturnValue=ReturnValueSlot()) |
| RValue | EmitSimpleCallExpr (const CallExpr *E, ReturnValueSlot ReturnValue) |
| Emit a CallExpr without considering whether it might be a subclass. More... | |
| CGCallee | EmitCallee (const Expr *E) |
| void | checkTargetFeatures (const CallExpr *E, const FunctionDecl *TargetDecl) |
| llvm::CallInst * | EmitRuntimeCall (llvm::Value *callee, const Twine &name="") |
| llvm::CallInst * | EmitRuntimeCall (llvm::Value *callee, ArrayRef< llvm::Value * > args, const Twine &name="") |
| llvm::CallInst * | EmitNounwindRuntimeCall (llvm::Value *callee, const Twine &name="") |
| llvm::CallInst * | EmitNounwindRuntimeCall (llvm::Value *callee, ArrayRef< llvm::Value * > args, const Twine &name="") |
| llvm::CallSite | EmitCallOrInvoke (llvm::Value *Callee, ArrayRef< llvm::Value * > Args, const Twine &Name="") |
| Emits a call or invoke instruction to the given function, depending on the current state of the EH stack. More... | |
| llvm::CallSite | EmitRuntimeCallOrInvoke (llvm::Value *callee, ArrayRef< llvm::Value * > args, const Twine &name="") |
| Emits a call or invoke instruction to the given runtime function. More... | |
| llvm::CallSite | EmitRuntimeCallOrInvoke (llvm::Value *callee, const Twine &name="") |
| Emits a call or invoke instruction to the given nullary runtime function. More... | |
| void | EmitNoreturnRuntimeCallOrInvoke (llvm::Value *callee, ArrayRef< llvm::Value * > args) |
| Emits a call or invoke to the given noreturn runtime function. More... | |
| CGCallee | BuildAppleKextVirtualCall (const CXXMethodDecl *MD, NestedNameSpecifier *Qual, llvm::Type *Ty) |
| BuildAppleKextVirtualCall - This routine is to support gcc's kext ABI making indirect call to virtual functions. More... | |
| CGCallee | BuildAppleKextVirtualDestructorCall (const CXXDestructorDecl *DD, CXXDtorType Type, const CXXRecordDecl *RD) |
| BuildVirtualCall - This routine makes indirect vtable call for call to virtual destructors. More... | |
| RValue | EmitCXXMemberOrOperatorCall (const CXXMethodDecl *Method, const CGCallee &Callee, ReturnValueSlot ReturnValue, llvm::Value *This, llvm::Value *ImplicitParam, QualType ImplicitParamTy, const CallExpr *E, CallArgList *RtlArgs) |
| RValue | EmitCXXDestructorCall (const CXXDestructorDecl *DD, const CGCallee &Callee, llvm::Value *This, llvm::Value *ImplicitParam, QualType ImplicitParamTy, const CallExpr *E, StructorType Type) |
| RValue | EmitCXXMemberCallExpr (const CXXMemberCallExpr *E, ReturnValueSlot ReturnValue) |
| RValue | EmitCXXMemberOrOperatorMemberCallExpr (const CallExpr *CE, const CXXMethodDecl *MD, ReturnValueSlot ReturnValue, bool HasQualifier, NestedNameSpecifier *Qualifier, bool IsArrow, const Expr *Base) |
| Address | EmitCXXMemberDataPointerAddress (const Expr *E, Address base, llvm::Value *memberPtr, const MemberPointerType *memberPtrType, LValueBaseInfo *BaseInfo=nullptr) |
| Emit the address of a field using a member data pointer. More... | |
| RValue | EmitCXXMemberPointerCallExpr (const CXXMemberCallExpr *E, ReturnValueSlot ReturnValue) |
| RValue | EmitCXXOperatorMemberCallExpr (const CXXOperatorCallExpr *E, const CXXMethodDecl *MD, ReturnValueSlot ReturnValue) |
| RValue | EmitCXXPseudoDestructorExpr (const CXXPseudoDestructorExpr *E) |
| RValue | EmitCUDAKernelCallExpr (const CUDAKernelCallExpr *E, ReturnValueSlot ReturnValue) |
| RValue | EmitNVPTXDevicePrintfCallExpr (const CallExpr *E, ReturnValueSlot ReturnValue) |
| RValue | EmitBuiltinExpr (const FunctionDecl *FD, unsigned BuiltinID, const CallExpr *E, ReturnValueSlot ReturnValue) |
| RValue | EmitBlockCallExpr (const CallExpr *E, ReturnValueSlot ReturnValue) |
| llvm::Value * | EmitTargetBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| EmitTargetBuiltinExpr - Emit the given builtin call. More... | |
| llvm::Value * | EmitAArch64CompareBuiltinExpr (llvm::Value *Op, llvm::Type *Ty, const llvm::CmpInst::Predicate Fp, const llvm::CmpInst::Predicate Ip, const llvm::Twine &Name="") |
| llvm::Value * | EmitARMBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitCommonNeonBuiltinExpr (unsigned BuiltinID, unsigned LLVMIntrinsic, unsigned AltLLVMIntrinsic, const char *NameHint, unsigned Modifier, const CallExpr *E, SmallVectorImpl< llvm::Value * > &Ops, Address PtrOp0, Address PtrOp1) |
| llvm::Function * | LookupNeonLLVMIntrinsic (unsigned IntrinsicID, unsigned Modifier, llvm::Type *ArgTy, const CallExpr *E) |
| llvm::Value * | EmitNeonCall (llvm::Function *F, SmallVectorImpl< llvm::Value * > &O, const char *name, unsigned shift=0, bool rightshift=false) |
| llvm::Value * | EmitNeonSplat (llvm::Value *V, llvm::Constant *Idx) |
| llvm::Value * | EmitNeonShiftVector (llvm::Value *V, llvm::Type *Ty, bool negateForRightShift) |
| llvm::Value * | EmitNeonRShiftImm (llvm::Value *Vec, llvm::Value *Amt, llvm::Type *Ty, bool usgn, const char *name) |
| llvm::Value * | vectorWrapScalar16 (llvm::Value *Op) |
| llvm::Value * | EmitAArch64BuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | BuildVector (ArrayRef< llvm::Value * > Ops) |
| llvm::Value * | EmitX86BuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitPPCBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitAMDGPUBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitSystemZBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitNVPTXBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitWebAssemblyBuiltinExpr (unsigned BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitMSVCBuiltinExpr (MSVCIntrin BuiltinID, const CallExpr *E) |
| llvm::Value * | EmitBuiltinAvailable (ArrayRef< llvm::Value * > Args) |
| llvm::Value * | EmitObjCProtocolExpr (const ObjCProtocolExpr *E) |
| llvm::Value * | EmitObjCStringLiteral (const ObjCStringLiteral *E) |
| Emits an instance of NSConstantString representing the object. More... | |
| llvm::Value * | EmitObjCBoxedExpr (const ObjCBoxedExpr *E) |
| EmitObjCBoxedExpr - This routine generates code to call the appropriate expression boxing method. More... | |
| llvm::Value * | EmitObjCArrayLiteral (const ObjCArrayLiteral *E) |
| llvm::Value * | EmitObjCDictionaryLiteral (const ObjCDictionaryLiteral *E) |
| llvm::Value * | EmitObjCCollectionLiteral (const Expr *E, const ObjCMethodDecl *MethodWithObjects) |
| llvm::Value * | EmitObjCSelectorExpr (const ObjCSelectorExpr *E) |
| Emit a selector. More... | |
| RValue | EmitObjCMessageExpr (const ObjCMessageExpr *E, ReturnValueSlot Return=ReturnValueSlot()) |
| CleanupKind | getARCCleanupKind () |
| Retrieves the default cleanup kind for an ARC cleanup. More... | |
| void | EmitARCInitWeak (Address addr, llvm::Value *value) |
| i8* @objc_initWeak(i8** addr, i8* value) Returns value. More... | |
| void | EmitARCDestroyWeak (Address addr) |
| void @objc_destroyWeak(i8** addr) Essentially objc_storeWeak(addr, nil). More... | |
| llvm::Value * | EmitARCLoadWeak (Address addr) |
| i8* @objc_loadWeak(i8** addr) Essentially objc_autorelease(objc_loadWeakRetained(addr)). More... | |
| llvm::Value * | EmitARCLoadWeakRetained (Address addr) |
| i8* @objc_loadWeakRetained(i8** addr) More... | |
| llvm::Value * | EmitARCStoreWeak (Address addr, llvm::Value *value, bool ignored) |
| i8* @objc_storeWeak(i8** addr, i8* value) Returns value. More... | |
| void | EmitARCCopyWeak (Address dst, Address src) |
| void @objc_copyWeak(i8** dest, i8** src) Disregards the current value in dest. More... | |
| void | EmitARCMoveWeak (Address dst, Address src) |
| void @objc_moveWeak(i8** dest, i8** src) Disregards the current value in dest. More... | |
| llvm::Value * | EmitARCRetainAutorelease (QualType type, llvm::Value *value) |
| Do a fused retain/autorelease of the given object. More... | |
| llvm::Value * | EmitARCRetainAutoreleaseNonBlock (llvm::Value *value) |
| Do a fused retain/autorelease of the given object. More... | |
| llvm::Value * | EmitARCStoreStrong (LValue lvalue, llvm::Value *value, bool resultIgnored) |
| Store into a strong object. More... | |
| llvm::Value * | EmitARCStoreStrongCall (Address addr, llvm::Value *value, bool resultIgnored) |
| Store into a strong object. More... | |
| llvm::Value * | EmitARCRetain (QualType type, llvm::Value *value) |
| Produce the code to do a retain. More... | |
| llvm::Value * | EmitARCRetainNonBlock (llvm::Value *value) |
| Retain the given object, with normal retain semantics. More... | |
| llvm::Value * | EmitARCRetainBlock (llvm::Value *value, bool mandatory) |
| Retain the given block, with _Block_copy semantics. More... | |
| void | EmitARCDestroyStrong (Address addr, ARCPreciseLifetime_t precise) |
| Destroy a __strong variable. More... | |
| void | EmitARCRelease (llvm::Value *value, ARCPreciseLifetime_t precise) |
| Release the given object. More... | |
| llvm::Value * | EmitARCAutorelease (llvm::Value *value) |
| Autorelease the given object. More... | |
| llvm::Value * | EmitARCAutoreleaseReturnValue (llvm::Value *value) |
| Autorelease the given object. More... | |
| llvm::Value * | EmitARCRetainAutoreleaseReturnValue (llvm::Value *value) |
| Do a fused retain/autorelease of the given object. More... | |
| llvm::Value * | EmitARCRetainAutoreleasedReturnValue (llvm::Value *value) |
| Retain the given object which is the result of a function call. More... | |
| llvm::Value * | EmitARCUnsafeClaimAutoreleasedReturnValue (llvm::Value *value) |
| Claim a possibly-autoreleased return value at +0. More... | |
| std::pair< LValue, llvm::Value * > | EmitARCStoreAutoreleasing (const BinaryOperator *e) |
| std::pair< LValue, llvm::Value * > | EmitARCStoreStrong (const BinaryOperator *e, bool ignored) |
| std::pair< LValue, llvm::Value * > | EmitARCStoreUnsafeUnretained (const BinaryOperator *e, bool ignored) |
| llvm::Value * | EmitObjCThrowOperand (const Expr *expr) |
| llvm::Value * | EmitObjCConsumeObject (QualType T, llvm::Value *Ptr) |
| Produce the code for a CK_ARCConsumeObject. More... | |
| llvm::Value * | EmitObjCExtendObjectLifetime (QualType T, llvm::Value *Ptr) |
| llvm::Value * | EmitARCExtendBlockObject (const Expr *expr) |
| llvm::Value * | EmitARCReclaimReturnedObject (const Expr *e, bool allowUnsafeClaim) |
| llvm::Value * | EmitARCRetainScalarExpr (const Expr *expr) |
| EmitARCRetainScalarExpr - Semantically equivalent to EmitARCRetainObject(e->getType(), EmitScalarExpr(e)), but making a best-effort attempt to peephole expressions that naturally produce retained objects. More... | |
| llvm::Value * | EmitARCRetainAutoreleaseScalarExpr (const Expr *expr) |
| llvm::Value * | EmitARCUnsafeUnretainedScalarExpr (const Expr *expr) |
| EmitARCUnsafeUnretainedScalarExpr - Semantically equivalent to immediately releasing the resut of EmitARCRetainScalarExpr, but avoiding any spurious retains, including by performing reclaims with objc_unsafeClaimAutoreleasedReturnValue. More... | |
| void | EmitARCIntrinsicUse (ArrayRef< llvm::Value * > values) |
| Given a number of pointers, inform the optimizer that they're being intrinsically used up until this point in the program. More... | |
| void | EmitObjCAutoreleasePoolPop (llvm::Value *Ptr) |
| Produce the code to do a primitive release. More... | |
| llvm::Value * | EmitObjCAutoreleasePoolPush () |
| Produce the code to do a objc_autoreleasepool_push. More... | |
| llvm::Value * | EmitObjCMRRAutoreleasePoolPush () |
| Produce the code to do an MRR version objc_autoreleasepool_push. More... | |
| void | EmitObjCAutoreleasePoolCleanup (llvm::Value *Ptr) |
| void | EmitObjCMRRAutoreleasePoolPop (llvm::Value *Ptr) |
| Produce the code to do a primitive release. More... | |
| RValue | EmitReferenceBindingToExpr (const Expr *E) |
| Emits a reference binding to the passed in expression. More... | |
| llvm::Value * | EmitScalarExpr (const Expr *E, bool IgnoreResultAssign=false) |
| EmitScalarExpr - Emit the computation of the specified expression of LLVM scalar type, returning the result. More... | |
| llvm::Value * | EmitScalarConversion (llvm::Value *Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) |
| Emit a conversion from the specified type to the specified destination type, both of which are LLVM scalar types. More... | |
| llvm::Value * | EmitComplexToScalarConversion (ComplexPairTy Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) |
| Emit a conversion from the specified complex type to the specified destination type, where the destination type is an LLVM scalar type. More... | |
| void | EmitAggExpr (const Expr *E, AggValueSlot AS) |
| EmitAggExpr - Emit the computation of the specified expression of aggregate type. More... | |
| LValue | EmitAggExprToLValue (const Expr *E) |
| EmitAggExprToLValue - Emit the computation of the specified expression of aggregate type into a temporary LValue. More... | |
| void | EmitExtendGCLifetime (llvm::Value *object) |
| EmitExtendGCLifetime - Given a pointer to an Objective-C object, make sure it survives garbage collection until this point. More... | |
| ComplexPairTy | EmitComplexExpr (const Expr *E, bool IgnoreReal=false, bool IgnoreImag=false) |
| EmitComplexExpr - Emit the computation of the specified expression of complex type, returning the result. More... | |
| void | EmitComplexExprIntoLValue (const Expr *E, LValue dest, bool isInit) |
| EmitComplexExprIntoLValue - Emit the given expression of complex type and place its result into the specified l-value. More... | |
| void | EmitStoreOfComplex (ComplexPairTy V, LValue dest, bool isInit) |
| EmitStoreOfComplex - Store a complex number into the specified l-value. More... | |
| ComplexPairTy | EmitLoadOfComplex (LValue src, SourceLocation loc) |
| EmitLoadOfComplex - Load a complex number from the specified l-value. More... | |
| Address | emitAddrOfRealComponent (Address complex, QualType complexType) |
| Address | emitAddrOfImagComponent (Address complex, QualType complexType) |
| llvm::GlobalVariable * | AddInitializerToStaticVarDecl (const VarDecl &D, llvm::GlobalVariable *GV) |
| AddInitializerToStaticVarDecl - Add the initializer for 'D' to the global variable that has already been created for it. More... | |
| void | EmitCXXGlobalVarDeclInit (const VarDecl &D, llvm::Constant *DeclPtr, bool PerformInit) |
| EmitCXXGlobalVarDeclInit - Create the initializer for a C++ variable with global storage. More... | |
| llvm::Constant * | createAtExitStub (const VarDecl &VD, llvm::Constant *Dtor, llvm::Constant *Addr) |
| Create a stub function, suitable for being passed to atexit, which passes the given address to the given destructor function. More... | |
| void | registerGlobalDtorWithAtExit (const VarDecl &D, llvm::Constant *fn, llvm::Constant *addr) |
| Call atexit() with a function that passes the given argument to the given function. More... | |
| void | EmitCXXGuardedInit (const VarDecl &D, llvm::GlobalVariable *DeclPtr, bool PerformInit) |
| Emit code in this function to perform a guarded variable initialization. More... | |
| void | GenerateCXXGlobalInitFunc (llvm::Function *Fn, ArrayRef< llvm::Function * > CXXThreadLocals, Address Guard=Address::invalid()) |
| GenerateCXXGlobalInitFunc - Generates code for initializing global variables. More... | |
| void | GenerateCXXGlobalDtorsFunc (llvm::Function *Fn, const std::vector< std::pair< llvm::WeakTrackingVH, llvm::Constant * >> &DtorsAndObjects) |
| GenerateCXXGlobalDtorsFunc - Generates code for destroying global variables. More... | |
| void | GenerateCXXGlobalVarDeclInitFunc (llvm::Function *Fn, const VarDecl *D, llvm::GlobalVariable *Addr, bool PerformInit) |
| Emit the code necessary to initialize the given global variable. More... | |
| void | EmitCXXConstructExpr (const CXXConstructExpr *E, AggValueSlot Dest) |
| void | EmitSynthesizedCXXCopyCtor (Address Dest, Address Src, const Expr *Exp) |
| void | enterFullExpression (const ExprWithCleanups *E) |
| void | enterNonTrivialFullExpression (const ExprWithCleanups *E) |
| Enter a full-expression with a non-trivial number of objects to clean up. More... | |
| void | EmitCXXThrowExpr (const CXXThrowExpr *E, bool KeepInsertionPoint=true) |
| void | EmitLambdaExpr (const LambdaExpr *E, AggValueSlot Dest) |
| RValue | EmitAtomicExpr (AtomicExpr *E) |
| llvm::Value * | EmitAnnotationCall (llvm::Value *AnnotationFn, llvm::Value *AnnotatedVal, StringRef AnnotationStr, SourceLocation Location) |
| Emit an annotation call (intrinsic or builtin). More... | |
| void | EmitVarAnnotations (const VarDecl *D, llvm::Value *V) |
| Emit local annotations for the local variable V, declared by D. More... | |
| Address | EmitFieldAnnotations (const FieldDecl *D, Address V) |
| Emit field annotations for the given field & value. More... | |
| bool | ConstantFoldsToSimpleInteger (const Expr *Cond, bool &Result, bool AllowLabels=false) |
| ConstantFoldsToSimpleInteger - If the specified expression does not fold to a constant, or if it does but contains a label, return false. More... | |
| bool | ConstantFoldsToSimpleInteger (const Expr *Cond, llvm::APSInt &Result, bool AllowLabels=false) |
| ConstantFoldsToSimpleInteger - If the specified expression does not fold to a constant, or if it does but contains a label, return false. More... | |
| void | EmitBranchOnBoolExpr (const Expr *Cond, llvm::BasicBlock *TrueBlock, llvm::BasicBlock *FalseBlock, uint64_t TrueCount) |
| EmitBranchOnBoolExpr - Emit a branch on a boolean condition (e.g. More... | |
| void | EmitNullabilityCheck (LValue LHS, llvm::Value *RHS, SourceLocation Loc) |
Given an assignment *LHS = RHS, emit a test that checks if RHS is nonnull, if LHS is marked _Nonnull. More... | |
| llvm::Value * | EmitCheckedInBoundsGEP (llvm::Value *Ptr, ArrayRef< llvm::Value * > IdxList, bool SignedIndices, bool IsSubtraction, SourceLocation Loc, const Twine &Name="") |
| Same as IRBuilder::CreateInBoundsGEP, but additionally emits a check to detect undefined behavior when the pointer overflow sanitizer is enabled. More... | |
| llvm::Constant * | EmitCheckTypeDescriptor (QualType T) |
| Emit a description of a type in a format suitable for passing to a runtime sanitizer handler. More... | |
| llvm::Value * | EmitCheckValue (llvm::Value *V) |
| Convert a value into a format suitable for passing to a runtime sanitizer handler. More... | |
| llvm::Constant * | EmitCheckSourceLocation (SourceLocation Loc) |
| Emit a description of a source location in a format suitable for passing to a runtime sanitizer handler. More... | |
| void | EmitCheck (ArrayRef< std::pair< llvm::Value *, SanitizerMask >> Checked, SanitizerHandler Check, ArrayRef< llvm::Constant * > StaticArgs, ArrayRef< llvm::Value * > DynamicArgs) |
| Create a basic block that will call a handler function in a sanitizer runtime with the provided arguments, and create a conditional branch to it. More... | |
| void | EmitCfiSlowPathCheck (SanitizerMask Kind, llvm::Value *Cond, llvm::ConstantInt *TypeId, llvm::Value *Ptr, ArrayRef< llvm::Constant * > StaticArgs) |
| Emit a slow path cross-DSO CFI check which calls __cfi_slowpath if Cond if false. More... | |
| void | EmitTrapCheck (llvm::Value *Checked) |
| Create a basic block that will call the trap intrinsic, and emit a conditional branch to it, for the -ftrapv checks. More... | |
| llvm::CallInst * | EmitTrapCall (llvm::Intrinsic::ID IntrID) |
| Emit a call to trap or debugtrap and attach function attribute "trap-func-name" if specified. More... | |
| void | EmitCfiCheckStub () |
| Emit a stub for the cross-DSO CFI check function. More... | |
| void | EmitCfiCheckFail () |
| Emit a cross-DSO CFI failure handling function. More... | |
| void | EmitNonNullArgCheck (RValue RV, QualType ArgType, SourceLocation ArgLoc, AbstractCallee AC, unsigned ParmNum) |
| Create a check for a function parameter that may potentially be declared as non-null. More... | |
| void | EmitCallArg (CallArgList &args, const Expr *E, QualType ArgType) |
| EmitCallArg - Emit a single call argument. More... | |
| void | EmitDelegateCallArg (CallArgList &args, const VarDecl *param, SourceLocation loc) |
| EmitDelegateCallArg - We are performing a delegate call; that is, the current function is delegating to another one. More... | |
| void | SetFPAccuracy (llvm::Value *Val, float Accuracy) |
| SetFPAccuracy - Set the minimum required accuracy of the given floating point operation, expressed as the maximum relative error in ulp. More... | |
| template<typename T > | |
| void | EmitCallArgs (CallArgList &Args, const T *CallArgTypeInfo, llvm::iterator_range< CallExpr::const_arg_iterator > ArgRange, AbstractCallee AC=AbstractCallee(), unsigned ParamsToSkip=0, EvaluationOrder Order=EvaluationOrder::Default) |
| EmitCallArgs - Emit call arguments for a function. More... | |
| void | EmitCallArgs (CallArgList &Args, ArrayRef< QualType > ArgTypes, llvm::iterator_range< CallExpr::const_arg_iterator > ArgRange, AbstractCallee AC=AbstractCallee(), unsigned ParamsToSkip=0, EvaluationOrder Order=EvaluationOrder::Default) |
| Address | EmitPointerWithAlignment (const Expr *Addr, LValueBaseInfo *BaseInfo=nullptr) |
| EmitPointerWithAlignment - Given an expression with a pointer type, emit the value and compute our best estimate of the alignment of the pointee. More... | |
| void | EmitSanitizerStatReport (llvm::SanitizerStatKind SSK) |
Public Member Functions inherited from clang::CodeGen::CodeGenTypeCache | |
| CharUnits | getIntSize () const |
| CharUnits | getIntAlign () const |
| CharUnits | getSizeSize () const |
| CharUnits | getSizeAlign () const |
| CharUnits | getPointerSize () const |
| CharUnits | getPointerAlign () const |
| llvm::CallingConv::ID | getRuntimeCC () const |
| llvm::CallingConv::ID | getBuiltinCC () const |
| unsigned | getASTAllocaAddressSpace () const |
Static Public Member Functions | |
| static void | destroyBlockInfos (CGBlockInfo *info) |
| Destroy a chain of block layouts. More... | |
| static bool | IsConstructorDelegationValid (const CXXConstructorDecl *Ctor) |
| Checks whether the given constructor is a valid subject for the complete-to-base constructor delegation optimization, i.e. More... | |
| static TypeEvaluationKind | getEvaluationKind (QualType T) |
| hasAggregateLLVMType - Return true if the specified AST type will map into an aggregate LLVM type or is void. More... | |
| static bool | hasScalarEvaluationKind (QualType T) |
| static bool | hasAggregateEvaluationKind (QualType T) |
| static unsigned | getAccessedFieldNo (unsigned Idx, const llvm::Constant *Elts) |
| getAccessedFieldNo - Given an encoded value and a result number, return the input field number being accessed. More... | |
| static bool | IsWrappedCXXThis (const Expr *E) |
Check if E is a C++ "this" pointer wrapped in value-preserving casts. More... | |
| static bool | ShouldNullCheckClassCastValue (const CastExpr *Cast) |
| static void | EmitOMPTargetDeviceFunction (CodeGenModule &CGM, StringRef ParentName, const OMPTargetDirective &S) |
| Emit device code for the target directive. More... | |
| static void | EmitOMPTargetParallelDeviceFunction (CodeGenModule &CGM, StringRef ParentName, const OMPTargetParallelDirective &S) |
| static void | EmitOMPTargetTeamsDeviceFunction (CodeGenModule &CGM, StringRef ParentName, const OMPTargetTeamsDirective &S) |
| static bool | ContainsLabel (const Stmt *S, bool IgnoreCaseStmts=false) |
| ContainsLabel - Return true if the statement contains a label in it. More... | |
| static bool | containsBreak (const Stmt *S) |
| containsBreak - Return true if the statement contains a break out of it. More... | |
| static bool | mightAddDeclToScope (const Stmt *S) |
| Determine if the given statement might introduce a declaration into the current scope, by being a (possibly-labelled) DeclStmt. More... | |
| static bool | isObjCMethodWithTypeParams (const ObjCMethodDecl *method) |
| template<typename T > | |
| static bool | isObjCMethodWithTypeParams (const T *) |
Public Attributes | |
| CodeGenModule & | CGM |
| const TargetInfo & | Target |
| LoopInfoStack | LoopStack |
| CGBuilderTy | Builder |
| VarBypassDetector | Bypasses |
| const Decl * | CurFuncDecl |
| CurFuncDecl - Holds the Decl for the current outermost non-closure context. More... | |
| const Decl * | CurCodeDecl |
| CurCodeDecl - This is the inner-most code context, which includes blocks. More... | |
| const CGFunctionInfo * | CurFnInfo |
| QualType | FnRetTy |
| llvm::Function * | CurFn |
| CGCoroInfo | CurCoro |
| GlobalDecl | CurGD |
| CurGD - The GlobalDecl for the current function being compiled. More... | |
| EHScopeStack::stable_iterator | PrologueCleanupDepth |
| PrologueCleanupDepth - The cleanup depth enclosing all the cleanups associated with the parameters. More... | |
| JumpDest | ReturnBlock |
| ReturnBlock - Unified return block. More... | |
| Address | ReturnValue |
| ReturnValue - The temporary alloca to hold the return value. More... | |
| llvm::AssertingVH < llvm::Instruction > | AllocaInsertPt |
| AllocaInsertPoint - This is an instruction in the entry block before which we prefer to insert allocas. More... | |
| CGCapturedStmtInfo * | CapturedStmtInfo |
| SanitizerSet | SanOpts |
| Sanitizers enabled for this function. More... | |
| bool | IsSanitizerScope |
| True if CodeGen currently emits code implementing sanitizer checks. More... | |
| bool | CurFuncIsThunk |
| In C++, whether we are code generating a thunk. More... | |
| bool | AutoreleaseResult |
| In ARC, whether we should autorelease the return value. More... | |
| bool | SawAsmBlock |
| Whether we processed a Microsoft-style asm block during CodeGen. More... | |
| const FunctionDecl * | CurSEHParent = nullptr |
| bool | IsOutlinedSEHHelper |
| True if the current function is an outlined SEH helper. More... | |
| const CodeGen::CGBlockInfo * | BlockInfo |
| llvm::Value * | BlockPointer |
| llvm::DenseMap< const VarDecl *, FieldDecl * > | LambdaCaptureFields |
| FieldDecl * | LambdaThisCaptureField |
| llvm::DenseMap< const VarDecl *, llvm::Value * > | NRVOFlags |
| A mapping from NRVO variables to the flags used to indicate when the NRVO has been applied to this variable. More... | |
| EHScopeStack | EHStack |
| llvm::SmallVector< char, 256 > | LifetimeExtendedCleanupStack |
| llvm::SmallVector< const JumpDest *, 2 > | SEHTryEpilogueStack |
| llvm::Instruction * | CurrentFuncletPad = nullptr |
| llvm::AllocaInst * | NormalCleanupDest |
| i32s containing the indexes of the cleanup destinations. More... | |
| unsigned | NextCleanupDestIndex |
| CGBlockInfo * | FirstBlockInfo |
| FirstBlockInfo - The head of a singly-linked-list of block layouts. More... | |
| llvm::BasicBlock * | EHResumeBlock |
| EHResumeBlock - Unified block containing a call to llvm.eh.resume. More... | |
| llvm::Value * | ExceptionSlot |
| The exception slot. More... | |
| llvm::AllocaInst * | EHSelectorSlot |
| The selector slot. More... | |
| SmallVector< Address, 1 > | SEHCodeSlotStack |
| A stack of exception code slots. More... | |
| llvm::Value * | SEHInfo = nullptr |
| Value returned by __exception_info intrinsic. More... | |
| SmallVector< llvm::Value *, 8 > | ObjCEHValueStack |
| ObjCEHValueStack - Stack of Objective-C exception values, used for rethrows. More... | |
Public Attributes inherited from clang::CodeGen::CodeGenTypeCache | |
| llvm::Type * | VoidTy |
| void More... | |
| llvm::IntegerType * | Int8Ty |
| i8, i16, i32, and i64 More... | |
| llvm::IntegerType * | Int16Ty |
| llvm::IntegerType * | Int32Ty |
| llvm::IntegerType * | Int64Ty |
| llvm::Type * | FloatTy |
| float, double More... | |
| llvm::Type * | DoubleTy |
| llvm::IntegerType * | IntTy |
| int More... | |
| union { | |
| llvm::IntegerType * IntPtrTy | |
| llvm::IntegerType * SizeTy | |
| llvm::IntegerType * PtrDiffTy | |
| }; | |
| intptr_t, size_t, and ptrdiff_t, which we assume are the same size. More... | |
| union { | |
| llvm::PointerType * VoidPtrTy | |
| llvm::PointerType * Int8PtrTy | |
| }; | |
| void* in address space 0 More... | |
| union { | |
| llvm::PointerType * VoidPtrPtrTy | |
| llvm::PointerType * Int8PtrPtrTy | |
| }; | |
| void** in address space 0 More... | |
| union { | |
| llvm::PointerType * AllocaVoidPtrTy | |
| llvm::PointerType * AllocaInt8PtrTy | |
| }; | |
| void* in alloca address space More... | |
| union { | |
| unsigned char IntSizeInBytes | |
| unsigned char IntAlignInBytes | |
| }; | |
| The size and alignment of the builtin C type 'int'. More... | |
| unsigned char | PointerWidthInBits |
| The width of a pointer into the generic address space. More... | |
| union { | |
| unsigned char PointerAlignInBytes | |
| unsigned char PointerSizeInBytes | |
| }; | |
| The size and alignment of a pointer into the generic address space. More... | |
| union { | |
| unsigned char SizeSizeInBytes | |
| unsigned char SizeAlignInBytes | |
| }; | |
| The size and alignment of size_t. More... | |
| unsigned | ASTAllocaAddressSpace |
| llvm::CallingConv::ID | RuntimeCC |
| llvm::CallingConv::ID | BuiltinCC |
Static Public Attributes | |
| static Destroyer | destroyCXXObject |
| static Destroyer | destroyARCStrongImprecise |
| static Destroyer | destroyARCStrongPrecise |
| static Destroyer | destroyARCWeak |
| static Destroyer | emitARCIntrinsicUse |
Friends | |
| class | CGCXXABI |
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code.
Definition at line 137 of file CodeGenFunction.h.
| typedef llvm::function_ref<std::pair<llvm::Value *, llvm::Value *> CodeGenFunction &, const OMPExecutableDirective &S, Address LB, Address UB)> clang::CodeGen::CodeGenFunction::CodeGenDispatchBoundsTy |
Definition at line 196 of file CodeGenFunction.h.
| typedef llvm::function_ref<std::pair<LValue, LValue> CodeGenFunction &, const OMPExecutableDirective &S)> clang::CodeGen::CodeGenFunction::CodeGenLoopBoundsTy |
Definition at line 190 of file CodeGenFunction.h.
| typedef llvm::function_ref<void(CodeGenFunction &, const OMPLoopDirective &, JumpDest)> clang::CodeGen::CodeGenFunction::CodeGenLoopTy |
Definition at line 182 of file CodeGenFunction.h.
| typedef llvm::function_ref<void(CodeGenFunction &, SourceLocation, const unsigned, const bool)> clang::CodeGen::CodeGenFunction::CodeGenOrderedTy |
Definition at line 185 of file CodeGenFunction.h.
| typedef std::pair<llvm::Value *, llvm::Value *> clang::CodeGen::CodeGenFunction::ComplexPairTy |
Definition at line 171 of file CodeGenFunction.h.
| typedef llvm::DenseMap<const Decl *, Address> clang::CodeGen::CodeGenFunction::DeclMapTy |
Definition at line 684 of file CodeGenFunction.h.
| typedef void clang::CodeGen::CodeGenFunction::Destroyer(CodeGenFunction &CGF, Address addr, QualType ty) |
Definition at line 1490 of file CodeGenFunction.h.
| typedef void clang::CodeGen::CodeGenFunction::SpecialInitFn(CodeGenFunction &Init, const VarDecl &D, llvm::Value *Address) |
Definition at line 2396 of file CodeGenFunction.h.
| typedef const llvm::function_ref<void(CodeGenFunction & , llvm::Value * , const OMPTaskDataTy & )> clang::CodeGen::CodeGenFunction::TaskGenTy |
Definition at line 2769 of file CodeGenFunction.h.
| typedef llvm::SmallPtrSet<const CXXRecordDecl *, 4> clang::CodeGen::CodeGenFunction::VisitedVirtualBasesSetTy |
Definition at line 1699 of file CodeGenFunction.h.
Definition at line 1697 of file CodeGenFunction.h.
| anonymous enum |
An enumeration which makes it easier to specify whether or not an operation is a subtraction.
| Enumerator | |
|---|---|
| NotSubtraction | |
| IsSubtraction | |
Definition at line 3594 of file CodeGenFunction.h.
| Enumerator | |
|---|---|
| CFITCK_VCall | |
| CFITCK_NVCall | |
| CFITCK_DerivedCast | |
| CFITCK_UnrelatedCast | |
| CFITCK_ICall | |
Definition at line 1715 of file CodeGenFunction.h.
|
strong |
Definition at line 3739 of file CodeGenFunction.h.
Situations in which we might emit a check for the suitability of a pointer or glvalue.
Definition at line 2315 of file CodeGenFunction.h.
| CodeGenFunction::CodeGenFunction | ( | CodeGenModule & | cgm, |
| bool | suppressNewContext = false |
||
| ) |
Definition at line 62 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CGCXXABI::getMangleContext(), and clang::MangleContext::startNewFunction().
| CodeGenFunction::~CodeGenFunction | ( | ) |
Definition at line 107 of file CodeGenFunction.cpp.
References CGM, CurFn, destroyBlockInfos(), FirstBlockInfo, getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and LifetimeExtendedCleanupStack.
| void CodeGenFunction::ActivateCleanupBlock | ( | EHScopeStack::stable_iterator | Cleanup, |
| llvm::Instruction * | DominatingIP | ||
| ) |
ActivateCleanupBlock - Activates an initially-inactive cleanup.
Activate a cleanup that was created in an inactivated state.
Cannot be used to resurrect a deactivated cleanup.
| DominatingIP | - An instruction which is known to dominate the current IP (if set) and which lies along all paths of execution between the current IP and the the point at which the cleanup comes into scope. |
Definition at line 1218 of file CGCleanup.cpp.
References ForActivation, and SetupCleanupBlockActivation().
Referenced by pushCleanupAfterFullExpr().
| llvm::GlobalVariable * CodeGenFunction::AddInitializerToStaticVarDecl | ( | const VarDecl & | D, |
| llvm::GlobalVariable * | GV | ||
| ) |
AddInitializerToStaticVarDecl - Add the initializer for 'D' to the global variable that has already been created for it.
If the initializer has a different type than GV does, this may free GV and return a different one. Otherwise it just returns GV.
Definition at line 308 of file CGDecl.cpp.
References CGM, clang::frontend::CPlusPlus, clang::CodeGen::CodeGenModule::EmitConstantInit(), EmitCXXGuardedInit(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), clang::CodeGen::CodeGenModule::getContext(), clang::VarDecl::getInit(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::ASTContext::getTargetAddressSpace(), clang::ValueDecl::getType(), hasNontrivialDestruction(), HaveInsertPoint(), and clang::CodeGen::CodeGenModule::isTypeConstant().
Referenced by EmitStaticVarDecl().
| CGCallee CodeGenFunction::BuildAppleKextVirtualCall | ( | const CXXMethodDecl * | MD, |
| NestedNameSpecifier * | Qual, | ||
| llvm::Type * | Ty | ||
| ) |
BuildAppleKextVirtualCall - This routine is to support gcc's kext ABI making indirect call to virtual functions.
It makes the call through indexing into the vtable.
Definition at line 292 of file CGCXX.cpp.
References BuildAppleKextVirtualCall(), BuildAppleKextVirtualDestructorCall(), clang::Dtor_Complete, clang::Type::getAs(), clang::NestedNameSpecifier::getAsType(), clang::RecordType::getDecl(), clang::NestedNameSpecifier::getKind(), and clang::NestedNameSpecifier::TypeSpec.
Referenced by EmitCXXMemberOrOperatorMemberCallExpr().
| CGCallee CodeGenFunction::BuildAppleKextVirtualDestructorCall | ( | const CXXDestructorDecl * | DD, |
| CXXDtorType | Type, | ||
| const CXXRecordDecl * | RD | ||
| ) |
BuildVirtualCall - This routine makes indirect vtable call for call to virtual destructors.
It returns 0 if it could not do it.
Definition at line 313 of file CGCXX.cpp.
References clang::CodeGen::CodeGenTypes::arrangeCXXStructorDeclaration(), BuildAppleKextVirtualCall(), CGM, clang::CodeGen::Complete, clang::Dtor_Base, clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CodeGenModule::getTypes(), clang::CXXMethodDecl::isVirtual(), and clang::CodeGen::Type.
Referenced by BuildAppleKextVirtualCall().
| void CodeGenFunction::BuildBlockRelease | ( | llvm::Value * | DeclPtr, |
| BlockFieldFlags | flags | ||
| ) |
Definition at line 2384 of file CGBlocks.cpp.
References clang::CodeGen::BLOCK_FIELD_IS_BYREF, BuildBlockRelease(), Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNounwindRuntimeCall(), clang::CodeGen::BlockFieldFlags::getBitMask(), clang::CodeGen::CodeGenModule::getBlockObjectDispose(), clang::CodeGen::CodeGenTypeCache::Int32Ty, and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by BuildBlockRelease(), and GenerateDestroyHelperFunction().
| QualType CodeGenFunction::BuildFunctionArgList | ( | GlobalDecl | GD, |
| FunctionArgList & | Args | ||
| ) |
Definition at line 1078 of file CodeGenFunction.cpp.
References clang::CodeGen::CGCXXABI::addImplicitStructorParams(), clang::CodeGen::CGCXXABI::buildThisParam(), CGM, clang::ImplicitParamDecl::Create(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::GlobalDecl::getCtorType(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::GlobalDecl::getDecl(), clang::FunctionDecl::getReturnType(), clang::ASTContext::getSizeType(), clang::CXXMethodDecl::getThisType(), getTypes(), clang::CodeGen::CGCXXABI::hasMostDerivedReturn(), clang::CodeGen::CGCXXABI::HasThisReturn(), clang::CodeGen::CodeGenTypes::inheritingCtorHasParams(), clang::CXXMethodDecl::isInstance(), clang::ImplicitParamDecl::Other, clang::FunctionDecl::parameters(), and clang::ASTContext::VoidPtrTy.
Referenced by EmitInlinedInheritingCXXConstructorCall(), and GenerateCode().
| llvm::Value * CodeGenFunction::BuildVector | ( | ArrayRef< llvm::Value * > | Ops | ) |
Definition at line 7075 of file CGBuiltin.cpp.
References Builder.
Referenced by EmitX86BuiltinExpr().
| void CodeGenFunction::checkTargetFeatures | ( | const CallExpr * | E, |
| const FunctionDecl * | TargetDecl | ||
| ) |
Definition at line 2135 of file CodeGenFunction.cpp.
References clang::ASTContext::BuiltinInfo, CGM, CurFuncDecl, clang::FunctionDecl::getBuiltinID(), clang::CodeGen::CodeGenModule::getContext(), clang::NamedDecl::getDeclName(), clang::CodeGen::CodeGenModule::getDiags(), clang::CodeGen::CodeGenModule::getFunctionFeatureMap(), clang::CallExpr::getLocStart(), clang::Builtin::Context::getRequiredFeatures(), clang::Decl::hasAttr(), hasRequiredFeatures(), and clang::DiagnosticsEngine::Report().
| bool CodeGenFunction::ConstantFoldsToSimpleInteger | ( | const Expr * | Cond, |
| bool & | ResultBool, | ||
| bool | AllowLabels = false |
||
| ) |
ConstantFoldsToSimpleInteger - If the specified expression does not fold to a constant, or if it does but contains a label, return false.
If it constant folds return true and set the boolean result in Result.
Definition at line 1327 of file CodeGenFunction.cpp.
Referenced by EmitBranchOnBoolExpr(), emitCommonOMPTargetDirective(), EmitIfStmt(), clang::CodeGen::CGOpenMPRuntime::emitOMPIfClause(), EmitOMPSimdDirective(), and EmitSwitchStmt().
| bool CodeGenFunction::ConstantFoldsToSimpleInteger | ( | const Expr * | Cond, |
| llvm::APSInt & | ResultInt, | ||
| bool | AllowLabels = false |
||
| ) |
ConstantFoldsToSimpleInteger - If the specified expression does not fold to a constant, or if it does but contains a label, return false.
If it constant folds return true and set the folded value.
Definition at line 1341 of file CodeGenFunction.cpp.
References ContainsLabel(), clang::Expr::EvaluateAsInt(), and getContext().
containsBreak - Return true if the statement contains a break out of it.
If the statement (recursively) contains a switch or loop with a break inside of it, this is fine.
Definition at line 1280 of file CodeGenFunction.cpp.
References clang::Stmt::children().
Referenced by CollectStatementsForCase().
ContainsLabel - Return true if the statement contains a label in it.
If this statement is not executed normally, it not containing a label means that we can just remove the code.
Definition at line 1248 of file CodeGenFunction.cpp.
References clang::Stmt::children().
Referenced by CollectStatementsForCase(), ConstantFoldsToSimpleInteger(), EmitAutoVarInit(), EmitIfStmt(), EmitStmt(), and FindCaseStatementsForValue().
| RValue CodeGenFunction::convertTempToRValue | ( | Address | addr, |
| QualType | type, | ||
| SourceLocation | loc | ||
| ) |
Given the address of a temporary variable, produce an r-value of its type.
Definition at line 4529 of file CGExpr.cpp.
References clang::CodeGen::LValue::asAggregateRValue(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitAtomicExpr().
| llvm::Type * CodeGenFunction::ConvertType | ( | QualType | T | ) |
Definition at line 191 of file CodeGenFunction.cpp.
References CGM, clang::CodeGen::CodeGenTypes::ConvertType(), and clang::CodeGen::CodeGenModule::getTypes().
Referenced by AdjustObjCObjectType(), ConvertType(), CreateIRTemp(), EmitAArch64BuiltinExpr(), emitArgumentDemotion(), EmitARMBuiltinExpr(), emitArrayLength(), EmitAsmStmt(), EmitCommonNeonBuiltinExpr(), EmitCommonNeonSISDBuiltinExpr(), EmitCXXTypeidExpr(), EmitDeleteCall(), EmitDynamicCastToNull(), EmitLambdaDelegatingInvokeBody(), clang::CodeGen::CGCXXABI::EmitMemberDataPointerAddress(), EmitObjCBoxedExpr(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), EmitObjCIsaExpr(), EmitObjCStringLiteral(), emitOMPArraySectionBase(), EmitPPCBuiltinExpr(), EmitSystemZBuiltinExpr(), clang::CodeGen::emitTaskInit(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitWebAssemblyBuiltinExpr(), emitWritebackArg(), EmitX86BuiltinExpr(), generateObjCGetterBody(), GenerateSEHFilterFunction(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), GetAddressOfDirectBaseInCompleteClass(), getItaniumDynamicCastFn(), LookupNeonLLVMIntrinsic(), MakeAtomicCmpXchgValue(), and performTypeAdjustment().
|
inline |
Definition at line 1808 of file CodeGenFunction.h.
References ConvertType(), and getContext().
| llvm::Type * CodeGenFunction::ConvertTypeForMem | ( | QualType | T | ) |
Definition at line 187 of file CodeGenFunction.cpp.
References CGM, clang::CodeGen::CodeGenTypes::ConvertTypeForMem(), and clang::CodeGen::CodeGenModule::getTypes().
Referenced by CreateMemTemp(), createPlaceholderSlot(), createRuntimeShuffleFunction(), emitAddrOfVarFromArray(), EmitAnyExprToExn(), EmitAsmStmt(), EmitAtomicExpr(), EmitAutoVarAlloca(), EmitCapturedLocals(), clang::CodeGen::ReductionCodeGen::emitCleanups(), emitCopyToScratchpad(), EmitCXXDeleteExpr(), EmitCXXNewExpr(), clang::CodeGen::ReductionCodeGen::emitInitialization(), emitInterWarpCopyFunction(), EmitMaterializeTemporaryExpr(), EmitNewArrayInitializer(), emitOMPArraySectionBase(), EmitOMPReductionClauseInit(), EmitOMPUseDevicePtrClause(), EmitParmDecl(), emitPrivatesInit(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceScratchpadFunction(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), emitShuffleAndReduceFunction(), clang::CodeGen::emitTaskCall(), clang::CodeGen::emitThreadPrivateVarDefinition(), emitVoidPtrVAArg(), EmitX86_64VAArgFromMemory(), clang::CodeGen::getAddrOfArtificialThreadPrivate(), getBlockByrefInfo(), getRangeForType(), InitCatchParam(), and loadToBegin().
|
inline |
CreateAggTemp - Create a temporary memory object for the given aggregate type.
Definition at line 2001 of file CodeGenFunction.h.
References CreateMemTemp(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, clang::CodeGen::AggValueSlot::forAddr(), clang::QualType::getQualifiers(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::CodeGen::AggValueSlot::IsNotDestructed, and Name.
Referenced by EmitAnyExpr(), and EmitAnyExprToTemp().
| llvm::Constant * CodeGenFunction::createAtExitStub | ( | const VarDecl & | VD, |
| llvm::Constant * | dtor, | ||
| llvm::Constant * | addr | ||
| ) |
Create a stub function, suitable for being passed to atexit, which passes the given address to the given destructor function.
Definition at line 196 of file CGDeclCXX.cpp.
References clang::CodeGen::CodeGenTypes::arrangeNullaryFunction(), Builder, CGM, clang::CodeGen::CodeGenModule::CreateGlobalInitOrDestructFunction(), FinishFunction(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::Decl::getLocation(), clang::CodeGen::CGCXXABI::getMangleContext(), clang::CodeGen::CodeGenModule::getTypes(), clang::MangleContext::mangleDynamicAtExitDestructor(), StartFunction(), clang::CodeGen::CodeGenTypeCache::VoidTy, and clang::ASTContext::VoidTy.
Referenced by emitGlobalDtorWithTLRegDtor(), and registerGlobalDtorWithAtExit().
|
inline |
createBasicBlock - Create an LLVM basic block.
Definition at line 1832 of file CodeGenFunction.h.
References clang::Create(), and getLLVMContext().
Referenced by CreateNormalEntry(), emitArrayDestroy(), emitAtomicCmpXchg(), emitAtomicCmpXchgFailureSet(), EmitAtomicExpr(), EmitAtomicOp(), clang::CodeGen::emitBarrierCall(), EmitBlockWithFallThrough(), EmitBranchOnBoolExpr(), clang::CodeGen::emitCancellationPointCall(), EmitCaseStmt(), EmitCaseStmtRange(), emitCatchDispatchBlock(), EmitCleanup(), EmitCoroutineBody(), clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr(), EmitCXXAggrConstructorCall(), EmitCXXDeleteExpr(), EmitCXXForRangeStmt(), EmitCXXNewExpr(), EmitCXXThrowExpr(), EmitDoStmt(), EmitDynamicCast(), EmitDynamicCastToNull(), emitFilterDispatchBlock(), EmitForStmt(), EmitIfStmt(), emitInterWarpCopyFunction(), EmitLandingPad(), EmitMustTailThunk(), EmitNewArrayInitializer(), emitNonZeroVLAInit(), EmitObjCForCollectionStmt(), EmitOMPAggregateAssign(), EmitOMPAggregateInit(), EmitOMPAggregateReduction(), EmitOMPCopyinClause(), clang::CodeGen::CGOpenMPRuntime::emitOMPIfClause(), EmitOMPInnerLoop(), EmitOMPLastprivateClauseFinal(), EmitOMPLinearClauseFinal(), EmitOMPSimdDirective(), emitPostUpdateForReductionClause(), emitReduceScratchpadFunction(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), emitShuffleAndReduceFunction(), emitSuspendExpression(), EmitSwitchStmt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitTypeCheck(), EmitTypeidFromVTable(), EmitVTablePtrCheckForCast(), EmitWhileStmt(), emitWriteback(), emitWritebackArg(), EnsureInsertPoint(), clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), EnterCXXTryStmt(), EnterSEHTryStmt(), ExitCXXTryStmt(), ExitSEHTryStmt(), GenerateCXXGlobalInitFunc(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), getEHDispatchBlock(), getEHResumeBlock(), GetIndirectGotoBlock(), getJumpDestForLabel(), getJumpDestInCurrentScope(), getMSVCDispatchBlock(), getTerminateHandler(), getTerminateLandingPad(), getUnreachableBlock(), PerformReturnAdjustment(), and StartFunction().
| Address CodeGenFunction::CreateDefaultAlignTempAlloca | ( | llvm::Type * | Ty, |
| const Twine & | Name = "tmp" |
||
| ) |
CreateDefaultAlignedTempAlloca - This creates an alloca with the default ABI alignment of the given LLVM type.
CreateDefaultAlignTempAlloca - This creates an alloca with the default alignment of the corresponding LLVM type, which is not guaranteed to be related in any way to the expected alignment of an AST type that might have been lowered to Ty.
IMPORTANT NOTE: This is not generally the right alignment for any given AST type that happens to have been lowered to the given IR type. This should only ever be used for function-local, IR-driven manipulations like saving and restoring a value. Do not hand this address off to arbitrary IRGen routines, and especially do not pass it as an argument to a function that might expect a properly ABI-aligned value.
Definition at line 103 of file CGExpr.cpp.
References CGM, CreateTempAlloca(), clang::CharUnits::fromQuantity(), and clang::CodeGen::CodeGenModule::getDataLayout().
Referenced by StartFunction().
CreateIRTemp - Create a temporary IR object of the given type, with appropriate alignment.
This routine should only be used when an temporary value needs to be stored into an alloca (for example, to avoid explicit PHI construction), but the type is the IR type, not the type appropriate for storing in memory.
That is, this is exactly equivalent to CreateMemTemp, but calling ConvertType instead of ConvertTypeForMem.
Definition at line 118 of file CGExpr.cpp.
References ConvertType(), CreateTempAlloca(), getContext(), and clang::ASTContext::getTypeAlignInChars().
Referenced by EmitInlinedInheritingCXXConstructorCall(), and StartFunction().
| Address CodeGenFunction::CreateMemTemp | ( | QualType | T, |
| const Twine & | Name = "tmp", |
||
| bool | CastToDefaultAddrSpace = true |
||
| ) |
CreateMemTemp - Create a temporary memory object of the given type, with appropriate alignment.
Cast it to the default address space if CastToDefaultAddrSpace is true.
Definition at line 123 of file CGExpr.cpp.
References getContext().
Referenced by clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), castToBase(), castValueFromUintptr(), CreateAggTemp(), createReferenceTemporary(), createSectionLVal(), EmitAArch64BuiltinExpr(), EmitAggExprToLValue(), EmitARMBuiltinExpr(), EmitAtomicExpr(), EmitCompoundStmtWithoutScope(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitDoacrossOrdered(), EmitObjCBoxedExpr(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), emitOffloadingArrays(), emitOutlinedFunctionPrologue(), EmitParmDecl(), emitReduceScratchpadFunction(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitSEHExceptionCodeSave(), emitShuffleAndReduceFunction(), clang::CodeGen::emitTaskCall(), clang::CodeGen::emitThreadIDAddress(), EmitValToTemp(), EmitX86BuiltinExpr(), EnterSEHTryStmt(), GenerateBlockFunction(), GenerateOpenMPCapturedVars(), InitCapturedStruct(), and setBlockContextParameter().
| Address CodeGenFunction::CreateMemTemp | ( | QualType | T, |
| CharUnits | Align, | ||
| const Twine & | Name = "tmp", |
||
| bool | CastToDefaultAddrSpace = true |
||
| ) |
Definition at line 130 of file CGExpr.cpp.
References ConvertTypeForMem(), and CreateTempAlloca().
| llvm::AllocaInst * CodeGenFunction::CreateTempAlloca | ( | llvm::Type * | Ty, |
| const Twine & | Name = "tmp", |
||
| llvm::Value * | ArraySize = nullptr |
||
| ) |
CreateTempAlloca - This creates an alloca and inserts it into the entry block if ArraySize is nullptr, otherwise inserts it at the current insertion point of the builder.
The caller is responsible for setting an appropriate alignment on the alloca.
ArraySize is the number of array elements to be allocated if it is not nullptr.
LangAS::Default is the address space of pointers to local variables and temporaries, as exposed in the source language. In certain configurations, this is not the same as the alloca address space, and a cast is needed to lift the pointer from the alloca AS into LangAS::Default. This can happen when the target uses a restricted address space for the stack but the source language requires LangAS::Default to be a generic address space. The latter condition is common for most programming languages; OpenCL is an exception in that LangAS::Default is the private address space, which naturally maps to the stack.
Because the address of a temporary is often exposed to the program in various ways, this function will perform the cast by default. The cast may be avoided by passing false as CastToDefaultAddrSpace; this is more efficient if the caller knows that the address will not be exposed.
Definition at line 90 of file CGExpr.cpp.
References AllocaInsertPt, Builder, CGM, clang::CodeGen::CodeGenModule::getDataLayout(), and Name.
Referenced by CreateDefaultAlignTempAlloca(), CreateIRTemp(), CreateMemTemp(), CreateTempAlloca(), CreateTempAllocaForCoercion(), EmitAutoVarAlloca(), EmitNewArrayInitializer(), EmitNVPTXDevicePrintfCallExpr(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), emitWritebackArg(), clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), enterBlockScope(), GenerateBlockFunction(), getEHSelectorSlot(), getExceptionSlot(), InitCatchParam(), initFullExprCleanup(), clang::CodeGen::DominatingLLVMValue::save(), and SetupCleanupBlockActivation().
| Address CodeGenFunction::CreateTempAlloca | ( | llvm::Type * | Ty, |
| CharUnits | Align, | ||
| const Twine & | Name = "tmp", |
||
| llvm::Value * | ArraySize = nullptr, |
||
| bool | CastToDefaultAddrSpace = true |
||
| ) |
CreateTempAlloca - This creates a alloca and inserts it into the entry block.
Definition at line 63 of file CGExpr.cpp.
References AllocaInsertPt, Builder, CreateTempAlloca(), clang::LangAS::Default, clang::CodeGen::CodeGenTypeCache::getASTAllocaAddressSpace(), getContext(), clang::CharUnits::getQuantity(), clang::ASTContext::getTargetAddressSpace(), getTargetHooks(), and clang::CodeGen::TargetCodeGenInfo::performAddrSpaceCast().
|
inline |
Definition at line 1478 of file CodeGenFunction.h.
References CurSEHParent.
Referenced by getInvokeDestImpl().
| void CodeGenFunction::DeactivateCleanupBlock | ( | EHScopeStack::stable_iterator | Cleanup, |
| llvm::Instruction * | DominatingIP | ||
| ) |
DeactivateCleanupBlock - Deactivates the given cleanup block.
Deactive a cleanup that was created in an active state.
The block cannot be reactivated. Pops it if it's the top of the stack.
| DominatingIP | - An instruction which is known to dominate the current IP (if set) and which lies along all paths of execution between the current IP and the the point at which the cleanup comes into scope. |
Definition at line 1230 of file CGCleanup.cpp.
References Builder, ForDeactivation, and SetupCleanupBlockActivation().
Referenced by deactivateArgCleanupsBeforeCall(), EmitAnyExprToExn(), EmitCXXNewExpr(), EmitNewArrayInitializer(), and pushCleanupAfterFullExpr().
|
static |
Destroy a chain of block layouts.
Definition at line 690 of file CGBlocks.cpp.
References clang::CodeGen::CGBlockInfo::NextBlockInfo.
Referenced by ~CodeGenFunction().
|
inline |
Definition at line 1444 of file CodeGenFunction.h.
Referenced by emitCopyToScratchpad(), emitDestructorsFunction(), emitInterWarpCopyFunction(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceFiniFunction(), emitReduceInitFunction(), emitReduceScratchpadFunction(), emitShuffleAndReduceFunction(), emitTaskDupFunction(), emitTaskPrivateMappingFunction(), and GenerateOpenMPCapturedStmtFunction().
Definition at line 5301 of file CGBuiltin.cpp.
References Builder, ceil, CGM, clang::CodeGen::CodeGenTypes::ConvertType(), ConvertType(), clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateDefaultAlignedStore(), clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), clang::CodeGen::CodeGenTypeCache::DoubleTy, EmitAArch64CompareBuiltinExpr(), EmitAArch64TblBuiltinExpr(), EmitAnyExprToMem(), EmitCommonNeonBuiltinExpr(), EmitCommonNeonSISDBuiltinExpr(), EmitNeonCall(), EmitNeonRShiftImm(), EmitNeonSplat(), EmitNounwindRuntimeCall(), EmitScalarExpr(), EmitSpecialRegisterBuiltin(), findNeonIntrinsicInMap(), clang::NeonTypeFlags::Float32, clang::NeonTypeFlags::Float64, clang::CodeGen::CodeGenTypeCache::FloatTy, floor, fma, clang::CharUnits::fromQuantity(), clang::ASTContext::GE_None, clang::CallExpr::getArg(), clang::ASTContext::GetBuiltinType(), clang::CallExpr::getCallReturnType(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CallExpr::getDirectCallee(), clang::NeonTypeFlags::getEltType(), GetFloatNeonType(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), GetNeonType(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::getTypeSize(), getTypeSize(), getValue(), ID, clang::CodeGen::CodeGenTypeCache::Int16Ty, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::CodeGen::Address::invalid(), clang::Expr::isIntegerConstantExpr(), clang::NeonTypeFlags::isPoly(), clang::NeonTypeFlags::isQuad(), clang::NeonTypeFlags::isUnsigned(), min(), nearbyint, P, prefetch(), rint, rotate(), round, clang::CodeGen::CodeGenTypeCache::SizeTy, sqrt, trunc, clang::CodeGen::Type, vectorWrapScalar16(), and clang::CodeGen::CodeGenTypeCache::VoidPtrTy.
Referenced by EmitTargetArchBuiltinExpr().
| Value * CodeGenFunction::EmitAArch64CompareBuiltinExpr | ( | llvm::Value * | Op, |
| llvm::Type * | Ty, | ||
| const llvm::CmpInst::Predicate | Fp, | ||
| const llvm::CmpInst::Predicate | Ip, | ||
| const llvm::Twine & | Name = "" |
||
| ) |
Definition at line 4213 of file CGBuiltin.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), and clang::CodeGen::Type.
Referenced by EmitAArch64BuiltinExpr().
Definition at line 320 of file CGExprComplex.cpp.
References Builder, clang::Type::castAs(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), getContext(), clang::CodeGen::Address::getName(), and clang::ASTContext::getTypeSizeInChars().
Definition at line 314 of file CGExprComplex.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateStructGEP(), clang::CodeGen::Address::getName(), and clang::CharUnits::Zero().
| void CodeGenFunction::EmitAggExpr | ( | const Expr * | E, |
| AggValueSlot | Slot | ||
| ) |
EmitAggExpr - Emit the computation of the specified expression of aggregate type.
The result is computed into the given slot, which may be null to indicate that the value is not needed.
The result is computed into DestPtr. Note that if DestPtr is null, the value of the aggregate expression is not needed. If VolatileDest is true, DestPtr cannot be 0.
Definition at line 1539 of file CGExprAgg.cpp.
References CheckAggExprForMemSetUse(), clang::CodeGen::AggValueSlot::getAddress(), clang::Expr::getType(), hasAggregateEvaluationKind(), clang::CodeGen::AggValueSlot::isIgnored(), and clang::CodeGen::Address::isValid().
Referenced by EmitAggExprToLValue(), EmitAnyExpr(), EmitAnyExprToMem(), EmitAtomicInit(), EmitBaseInitializer(), EmitCompoundStmtWithoutScope(), EmitCXXConstructExpr(), EmitDeclInit(), EmitDelegatingCXXConstructorCall(), EmitExprAsInit(), EmitInitializerForField(), EmitMaterializeTemporaryExpr(), EmitNewArrayInitializer(), emitPseudoObjectExpr(), EmitReturnStmt(), GenerateObjCAtomicGetterCopyHelperFunction(), GenerateObjCCtorDtorMethod(), InitCatchParam(), and StoreAnyExprIntoOneUnit().
EmitAggExprToLValue - Emit the computation of the specified expression of aggregate type into a temporary LValue.
Definition at line 1551 of file CGExprAgg.cpp.
References CreateMemTemp(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), clang::CodeGen::AggValueSlot::forLValue(), clang::Expr::getType(), hasAggregateEvaluationKind(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::CodeGen::AggValueSlot::IsNotDestructed, and MakeAddrLValue().
|
inline |
EmitAggregateCopy - Emit an aggregate assignment.
The difference to EmitAggregateCopy is that tail padding is not copied. This is required for correctness when assigning non-POD structures in C++.
Definition at line 2067 of file CodeGenFunction.h.
References EmitAggregateCopy(), and hasVolatileMember().
Referenced by EmitCXXMemberOrOperatorMemberCallExpr(), EmitOMPCopy(), EmitOMPFirstprivateClause(), and emitPrivatesInit().
| void CodeGenFunction::EmitAggregateCopy | ( | Address | DestPtr, |
| Address | SrcPtr, | ||
| QualType | EltTy, | ||
| bool | isVolatile = false, |
||
| bool | isAssignment = false |
||
| ) |
EmitAggregateCopy - Emit an aggregate copy.
| isVolatile | - True iff either the source or the destination is volatile. |
| isAssignment | - If false, allow padding to be copied. This often yields more efficient. |
Definition at line 1561 of file CGExprAgg.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateMemCpy(), emitArrayLength(), clang::CodeGen::CGObjCRuntime::EmitGCMemmoveCollectable(), clang::Type::getAs(), clang::ASTContext::getBaseElementType(), getContext(), clang::RecordType::getDecl(), clang::CodeGen::CodeGenModule::getLangOpts(), getLangOpts(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::CodeGenModule::getTBAAStructInfo(), clang::ASTContext::getTypeInfoDataSizeInChars(), clang::ASTContext::getTypeInfoInChars(), clang::RecordDecl::hasObjectMember(), clang::CXXRecordDecl::hasTrivialCopyAssignment(), clang::CXXRecordDecl::hasTrivialCopyConstructor(), clang::CXXRecordDecl::hasTrivialMoveAssignment(), clang::CXXRecordDecl::hasTrivialMoveConstructor(), clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::Type::isAnyComplexType(), clang::Type::isArrayType(), clang::CXXRecordDecl::isEmpty(), clang::TagDecl::isUnion(), clang::LangOptions::NonGC, and clang::CodeGen::CodeGenTypeCache::SizeTy.
Referenced by EmitAggregateAssign(), EmitAggregateCopyCtor(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitMemberInitializer(), clang::CodeGen::emitTaskInit(), generateObjCGetterBody(), and InitCatchParam().
|
inline |
Definition at line 2073 of file CodeGenFunction.h.
References EmitAggregateCopy().
Referenced by EmitCXXConstructorCall().
|
inline |
Definition at line 2369 of file CodeGenFunction.h.
References Builder, CGM, and clang::CodeGen::CodeGenModule::getDataLayout().
Referenced by emitAlignedClause().
|
inline |
Definition at line 2516 of file CodeGenFunction.h.
References Builder, CGM, and clang::CodeGen::CodeGenModule::getDataLayout().
Definition at line 8557 of file CGBuiltin.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateStore(), emitBinaryBuiltin(), emitFPIntBuiltin(), EmitPointerWithAlignment(), emitRangedBuiltin(), EmitScalarExpr(), EmitSpecialRegisterBuiltin(), emitTernaryBuiltin(), emitUnaryBuiltin(), clang::CallExpr::getArg(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::Address::getPointer(), I, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::Type, and X.
Referenced by EmitTargetArchBuiltinExpr().
| llvm::Value * CodeGenFunction::EmitAnnotationCall | ( | llvm::Value * | AnnotationFn, |
| llvm::Value * | AnnotatedVal, | ||
| StringRef | AnnotationStr, | ||
| SourceLocation | Location | ||
| ) |
Emit an annotation call (intrinsic or builtin).
Definition at line 2031 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), clang::CodeGen::CodeGenModule::EmitAnnotationString(), clang::CodeGen::CodeGenModule::EmitAnnotationUnit(), and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by EmitFieldAnnotations(), and EmitVarAnnotations().
| RValue CodeGenFunction::EmitAnyExpr | ( | const Expr * | E, |
| AggValueSlot | aggSlot = AggValueSlot::ignored(), |
||
| bool | ignoreResult = false |
||
| ) |
EmitAnyExpr - Emit code to compute the specified expression which can have any type.
The result is returned as an RValue struct. If this is an aggregate expression, the aggloc/agglocvolatile arguments indicate where the result should be returned.
| ignoreResult | True if the resulting value isn't used. |
The result is returned as an RValue struct. If this is an aggregate expression, AggSlot indicates where the result should be returned.
Definition at line 169 of file CGExpr.cpp.
References clang::CodeGen::AggValueSlot::asRValue(), CreateAggTemp(), EmitAggExpr(), EmitComplexExpr(), EmitScalarExpr(), clang::CodeGen::RValue::get(), clang::CodeGen::RValue::getComplex(), getEvaluationKind(), clang::Expr::getType(), clang::CodeGen::AggValueSlot::isIgnored(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(), EmitAnyExprToTemp(), EmitIgnoredExpr(), EmitObjCBoxedExpr(), EmitOMPAtomicCaptureExpr(), EmitOMPAtomicUpdateExpr(), EmitOMPAtomicWriteExpr(), emitPseudoObjectExpr(), EmitReturnStmt(), emitSimdlenSafelenClause(), emitSuspendExpression(), and GenerateObjCAtomicGetterCopyHelperFunction().
Definition at line 364 of file CGException.cpp.
References Builder, clang::format::cleanup(), ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateBitCast(), DeactivateCleanupBlock(), clang::CodeGen::EHCleanup, EHStack, EmitAnyExprToMem(), clang::CodeGen::Address::getPointer(), clang::QualType::getQualifiers(), clang::Expr::getType(), clang::CodeGen::EHScopeStack::stable_begin(), and clang::CodeGen::Type.
| void CodeGenFunction::EmitAnyExprToMem | ( | const Expr * | E, |
| Address | Location, | ||
| Qualifiers | Quals, | ||
| bool | IsInit | ||
| ) |
EmitAnyExprToMem - Emits the code necessary to evaluate an arbitrary expression into the given memory location.
EmitAnyExprToMem - Evaluate an expression into a given memory location.
Definition at line 198 of file CGExpr.cpp.
References clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), EmitComplexExprIntoLValue(), EmitScalarExpr(), EmitStoreThroughLValue(), clang::CodeGen::AggValueSlot::forAddr(), clang::CodeGen::RValue::get(), getEvaluationKind(), clang::Expr::getType(), MakeAddrLValue(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitAArch64BuiltinExpr(), EmitAnyExprToExn(), EmitCompoundStmtWithoutScope(), clang::CodeGen::ReductionCodeGen::emitInitialization(), emitInitWithReductionInitializer(), EmitMaterializeTemporaryExpr(), EmitObjCBoxedExpr(), EmitOMPAggregateInit(), EmitOMPFirstprivateClause(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitThreadPrivateVarDefinition(), and EmitValToTemp().
EmitAnyExprToTemp - Similarly to EmitAnyExpr(), however, the result will always be accessible even if no aggregate location is provided.
EmitAnyExprToTemp - Similary to EmitAnyExpr(), however, the result will always be accessible even if no aggregate location is provided.
Definition at line 188 of file CGExpr.cpp.
References CreateAggTemp(), EmitAnyExpr(), clang::Expr::getType(), hasAggregateEvaluationKind(), and clang::CodeGen::AggValueSlot::ignored().
| llvm::Value * CodeGenFunction::EmitARCAutorelease | ( | llvm::Value * | value | ) |
Autorelease the given object.
call i8* @objc_autorelease(i8* value)
Definition at line 2197 of file CGObjC.cpp.
References emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_autorelease.
Referenced by EmitARCRetainAutorelease(), and EmitARCRetainAutoreleaseScalarExpr().
| llvm::Value * CodeGenFunction::EmitARCAutoreleaseReturnValue | ( | llvm::Value * | value | ) |
Autorelease the given object.
call i8* @objc_autoreleaseReturnValue(i8* value)
Definition at line 2206 of file CGObjC.cpp.
References emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_autoreleaseReturnValue.
Referenced by emitAutoreleaseOfResult().
void @objc_copyWeak(i8** dest, i8** src) Disregards the current value in dest.
Essentially objc_release(objc_initWeak(dest, objc_readWeakRetained(src)))
Definition at line 2324 of file CGObjC.cpp.
References emitARCCopyOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_copyWeak.
Referenced by GenerateCopyHelperFunction(), and tryEmitARCCopyWeakInit().
| void CodeGenFunction::EmitARCDestroyStrong | ( | Address | addr, |
| ARCPreciseLifetime_t | precise | ||
| ) |
Destroy a __strong variable.
At -O0, emit a call to store 'null' into the address; instrumenting tools prefer this because the address is exposed, but it's relatively cumbersome to optimize.
At -O1 and above, just load and call objc_release.
call void @objc_storeStrong(i8** addr, i8* null)
Definition at line 2122 of file CGObjC.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateLoad(), EmitARCRelease(), EmitARCStoreStrongCall(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), and getNullForVariable().
Referenced by EmitObjectDelete(), and GenerateDestroyHelperFunction().
| void CodeGenFunction::EmitARCDestroyWeak | ( | Address | addr | ) |
void @objc_destroyWeak(i8** addr) Essentially objc_storeWeak(addr, nil).
Definition at line 2298 of file CGObjC.cpp.
References Builder, createARCRuntimeFunction(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::Int8PtrPtrTy, and clang::CodeGen::ObjCEntrypoints::objc_destroyWeak.
Referenced by EmitCXXPseudoDestructorExpr(), EmitObjectDelete(), and GenerateDestroyHelperFunction().
| llvm::Value * CodeGenFunction::EmitARCExtendBlockObject | ( | const Expr * | expr | ) |
Definition at line 3002 of file CGObjC.cpp.
References EmitARCRetainBlock(), EmitObjCConsumeObject(), EmitScalarExpr(), clang::Expr::getType(), shouldEmitSeparateBlockRetain(), and tryEmitARCRetainScalarExpr().
| void CodeGenFunction::EmitARCInitWeak | ( | Address | addr, |
| llvm::Value * | value | ||
| ) |
i8* @objc_initWeak(i8** addr, i8* value) Returns value.
addr is known to not have a current weak entry. Essentially equivalent to: *addr = nil; objc_storeWeak(addr, value);
Definition at line 2280 of file CGObjC.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateStore(), emitARCStoreOperation(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_initWeak.
Referenced by clang::CodeGen::CGObjCRuntime::EmitInitOfCatchParam(), EmitParmDecl(), EmitScalarInit(), and InitCatchParam().
| void CodeGenFunction::EmitARCIntrinsicUse | ( | ArrayRef< llvm::Value * > | values | ) |
Given a number of pointers, inform the optimizer that they're being intrinsically used up until this point in the program.
Definition at line 1805 of file CGObjC.cpp.
References clang::CodeGen::ObjCEntrypoints::clang_arc_use, clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::None, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitObjCCollectionLiteral(), and emitWriteback().
| llvm::Value * CodeGenFunction::EmitARCLoadWeak | ( | Address | addr | ) |
i8* @objc_loadWeak(i8** addr) Essentially objc_autorelease(objc_loadWeakRetained(addr)).
Definition at line 2253 of file CGObjC.cpp.
References emitARCLoadOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_loadWeak.
Referenced by generateObjCGetterBody().
| llvm::Value * CodeGenFunction::EmitARCLoadWeakRetained | ( | Address | addr | ) |
i8* @objc_loadWeakRetained(i8** addr)
Definition at line 2260 of file CGObjC.cpp.
References emitARCLoadOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_loadWeakRetained.
Referenced by EmitObjCMessageExpr(), and tryEmitARCRetainLoadOfScalar().
void @objc_moveWeak(i8** dest, i8** src) Disregards the current value in dest.
Leaves src pointing to nothing. Essentially (objc_copyWeak(dest, src), objc_destroyWeak(src)).
Definition at line 2315 of file CGObjC.cpp.
References emitARCCopyOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_moveWeak.
Referenced by tryEmitARCCopyWeakInit().
| llvm::Value * CodeGenFunction::EmitARCReclaimReturnedObject | ( | const Expr * | e, |
| bool | allowUnsafeClaim | ||
| ) |
Definition at line 2583 of file CGObjC.cpp.
References emitARCRetainCallResult(), emitARCUnsafeClaimCallResult(), EmitObjCConsumeObject(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::Expr::getType(), clang::ObjCRuntime::hasARCUnsafeClaimAutoreleasedReturnValue(), and clang::LangOptions::ObjCRuntime.
| void CodeGenFunction::EmitARCRelease | ( | llvm::Value * | value, |
| ARCPreciseLifetime_t | precise | ||
| ) |
Release the given object.
call void @objc_release(i8* value)
Definition at line 2090 of file CGObjC.cpp.
References clang::CodeGen::ARCImpreciseLifetime, Builder, createARCRuntimeFunction(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::None, and clang::CodeGen::ObjCEntrypoints::objc_release.
Referenced by EmitARCDestroyStrong(), EmitARCStoreStrong(), EmitCXXPseudoDestructorExpr(), EmitScalarInit(), and emitWriteback().
| llvm::Value * CodeGenFunction::EmitARCRetain | ( | QualType | type, |
| llvm::Value * | value | ||
| ) |
Produce the code to do a retain.
Based on the type, calls one of: call i8* @objc_retain(i8* value) call i8* @objc_retainBlock(i8* value)
Definition at line 1974 of file CGObjC.cpp.
References EmitARCRetainBlock(), EmitARCRetainNonBlock(), and clang::Type::isBlockPointerType().
Referenced by emitARCRetainLoadOfScalar(), EmitARCRetainScalarExpr(), and EmitARCStoreStrong().
| llvm::Value * CodeGenFunction::EmitARCRetainAutorelease | ( | QualType | type, |
| llvm::Value * | value | ||
| ) |
Do a fused retain/autorelease of the given object.
call i8* @objc_retainAutorelease(i8* value) or retain = call i8* @objc_retainBlock(i8* value) call i8* @objc_autorelease(i8* retain)
Definition at line 2228 of file CGObjC.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitARCAutorelease(), EmitARCRetainAutoreleaseNonBlock(), EmitARCRetainBlock(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::Type::isBlockPointerType(), and clang::CodeGen::Type.
Referenced by EmitARCRetainAutoreleaseScalarExpr(), EmitObjCExtendObjectLifetime(), and EmitObjCMessageExpr().
| llvm::Value * CodeGenFunction::EmitARCRetainAutoreleasedReturnValue | ( | llvm::Value * | value | ) |
Retain the given object which is the result of a function call.
call i8* @objc_retainAutoreleasedReturnValue(i8* value)
Yes, this function name is one character away from a different call with completely different semantics.
Definition at line 2066 of file CGObjC.cpp.
References emitARCValueOperation(), emitAutoreleasedReturnValueMarker(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_retainAutoreleasedReturnValue.
Referenced by emitARCRetainCallResult().
| llvm::Value * CodeGenFunction::EmitARCRetainAutoreleaseNonBlock | ( | llvm::Value * | value | ) |
Do a fused retain/autorelease of the given object.
call i8* @objc_retainAutorelease(i8* value)
Definition at line 2245 of file CGObjC.cpp.
References emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_retainAutorelease.
Referenced by EmitARCRetainAutorelease().
| llvm::Value * CodeGenFunction::EmitARCRetainAutoreleaseReturnValue | ( | llvm::Value * | value | ) |
Do a fused retain/autorelease of the given object.
call i8* @objc_retainAutoreleaseReturnValue(i8* value)
Definition at line 2216 of file CGObjC.cpp.
References emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_retainAutoreleaseReturnValue.
Referenced by tryEmitFusedAutoreleaseOfResult().
| llvm::Value * CodeGenFunction::EmitARCRetainAutoreleaseScalarExpr | ( | const Expr * | expr | ) |
Definition at line 2985 of file CGObjC.cpp.
References EmitARCAutorelease(), EmitARCRetainAutorelease(), enterFullExpression(), clang::Expr::getType(), and tryEmitARCRetainScalarExpr().
Referenced by EmitARCStoreAutoreleasing(), EmitObjCThrowOperand(), and EmitScalarInit().
| llvm::Value * CodeGenFunction::EmitARCRetainBlock | ( | llvm::Value * | value, |
| bool | mandatory | ||
| ) |
Retain the given block, with _Block_copy semantics.
call i8* @objc_retainBlock(i8* value)
| mandatory | - If false, emit the call with metadata indicating that it's okay for the optimizer to eliminate this call if it can prove that the block never escapes except down the stack. |
Definition at line 1995 of file CGObjC.cpp.
References Builder, emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::None, and clang::CodeGen::ObjCEntrypoints::objc_retainBlock.
Referenced by EmitARCExtendBlockObject(), EmitARCRetain(), EmitARCRetainAutorelease(), and EmitARCStoreStrong().
| llvm::Value * CodeGenFunction::EmitARCRetainNonBlock | ( | llvm::Value * | value | ) |
Retain the given object, with normal retain semantics.
call i8* @objc_retain(i8* value)
Definition at line 1983 of file CGObjC.cpp.
References emitARCValueOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_retain.
Referenced by EmitARCRetain(), emitARCRetainCallResult(), clang::CodeGen::CGObjCRuntime::EmitInitOfCatchParam(), EmitObjCMessageExpr(), EmitParmDecl(), emitWriteback(), GenerateCopyHelperFunction(), and InitCatchParam().
| llvm::Value * CodeGenFunction::EmitARCRetainScalarExpr | ( | const Expr * | e | ) |
EmitARCRetainScalarExpr - Semantically equivalent to EmitARCRetainObject(e->getType(), EmitScalarExpr(e)), but making a best-effort attempt to peephole expressions that naturally produce retained objects.
Definition at line 2969 of file CGObjC.cpp.
References EmitARCRetain(), enterFullExpression(), clang::Expr::getType(), and tryEmitARCRetainScalarExpr().
Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), EmitObjCForCollectionStmt(), and EmitScalarInit().
| std::pair< LValue, llvm::Value * > CodeGenFunction::EmitARCStoreAutoreleasing | ( | const BinaryOperator * | e | ) |
Definition at line 3158 of file CGObjC.cpp.
References EmitARCRetainAutoreleaseScalarExpr(), EmitLValue(), EmitStoreOfScalar(), clang::BinaryOperator::getLHS(), and clang::BinaryOperator::getRHS().
| llvm::Value * CodeGenFunction::EmitARCStoreStrong | ( | LValue | dst, |
| llvm::Value * | newValue, | ||
| bool | ignored | ||
| ) |
Store into a strong object.
Sometimes calls this: call void @objc_storeStrong(i8** addr, i8* value) Other times, breaks it down into components.
Definition at line 2162 of file CGObjC.cpp.
References EmitARCRelease(), EmitARCRetain(), EmitARCStoreStrongCall(), EmitLoadOfScalar(), EmitStoreOfScalar(), clang::CharUnits::fromQuantity(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValue::getAlignment(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::isARCPreciseLifetime(), clang::Type::isBlockPointerType(), clang::CharUnits::isZero(), clang::CodeGen::CodeGenTypeCache::PointerAlignInBytes, shouldUseFusedARCCalls(), and clang::ast_matchers::type.
Referenced by EmitARCStoreStrong().
| std::pair< LValue, llvm::Value * > CodeGenFunction::EmitARCStoreStrong | ( | const BinaryOperator * | e, |
| bool | ignored | ||
| ) |
Definition at line 3127 of file CGObjC.cpp.
References EmitARCRelease(), EmitARCRetainBlock(), EmitARCStoreStrong(), EmitLoadOfScalar(), EmitLValue(), EmitStoreOfScalar(), clang::BinaryOperator::getLHS(), clang::BinaryOperator::getRHS(), clang::Expr::getType(), clang::CodeGen::LValue::isARCPreciseLifetime(), clang::Type::isBlockPointerType(), and tryEmitARCRetainScalarExpr().
| llvm::Value * CodeGenFunction::EmitARCStoreStrongCall | ( | Address | addr, |
| llvm::Value * | value, | ||
| bool | ignored | ||
| ) |
Store into a strong object.
Always calls this: call void @objc_storeStrong(i8** addr, i8* value)
Definition at line 2136 of file CGObjC.cpp.
References Builder, createARCRuntimeFunction(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNounwindRuntimeCall(), clang::CodeGen::Address::getElementType(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::Int8PtrPtrTy, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::ObjCEntrypoints::objc_storeStrong, and clang::CodeGen::Type.
Referenced by destroyARCStrongWithStore(), EmitARCDestroyStrong(), EmitARCStoreStrong(), EmitParmDecl(), and GenerateCopyHelperFunction().
| std::pair< LValue, llvm::Value * > CodeGenFunction::EmitARCStoreUnsafeUnretained | ( | const BinaryOperator * | e, |
| bool | ignored | ||
| ) |
Definition at line 3108 of file CGObjC.cpp.
References EmitARCUnsafeUnretainedScalarExpr(), EmitLValue(), EmitScalarExpr(), EmitStoreOfScalar(), clang::BinaryOperator::getLHS(), and clang::BinaryOperator::getRHS().
| llvm::Value * CodeGenFunction::EmitARCStoreWeak | ( | Address | addr, |
| llvm::Value * | value, | ||
| bool | ignored | ||
| ) |
i8* @objc_storeWeak(i8** addr, i8* value) Returns value.
Definition at line 2268 of file CGObjC.cpp.
References emitARCStoreOperation(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_storeWeak.
Referenced by EmitScalarInit().
| llvm::Value * CodeGenFunction::EmitARCUnsafeClaimAutoreleasedReturnValue | ( | llvm::Value * | value | ) |
Claim a possibly-autoreleased return value at +0.
This is only valid to do in contexts which do not rely on the retain to keep the object valid for for all of its uses; for example, when the value is ignored, or when it is being assigned to an __unsafe_unretained variable.
call i8* @objc_unsafeClaimAutoreleasedReturnValue(i8* value)
Definition at line 2081 of file CGObjC.cpp.
References emitARCValueOperation(), emitAutoreleasedReturnValueMarker(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), and clang::CodeGen::ObjCEntrypoints::objc_unsafeClaimAutoreleasedReturnValue.
Referenced by emitARCUnsafeClaimCallResult().
| llvm::Value * CodeGenFunction::EmitARCUnsafeUnretainedScalarExpr | ( | const Expr * | e | ) |
EmitARCUnsafeUnretainedScalarExpr - Semantically equivalent to immediately releasing the resut of EmitARCRetainScalarExpr, but avoiding any spurious retains, including by performing reclaims with objc_unsafeClaimAutoreleasedReturnValue.
Definition at line 3096 of file CGObjC.cpp.
References emitARCUnsafeUnretainedScalarExpr(), and enterFullExpression().
Referenced by EmitARCStoreUnsafeUnretained(), and EmitScalarInit().
Definition at line 4407 of file CGBuiltin.cpp.
References Builder, CGM, clang::CodeGen::CodeGenTypes::ConvertType(), ConvertType(), clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), clang::CodeGen::CGBuilderTy::CreateAlignedStore(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateDefaultAlignedStore(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CodeGenTypeCache::DoubleTy, EmitCommonNeonBuiltinExpr(), EmitMSVCBuiltinExpr(), EmitNeonCall(), EmitNeonRShiftImm(), EmitNeonShiftVector(), EmitNeonSplat(), EmitNounwindRuntimeCall(), EmitPointerWithAlignment(), EmitScalarExpr(), EmitSpecialRegisterBuiltin(), clang::Expr::EvaluateAsInt(), findNeonIntrinsicInMap(), clang::CodeGen::CodeGenTypeCache::FloatTy, clang::ASTContext::GE_None, clang::CallExpr::getArg(), clang::ASTContext::GetBuiltinType(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CallExpr::getDirectCallee(), clang::CodeGen::Address::getElementType(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), GetNeonType(), clang::CallExpr::getNumArgs(), clang::Type::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), getTarget(), clang::TargetInfo::getTriple(), clang::Expr::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::getTypeSize(), getTypeSize(), clang::ASTContext::getTypeSizeInChars(), HasExtraNeonArgument(), ID, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::Address::invalid(), clang::Expr::isIntegerConstantExpr(), prefetch(), clang::CodeGen::Type, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitTargetArchBuiltinExpr().
| void CodeGenFunction::emitArrayDestroy | ( | llvm::Value * | begin, |
| llvm::Value * | end, | ||
| QualType | elementType, | ||
| CharUnits | elementAlign, | ||
| Destroyer * | destroyer, | ||
| bool | checkZeroLength, | ||
| bool | useEHCleanup | ||
| ) |
emitArrayDestroy - Destroys all the elements of the given array, beginning from last to first.
The array cannot be zero-length.
| begin | - a type* denoting the first element of the array |
| end | - a type* denoting one past the end of the array |
| elementType | - the element type of the array |
| destroyer | - the function to call to destroy elements |
| useEHCleanup | - whether to push an EH cleanup to destroy the remaining elements in case the destruction of a single element throws |
Definition at line 1566 of file CGDecl.cpp.
References Builder, createBasicBlock(), EmitBlock(), clang::Type::isArrayType(), PopCleanupBlock(), pushRegularPartialArrayCleanup(), and clang::CodeGen::CodeGenTypeCache::SizeTy.
Referenced by EmitArrayDelete(), emitDestroy(), and emitPartialArrayDestroy().
| llvm::Value * CodeGenFunction::emitArrayLength | ( | const ArrayType * | origArrayType, |
| QualType & | baseType, | ||
| Address & | addr | ||
| ) |
emitArrayLength - Compute the length of an array, even if it's a VLA, and drill down to the base element type.
Computes the length of an array in elements, as well as the base element type and a properly-typed first element pointer.
Definition at line 1720 of file CodeGenFunction.cpp.
References Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::Address::getAlignment(), clang::ASTContext::getAsArrayType(), getContext(), clang::CodeGen::Address::getElementType(), clang::ArrayType::getElementType(), clang::CodeGen::Address::getPointer(), getVLASize(), clang::CodeGen::CodeGenTypeCache::SizeTy, and clang::CodeGen::Type.
Referenced by EmitAggregateCopy(), EmitCXXAggrConstructorCall(), emitDestroy(), EmitOMPAggregateAssign(), EmitOMPAggregateInit(), and EmitOMPAggregateReduction().
| LValue CodeGenFunction::EmitArraySubscriptExpr | ( | const ArraySubscriptExpr * | E, |
| bool | Accessed = false |
||
| ) |
Definition at line 3118 of file CGExpr.cpp.
References Builder, clang::Type::castAs(), emitArraySubscriptGEP(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::Address::getAlignment(), getArrayElementAlign(), clang::Type::getAs(), clang::ArraySubscriptExpr::getBase(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::Address::getElementType(), clang::ArraySubscriptExpr::getExprLoc(), clang::ArraySubscriptExpr::getIdx(), clang::ArraySubscriptExpr::getLHS(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), clang::ArraySubscriptExpr::getRHS(), clang::CodeGen::Address::getType(), clang::Expr::getType(), clang::CodeGen::LValue::getType(), clang::Expr::isOBJCGCCandidate(), clang::Type::isSignedIntegerOrEnumerationType(), clang::CodeGen::LValue::isSimple(), isSimpleArrayDecayOperand(), clang::Type::isVectorType(), clang::LangOptions::NonGC, clang::CodeGen::LValue::setNonGC(), setObjCGCLValueClass(), and clang::CharUnits::Zero().
| Address CodeGenFunction::EmitArrayToPointerDecay | ( | const Expr * | Array, |
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
Definition at line 3007 of file CGExpr.cpp.
References Builder, clang::Type::castAsArrayTypeUnsafe(), clang::ArrayType::getElementType(), clang::Expr::getType(), clang::Type::isArrayType(), clang::Type::isVariableArrayType(), and clang::CharUnits::Zero().
| void CodeGenFunction::EmitAsanPrologueOrEpilogue | ( | bool | Prologue | ) |
Definition at line 740 of file CGClass.cpp.
References Builder, CGM, Context, clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), CurGD, clang::RecordDecl::fields(), clang::ASTContext::getASTRecordLayout(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::GlobalDecl::getDecl(), clang::ASTRecordLayout::getFieldCount(), clang::ASTRecordLayout::getFieldOffset(), clang::ASTRecordLayout::getNonVirtualSize(), clang::CharUnits::getQuantity(), clang::ValueDecl::getType(), clang::ASTContext::getTypeInfoInChars(), clang::CodeGen::CodeGenTypeCache::IntPtrTy, clang::FieldDecl::isBitField(), LoadCXXThis(), clang::RecordDecl::mayInsertExtraPadding(), clang::ASTContext::toCharUnitsFromBits(), clang::CodeGen::Type, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitConstructorBody(), and EmitDestructorBody().
| void CodeGenFunction::EmitAsmStmt | ( | const AsmStmt & | S | ) |
Definition at line 1877 of file CGStmt.cpp.
References clang::CodeGen::TargetCodeGenInfo::addReturnRegisterOutputs(), AddVariableConstraints(), clang::CodeGen::TargetCodeGenInfo::adjustInlineAsmType(), clang::TargetInfo::ConstraintInfo::allowsMemory(), clang::TargetInfo::ConstraintInfo::allowsRegister(), Builder, CGM, ConvertType(), ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateBitCast(), CurFnInfo, clang::TargetInfo::ConstraintInfo::earlyClobber(), EmitLValue(), EmitStoreThroughLValue(), FnRetTy, clang::AsmStmt::generateAsmString(), clang::CodeGen::RValue::get(), clang::AsmStmt::getAsmLoc(), getAsmSrcLocInfo(), clang::AsmStmt::getClobber(), clang::TargetInfo::getClobbers(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CodeGen::CodeGenModule::getDiags(), clang::Expr::getExprLoc(), clang::AsmStmt::getInputConstraint(), clang::AsmStmt::getInputExpr(), getLangOpts(), getLLVMContext(), clang::TargetInfo::getNormalizedGCCRegisterName(), clang::AsmStmt::getNumClobbers(), clang::AsmStmt::getNumInputs(), clang::AsmStmt::getNumOutputs(), clang::AsmStmt::getOutputConstraint(), clang::AsmStmt::getOutputExpr(), clang::SourceLocation::getRawEncoding(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), getTarget(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), getTargetHooks(), clang::TargetInfo::ConstraintInfo::getTiedOperand(), clang::Expr::getType(), clang::ASTContext::getTypeSize(), getTypeSize(), clang::TargetInfo::ConstraintInfo::hasMatchingInput(), hasScalarEvaluationKind(), clang::TargetInfo::ConstraintInfo::hasTiedOperand(), clang::Expr::IgnoreParenNoopCasts(), Input, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::IntPtrTy, clang::CodeGen::ABIArgInfo::isDirect(), clang::CodeGen::ABIArgInfo::isExtend(), clang::TargetInfo::ConstraintInfo::isReadWrite(), clang::AsmStmt::isVolatile(), MakeAddrLValue(), Name, clang::DiagnosticsEngine::Report(), ReturnValue, S, SawAsmBlock, SimplifyConstraint(), clang::CodeGen::Type, clang::TargetInfo::validateInputConstraint(), clang::TargetInfo::validateOutputConstraint(), and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitStmt().
| std::pair< RValue, llvm::Value * > CodeGenFunction::EmitAtomicCompareExchange | ( | LValue | Obj, |
| RValue | Expected, | ||
| RValue | Desired, | ||
| SourceLocation | Loc, | ||
| llvm::AtomicOrdering | Success = llvm::AtomicOrdering::SequentiallyConsistent, |
||
| llvm::AtomicOrdering | Failure = llvm::AtomicOrdering::SequentiallyConsistent, |
||
| bool | IsWeak = false, |
||
| AggValueSlot | Slot = AggValueSlot::ignored() |
||
| ) |
Emit a compare-and-exchange op for atomic type.
Definition at line 1791 of file CGAtomic.cpp.
References clang::CodeGen::LValue::getAddress(), clang::CodeGen::RValue::getAggregateAddress(), clang::CodeGen::Address::getElementType(), and clang::CodeGen::RValue::isAggregate().
| RValue CodeGenFunction::EmitAtomicExpr | ( | AtomicExpr * | E | ) |
Definition at line 661 of file CGAtomic.cpp.
References clang::CodeGen::CallArgList::add(), AddDirectArgument(), clang::prec::And, clang::ASTContext::BoolTy, Builder, CGM, convertTempToRValue(), ConvertTypeForMem(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStore(), CurFn, EmitAtomicInit(), emitAtomicLibcall(), EmitAtomicOp(), EmitCastToVoidPtr(), EmitPointerWithAlignment(), EmitScalarExpr(), EmitStoreOfScalar(), EmitValToTemp(), clang::CodeGen::RValue::get(), clang::Type::getAs(), getContext(), clang::Expr::getExprLoc(), clang::ASTContext::getIntPtrType(), clang::ASTContext::getIntTypeForBitwidth(), clang::TargetInfo::getMaxAtomicInlineWidth(), clang::AtomicExpr::getNumSubExprs(), clang::AtomicExpr::getOp(), clang::AtomicExpr::getOrder(), clang::AtomicExpr::getOrderFail(), clang::Type::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::AtomicExpr::getPtr(), clang::CharUnits::getQuantity(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::CodeGenModule::getSize(), getTarget(), clang::CodeGen::Address::getType(), clang::Expr::getType(), clang::ASTContext::getTypeInfoInChars(), clang::ASTContext::getTypeSizeInChars(), clang::QualType::getUnqualifiedType(), clang::AtomicExpr::getVal1(), clang::AtomicExpr::getVal2(), clang::AtomicExpr::getWeak(), clang::CodeGen::CodeGenTypeCache::IntTy, clang::CodeGen::Address::invalid(), clang::AtomicExpr::isCmpXChg(), clang::Type::isPointerType(), clang::CodeGen::Address::isValid(), clang::Type::isVoidType(), MakeAddrLValue(), clang::CodeGen::CodeGenTypeCache::SizeTy, clang::ASTContext::toBits(), clang::ASTContext::VoidPtrTy, and clang::ASTContext::VoidTy.
Definition at line 1816 of file CGAtomic.cpp.
References clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), EmitComplexExpr(), EmitScalarExpr(), clang::CodeGen::AggValueSlot::forLValue(), clang::CodeGen::RValue::get(), clang::CodeGen::RValue::getComplex(), clang::Expr::getType(), clang::Type::isAtomicType(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::CodeGen::AggValueSlot::IsNotDestructed, clang::CodeGen::AggValueSlot::IsNotZeroed, clang::CodeGen::AggValueSlot::IsZeroed, clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitAtomicExpr(), and EmitExprAsInit().
| RValue CodeGenFunction::EmitAtomicLoad | ( | LValue | LV, |
| SourceLocation | SL, | ||
| AggValueSlot | Slot = AggValueSlot::ignored() |
||
| ) |
Definition at line 1284 of file CGAtomic.cpp.
References clang::CodeGen::LValue::getType(), clang::Type::isAtomicType(), and clang::CodeGen::LValue::isVolatileQualified().
Referenced by EmitOMPAtomicReadExpr().
| RValue CodeGenFunction::EmitAtomicLoad | ( | LValue | src, |
| SourceLocation | loc, | ||
| llvm::AtomicOrdering | AO, | ||
| bool | IsVolatile = false, |
||
| AggValueSlot | resultSlot = AggValueSlot::ignored() |
||
| ) |
Emit a load from an l-value of atomic type.
Note that the r-value we produce is an r-value of the atomic value type.
Definition at line 1330 of file CGAtomic.cpp.
Definition at line 1706 of file CGAtomic.cpp.
References clang::CodeGen::LValue::getType(), clang::Type::isAtomicType(), and clang::CodeGen::LValue::isVolatileQualified().
Referenced by emitSimpleAtomicStore().
| void CodeGenFunction::EmitAtomicStore | ( | RValue | rvalue, |
| LValue | dest, | ||
| llvm::AtomicOrdering | AO, | ||
| bool | IsVolatile, | ||
| bool | isInit | ||
| ) |
Emit a store to an l-value of atomic type.
Note that the r-value is expected to be an r-value of the atomic type; this means that for aggregate r-values, it should include storage for any padding that was necessary.
Definition at line 1724 of file CGAtomic.cpp.
References clang::CodeGen::CallArgList::add(), Builder, CGM, clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CodeGenModule::DecorateInstructionWithTBAA(), emitAtomicLibcall(), EmitCastToVoidPtr(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::RValue::getAggregateAddress(), getContext(), clang::CodeGen::Address::getElementType(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getSizeType(), clang::CodeGen::LValue::getTBAAInfo(), clang::CodeGen::CodeGenTypeCache::IntTy, clang::CodeGen::RValue::isAggregate(), clang::CodeGen::LValue::isSimple(), clang::ASTContext::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
| void CodeGenFunction::EmitAtomicUpdate | ( | LValue | LVal, |
| llvm::AtomicOrdering | AO, | ||
| const llvm::function_ref< RValue(RValue)> & | UpdateOp, | ||
| bool | IsVolatile | ||
| ) |
Definition at line 1809 of file CGAtomic.cpp.
Referenced by EmitOMPAtomicSimpleUpdateExpr().
| void CodeGenFunction::EmitAttributedStmt | ( | const AttributedStmt & | S | ) |
Definition at line 557 of file CGStmt.cpp.
References EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), EmitStmt(), EmitWhileStmt(), clang::AttributedStmt::getAttrs(), clang::Stmt::getStmtClass(), and clang::AttributedStmt::getSubStmt().
Referenced by EmitSimpleStmt().
| CodeGenFunction::AutoVarEmission CodeGenFunction::EmitAutoVarAlloca | ( | const VarDecl & | D | ) |
EmitAutoVarAlloca - Emit the alloca and debug information for a local variable.
Does not emit initialization or destruction.
Definition at line 953 of file CGDecl.cpp.
References Builder, Bypasses, CGM, ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateStore(), CreateTempAlloca(), clang::LangAS::Default, EHStack, EmitLifetimeStart(), EmitStaticVarDecl(), EmitVarAnnotations(), EmitVariablyModifiedType(), EnsureInsertPoint(), clang::QualType::getAddressSpace(), clang::Type::getAs(), clang::ASTContext::getBaseElementType(), getBlockByrefInfo(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::TargetInfo::getCXXABI(), clang::CodeGen::CodeGenModule::getDataLayout(), getDebugInfo(), clang::ASTContext::getDeclAlign(), clang::VarDecl::getInit(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLangOpts(), clang::Decl::getLocation(), clang::NamedDecl::getName(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), getTarget(), clang::ValueDecl::getType(), getVLASize(), clang::Decl::hasAttr(), hasLabelBeenSeenInCurrentScope(), HaveInsertPoint(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::InternalLinkage, clang::CodeGen::Address::invalid(), clang::Type::isArrayType(), clang::CodeGen::VarBypassDetector::IsBypassed(), clang::Expr::isConstantInitializer(), clang::Type::isConstantSizeType(), clang::VarDecl::isConstexpr(), clang::VarDecl::isExceptionVariable(), clang::TargetCXXABI::isMicrosoft(), clang::VarDecl::isNRVOVariable(), clang::Type::isObjCObjectPointerType(), clang::QualType::isPODType(), clang::Type::isRecordType(), clang::CodeGen::CodeGenModule::isTypeConstant(), clang::Type::isVariablyModifiedType(), clang::codegenoptions::LimitedDebugInfo, clang::CodeGen::NormalCleanup, clang::CodeGen::NormalEHLifetimeMarker, NRVOFlags, clang::CharUnits::One(), clang::LangAS::opencl_constant, pushStackRestore(), ReturnValue, Stack, and clang::CodeGen::Type.
Referenced by EmitAutoVarDecl(), EmitObjCForCollectionStmt(), EmitOMPFirstprivateClause(), EmitOMPLinearClauseInit(), EmitOMPPrivateLoopCounters(), and EmitOMPReductionClauseInit().
| void CodeGenFunction::EmitAutoVarCleanups | ( | const AutoVarEmission & | emission | ) |
Definition at line 1411 of file CGDecl.cpp.
References clang::CodeGen::CodeGenTypes::arrangeFunctionDeclaration(), CGM, EHStack, emitAutoVarTypeCleanup(), enterByrefCleanup(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::Decl::getAttr(), getLangOpts(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::Decl::hasAttr(), HaveInsertPoint(), clang::QualType::isDestructedType(), clang::LangOptions::NonGC, clang::CodeGen::NormalAndEHCleanup, and clang::CodeGen::NormalCleanup.
Referenced by EmitAutoVarDecl(), EmitObjCForCollectionStmt(), EmitOMPFirstprivateClause(), EmitOMPLinearClauseInit(), EmitOMPPrivateLoopCounters(), and EmitOMPReductionClauseInit().
| void CodeGenFunction::EmitAutoVarDecl | ( | const VarDecl & | D | ) |
EmitAutoVarDecl - Emit an auto variable declaration.
EmitAutoVarDecl - Emit code and set up an entry in LocalDeclMap for a variable declaration with auto, register, or no storage class specifier.
This function can be called with a null (unreachable) insert point.
These turn into simple stack objects, or GlobalValues depending on target.
Definition at line 921 of file CGDecl.cpp.
References EmitAutoVarAlloca(), EmitAutoVarCleanups(), and EmitAutoVarInit().
Referenced by EmitForStmt(), EmitIfStmt(), EmitSwitchStmt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitVarDecl(), and EmitWhileStmt().
| void CodeGenFunction::EmitAutoVarInit | ( | const AutoVarEmission & | emission | ) |
Definition at line 1201 of file CGDecl.cpp.
References Builder, CGM, ContainsLabel(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::ApplyDebugLocation::CreateDefaultArtificial(), clang::CodeGen::CGBuilderTy::CreateMemCpy(), clang::CodeGen::CGBuilderTy::CreateMemSet(), emitByrefStructureInit(), clang::CodeGen::CodeGenModule::EmitConstantInit(), EmitExprAsInit(), emitStoresForInitAfterMemset(), EmitStoreThroughLValue(), EnsureInsertPoint(), clang::CodeGen::RValue::get(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::VarDecl::getInit(), getLangOpts(), getLLVMContext(), clang::Decl::getLocation(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CodeGenFunction::AutoVarEmission::getObjectAddress(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), getStaticDeclName(), clang::ASTContext::getTargetAddressSpace(), clang::CodeGen::Address::getType(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::CodeGen::CodeGenTypeCache::IntPtrTy, isCapturedBy(), clang::VarDecl::isConstexpr(), isTrivialInitializer(), MakeAddrLValue(), Name, clang::frontend::OpenCL, clang::LangAS::opencl_constant, clang::CodeGen::LValue::setNonGC(), shouldUseMemSetPlusStoresToInitialize(), clang::CodeGen::Type, and clang::ast_matchers::type.
Referenced by EmitAutoVarDecl(), EmitObjCForCollectionStmt(), and EmitOMPReductionClauseInit().
| void CodeGenFunction::emitAutoVarTypeCleanup | ( | const AutoVarEmission & | emission, |
| QualType::DestructionKind | dtorKind | ||
| ) |
Enter a destroy cleanup for the given local variable.
Definition at line 1354 of file CGDecl.cpp.
References destroyARCStrongImprecise, clang::QualType::DK_cxx_destructor, clang::QualType::DK_none, clang::QualType::DK_objc_strong_lifetime, clang::QualType::DK_objc_weak_lifetime, clang::CodeGen::EHCleanup, EHStack, getARCCleanupKind(), clang::Type::getAsCXXRecordDecl(), getDestroyer(), clang::CXXRecordDecl::getDestructor(), clang::CodeGen::CodeGenFunction::AutoVarEmission::getObjectAddress(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::VarDecl::isARCPseudoStrong(), clang::Type::isArrayType(), clang::CodeGen::NormalAndEHCleanup, and clang::ast_matchers::type.
Referenced by EmitAutoVarCleanups().
| LValue CodeGenFunction::EmitBinaryOperatorLValue | ( | const BinaryOperator * | E | ) |
Definition at line 4155 of file CGExpr.cpp.
References clang::BinaryOperator::getExprLoc(), clang::BinaryOperator::getLHS(), clang::QualType::getObjCLifetime(), clang::BinaryOperator::getOpcode(), clang::BinaryOperator::getRHS(), clang::CodeGen::RValue::getScalarVal(), clang::Expr::getType(), clang::CodeGen::RValue::isScalar(), clang::Qualifiers::OCL_Autoreleasing, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::Qualifiers::OCL_Strong, clang::Qualifiers::OCL_Weak, clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
EmitBlock - Emit the given block.
IsFinished - If true, indicates that the caller has finished emitting branches to the given block and does not expect to emit code into it. This means the block can be ignored if it is unreachable.
Definition at line 436 of file CGStmt.cpp.
References Builder, CurFn, and EmitBranch().
Referenced by emitArrayDestroy(), clang::CodeGen::emitBarrierCall(), EmitBlockWithFallThrough(), EmitBranchOnBoolExpr(), clang::CodeGen::emitCancellationPointCall(), emitCatchDispatchBlock(), EmitCleanup(), EmitCoroutineBody(), EmitCtorPrologue(), clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr(), EmitCXXAggrConstructorCall(), EmitCXXDeleteExpr(), EmitCXXForRangeStmt(), EmitCXXNewExpr(), EmitCXXThrowExpr(), EmitDoStmt(), EmitDynamicCast(), EmitDynamicCastToNull(), emitFilterDispatchBlock(), EmitForStmt(), EmitIfStmt(), emitInterWarpCopyFunction(), EmitLabel(), EmitLandingPad(), EmitMustTailThunk(), EmitNewArrayInitializer(), emitNonZeroVLAInit(), EmitObjCForCollectionStmt(), EmitOMPAggregateAssign(), EmitOMPAggregateInit(), EmitOMPAggregateReduction(), EmitOMPCopyinClause(), clang::CodeGen::CGOpenMPRuntime::emitOMPIfClause(), EmitOMPInnerLoop(), EmitOMPLastprivateClauseFinal(), EmitOMPLinearClauseFinal(), EmitOMPLoopBody(), EmitOMPSimdDirective(), emitPostUpdateForReductionClause(), emitReduceScratchpadFunction(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitReturnBlock(), EmitSEHTryStmt(), emitShuffleAndReduceFunction(), emitSuspendExpression(), EmitSwitchStmt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitTypeCheck(), EmitTypeidFromVTable(), EmitVTablePtrCheckForCast(), EmitWhileStmt(), emitWriteback(), emitWritebackArg(), EnsureInsertPoint(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), ExitCXXTryStmt(), ExitSEHTryStmt(), FinishFunction(), GenerateCXXGlobalInitFunc(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), and PerformReturnAdjustment().
| void CodeGenFunction::EmitBlockAfterUses | ( | llvm::BasicBlock * | BB | ) |
EmitBlockAfterUses - Emit the given block somewhere hopefully near its uses, and leave the insertion point in it.
Definition at line 473 of file CGStmt.cpp.
References Builder, and CurFn.
Referenced by emitCatchDispatchBlock(), emitCatchPadBlock(), emitFilterDispatchBlock(), ExitCXXTryStmt(), and ExitSEHTryStmt().
| Address CodeGenFunction::emitBlockByrefAddress | ( | Address | baseAddr, |
| const VarDecl * | V, | ||
| bool | followForward = true |
||
| ) |
BuildBlockByrefAddress - Computes the location of the data in a variable which is declared as __block.
Definition at line 2152 of file CGBlocks.cpp.
References getBlockByrefInfo(), and clang::NamedDecl::getName().
Referenced by drillIntoBlockVariable(), EmitScalarInit(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GetAddrOfBlockDecl(), and clang::CodeGen::CodeGenFunction::AutoVarEmission::getObjectAddress().
| Address CodeGenFunction::emitBlockByrefAddress | ( | Address | baseAddr, |
| const BlockByrefInfo & | info, | ||
| bool | followForward, | ||
| const llvm::Twine & | name | ||
| ) |
Definition at line 2159 of file CGBlocks.cpp.
References Builder, clang::CodeGen::BlockByrefInfo::ByrefAlignment, clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), clang::CodeGen::BlockByrefInfo::FieldIndex, clang::CodeGen::BlockByrefInfo::FieldOffset, and clang::CodeGen::CodeGenTypeCache::getPointerSize().
| RValue CodeGenFunction::EmitBlockCallExpr | ( | const CallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 995 of file CGBlocks.cpp.
References clang::CodeGen::CallArgList::add(), clang::CallExpr::arguments(), clang::CodeGen::CodeGenTypes::arrangeBlockFunctionCall(), Builder, clang::Type::castAs(), CGM, clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), EmitCall(), EmitCallArgs(), EmitScalarExpr(), clang::CodeGen::RValue::get(), clang::Type::getAs(), clang::CallExpr::getCallee(), getContext(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CodeGenModule::getGenericBlockLiteralType(), getLangOpts(), clang::BlockPointerType::getPointeeType(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::ASTContext::getPointerType(), clang::ASTContext::getTargetAddressSpace(), clang::Expr::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::frontend::OpenCL, clang::LangAS::opencl_generic, clang::CodeGen::Type, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, clang::ASTContext::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
| llvm::Value * CodeGenFunction::EmitBlockCopyAndAutorelease | ( | llvm::Value * | Block, |
| QualType | Ty | ||
| ) |
Definition at line 3398 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::IdentifierTable::get(), getContext(), clang::SelectorTable::getNullarySelector(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::RValue::getScalarVal(), clang::ASTContext::Idents, Result, and clang::ASTContext::Selectors.
| llvm::Value * CodeGenFunction::EmitBlockLiteral | ( | const BlockExpr * | blockExpr | ) |
Emit a block literal expression in the current function.
Definition at line 700 of file CGBlocks.cpp.
References CGM, computeBlockInfo(), CurFn, findAndRemoveBlockInfo(), FirstBlockInfo, clang::CodeGen::CodeGenModule::getAddrOfGlobalBlockIfEmitted(), clang::BlockExpr::getBlockDecl(), and clang::BlockDecl::hasCaptures().
| void CodeGenFunction::EmitBlockWithFallThrough | ( | llvm::BasicBlock * | BB, |
| const Stmt * | S | ||
| ) |
When instrumenting to collect profile data, the counts for some blocks such as switch cases need to not include the fall-through counts, so emit a branch around the instrumentation code.
When not instrumenting, this just calls EmitBlock().
Definition at line 1044 of file CodeGenFunction.cpp.
References CGM, createBasicBlock(), EmitBlock(), EmitBranch(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getCurrentProfileCount(), clang::CodeGenOptions::hasProfileClangInstr(), HaveInsertPoint(), incrementProfileCounter(), and setCurrentProfileCount().
Referenced by EmitCaseStmt(), EmitCaseStmtRange(), EmitDefaultStmt(), and EmitDoStmt().
| void CodeGenFunction::EmitBoundsCheck | ( | const Expr * | E, |
| const Expr * | Base, | ||
| llvm::Value * | Index, | ||
| QualType | IndexType, | ||
| bool | Accessed | ||
| ) |
Emit a check that Base points into an array object, which we can access at index Index.
Accessed should be false if we this expression is used as an lvalue, for instance in "&Arr[Idx]".
Definition at line 819 of file CGExpr.cpp.
References Builder, getArrayIndexingBound(), clang::Expr::getExprLoc(), and clang::Type::isSignedIntegerOrEnumerationType().
Referenced by emitPointerArithmetic().
| void CodeGenFunction::EmitBranch | ( | llvm::BasicBlock * | Block | ) |
EmitBranch - Emit a branch to the specified basic block from the current insert block, taking care to avoid creation of branches from dummy blocks.
It is legal to call this function even if there is no current insertion point.
This function clears the current insertion point. The caller should follow calls to this function with calls to Emit*Block prior to generation new code.
Definition at line 456 of file CGStmt.cpp.
References Builder.
Referenced by EmitBlock(), EmitBlockWithFallThrough(), clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr(), EmitCXXForRangeStmt(), EmitDynamicCast(), EmitForStmt(), EmitIfStmt(), EmitIndirectGotoStmt(), clang::CodeGen::CGOpenMPRuntime::emitOMPIfClause(), EmitOMPInnerLoop(), EmitOMPSimdDirective(), and EmitWhileStmt().
| void CodeGenFunction::EmitBranchOnBoolExpr | ( | const Expr * | Cond, |
| llvm::BasicBlock * | TrueBlock, | ||
| llvm::BasicBlock * | FalseBlock, | ||
| uint64_t | TrueCount | ||
| ) |
EmitBranchOnBoolExpr - Emit a branch on a boolean condition (e.g.
for an if statement) to the specified blocks. Based on the condition, this might try to simplify the codegen of the conditional based on the branch. TrueCount should be the number of times we expect the condition to evaluate to true based on PGO data.
for an if statement) to the specified blocks. Based on the condition, this might try to simplify the codegen of the conditional based on the branch.
Definition at line 1363 of file CodeGenFunction.cpp.
References clang::CodeGen::CodeGenFunction::ConditionalEvaluation::begin(), Builder, CGM, ConstantFoldsToSimpleInteger(), createBasicBlock(), EmitBlock(), EmitCXXThrowExpr(), clang::CodeGen::CodeGenFunction::ConditionalEvaluation::end(), EvaluateExprAsBool(), clang::FunctionDecl::getBuiltinID(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getCurrentProfileCount(), getLLVMContext(), getProfileCount(), clang::Expr::IgnoreParens(), incrementProfileCounter(), max(), and setCurrentProfileCount().
Referenced by clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr(), EmitIfStmt(), clang::CodeGen::CGOpenMPRuntime::emitOMPIfClause(), EmitOMPInnerLoop(), emitPreCond(), and emitSuspendExpression().
| void CodeGenFunction::EmitBranchThroughCleanup | ( | JumpDest | Dest | ) |
EmitBranchThroughCleanup - Emit a branch from the current insert block through the normal cleanup handling code (if any) and then on to.
Terminate the current block by emitting a branch which might leave the current cleanup-protected scope.
The target scope may not yet be known, in which case this will require a fixup.
As a side-effect, this method clears the insertion point.
Definition at line 1034 of file CGCleanup.cpp.
References clang::CodeGen::EHCleanupScope::addBranchAfter(), clang::CodeGen::EHCleanupScope::addBranchThrough(), Builder, CreateNormalEntry(), createStoreInstBefore(), clang::CodeGen::BranchFixup::Destination, clang::CodeGen::BranchFixup::DestinationIndex, E, clang::CodeGen::EHScopeStack::stable_iterator::encloses(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::CodeGen::CodeGenFunction::JumpDest::getDestIndex(), clang::CodeGen::EHCleanupScope::getEnclosingNormalCleanup(), clang::CodeGen::CodeGenFunction::JumpDest::getScopeDepth(), I, clang::CodeGen::BranchFixup::InitialBranch, clang::CodeGen::EHCleanupScope::isNormalCleanup(), clang::CodeGen::EHScopeStack::stable_iterator::isValid(), clang::CodeGen::BranchFixup::OptimisticBranchBlock, and clang::CodeGen::EHScopeStack::stable_iterator::strictlyEncloses().
Referenced by clang::CodeGen::emitBarrierCall(), EmitBreakStmt(), clang::CodeGen::emitCancellationPointCall(), EmitContinueStmt(), EmitCoreturnStmt(), EmitCXXForRangeStmt(), EmitForStmt(), EmitForwardingCallToLambda(), EmitGotoStmt(), EmitIndirectGotoStmt(), EmitOMPInnerLoop(), EmitReturnStmt(), EmitSEHLeaveStmt(), emitSuspendExpression(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitWhileStmt(), and clang::CodeGen::CodeGenFunction::FinallyInfo::exit().
| void CodeGenFunction::EmitBreakStmt | ( | const BreakStmt & | S | ) |
Definition at line 1120 of file CGStmt.cpp.
References EmitBranchThroughCleanup(), EmitStopPoint(), and HaveInsertPoint().
Referenced by EmitSimpleStmt().
| llvm::Value * CodeGenFunction::EmitBuiltinAvailable | ( | ArrayRef< llvm::Value * > | Args | ) |
Definition at line 3423 of file CGObjC.cpp.
References Builder, clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenTypeCache::Int32Ty, and clang::CodeGen::CodeGenModule::IsOSVersionAtLeastFn.
| RValue CodeGenFunction::EmitBuiltinExpr | ( | const FunctionDecl * | FD, |
| unsigned | BuiltinID, | ||
| const CallExpr * | E, | ||
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 644 of file CGBuiltin.cpp.
References Builder, ceil, copysign, emitBinaryBuiltin(), emitUnaryBuiltin(), clang::Expr::EvaluateAsRValue(), clang::Expr::EvaluateKnownConstInt(), fabs, floor, clang::CodeGen::RValue::get(), clang::CallExpr::getArg(), clang::CodeGen::RValue::getComplex(), clang::APValue::getFloat(), clang::APValue::getInt(), clang::CallExpr::getNumArgs(), clang::Expr::getType(), clang::Expr::EvalStatus::hasSideEffects(), clang::Expr::HasSideEffects(), clang::APValue::isFloat(), clang::APValue::isInt(), nearbyint, prefetch(), Result, rint, round, clang::prec::Shift, trunc, clang::CodeGen::Type, and clang::Expr::EvalResult::Val.
| RValue CodeGenFunction::EmitBuiltinNewDeleteCall | ( | const FunctionProtoType * | Type, |
| const Expr * | Arg, | ||
| bool | IsDelete | ||
| ) |
Definition at line 1296 of file CGExprCXX.cpp.
References EmitCallArgs(), EmitNewDeleteCall(), getContext(), clang::Decl::getTranslationUnitDecl(), clang::DeclContext::lookup(), Name, and clang::FunctionProtoType::param_type_begin().
| void CodeGenFunction::emitByrefStructureInit | ( | const AutoVarEmission & | emission | ) |
Initialize the structural components of a __block variable, i.e.
everything but the actual object.
Definition at line 2277 of file CGBlocks.cpp.
References clang::CodeGen::BLOCK_BYREF_HAS_COPY_DISPOSE, clang::CodeGen::BLOCK_BYREF_LAYOUT_EXTENDED, clang::CodeGen::BLOCK_BYREF_LAYOUT_MASK, clang::CodeGen::BLOCK_BYREF_LAYOUT_NON_OBJECT, clang::CodeGen::BLOCK_BYREF_LAYOUT_STRONG, clang::CodeGen::BLOCK_BYREF_LAYOUT_UNRETAINED, clang::CodeGen::BLOCK_BYREF_LAYOUT_WEAK, clang::CodeGen::CGObjCRuntime::BuildByrefLayout(), Builder, CGM, clang::CodeGen::BlockByrefHelpers::CopyHelper, clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), clang::CodeGen::BlockByrefHelpers::DisposeHelper, clang::ASTContext::getByrefLifetime(), getContext(), clang::CodeGen::CodeGenTypeCache::getIntSize(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerSize(), clang::CodeGen::CodeGenModule::GetTargetTypeStoreSize(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::IntTy, clang::Type::isBlockPointerType(), clang::QualType::isObjCGCWeak(), clang::Type::isObjCObjectPointerType(), clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::Qualifiers::OCL_Strong, clang::Qualifiers::OCL_Weak, and printf().
Referenced by EmitAutoVarInit().
| RValue CodeGenFunction::EmitCall | ( | const CGFunctionInfo & | CallInfo, |
| const CGCallee & | Callee, | ||
| ReturnValueSlot | ReturnValue, | ||
| const CallArgList & | Args, | ||
| llvm::Instruction ** | callOrInvoke = nullptr |
||
| ) |
EmitCall - Generate a call of the given function, expecting the given result type, and using the given argument list which specifies both the LLVM arguments and the types they were derived from.
Definition at line 3695 of file CGCall.cpp.
References clang::CodeGen::CGFunctionInfo::arg_begin(), clang::CodeGen::CGFunctionInfo::arg_size(), BuildAggStore(), Builder, CreateCoercedLoad(), CreateCoercedStore(), deactivateArgCleanupsBeforeCall(), E, emitAddressAtOffset(), EmitInitStoreOfNonAggregate(), emitWritebacks(), clang::CodeGen::CallArgList::freeArgumentMemory(), clang::CharUnits::fromQuantity(), clang::FunctionProtoType::ExtParameterInfo::getABI(), clang::CodeGen::CGCallee::getAbstractInfo(), clang::CodeGen::RValue::getAggregateAddress(), clang::CodeGen::RValue::getAggregatePointer(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::CGFunctionInfo::getArgStruct(), clang::CodeGen::CGFunctionInfo::getArgStructAlignment(), clang::Decl::getAttr(), getBundlesForFunclet(), clang::CodeGen::CGCalleeInfo::getCalleeDecl(), clang::CodeGen::ABIArgInfo::getCanBeFlattened(), clang::CodeGen::CallArgList::getCleanupsToDeactivate(), clang::CodeGen::ABIArgInfo::getCoerceAndExpandType(), clang::CodeGen::ABIArgInfo::getCoerceToType(), clang::CodeGen::ABIArgInfo::getDirectOffset(), clang::CodeGen::CGFunctionInfo::getExtParameterInfo(), clang::CodeGen::CGCallee::getFunctionPointer(), clang::CodeGen::CGCallee::getFunctionType(), clang::CodeGen::ABIArgInfo::getInAllocaFieldIndex(), clang::CodeGen::ABIArgInfo::getIndirectAlign(), clang::CodeGen::ABIArgInfo::getIndirectByVal(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::Address::getName(), clang::CodeGen::ABIArgInfo::getPaddingType(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfo::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::CallArgList::getStackBase(), clang::CodeGen::Address::getType(), clang::CodeGen::ABIArgInfo::getUnpaddedCoerceAndExpandType(), clang::CodeGen::ReturnValueSlot::getValue(), clang::Decl::hasAttr(), clang::CodeGen::CallArgList::hasWritebacks(), I, clang::CodeGen::RValue::isAggregate(), clang::CodeGen::ABIArgInfo::isCoerceAndExpand(), clang::CodeGen::RValue::isComplex(), clang::CodeGen::ABIArgInfo::isDirect(), clang::CodeGen::ABIArgInfo::isInAlloca(), clang::CodeGen::ABIArgInfo::isIndirect(), clang::CodeGen::ReturnValueSlot::isNull(), clang::CodeGen::CGCallee::isOrdinary(), clang::CodeGen::RValue::isScalar(), clang::CodeGen::ReturnValueSlot::isUnused(), clang::CodeGen::Address::isValid(), clang::CodeGen::CGFunctionInfo::isVariadic(), clang::CodeGen::ReturnValueSlot::isVolatile(), clang::CodeGen::RValue::isVolatileQualified(), max(), clang::SwiftErrorResult, clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by emitAtomicLibcall(), EmitBlockCallExpr(), EmitCallAndReturnForThunk(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), EmitCXXConstructorCall(), EmitCXXDestructorCall(), EmitCXXMemberCallExpr(), EmitCXXMemberOrOperatorCall(), EmitCXXMemberPointerCallExpr(), EmitForwardingCallToLambda(), emitLibraryCall(), EmitNewDeleteCall(), EmitObjCForCollectionStmt(), emitStructGetterCall(), emitStructSetterCall(), generateObjCGetterBody(), and generateObjCSetterBody().
| RValue CodeGenFunction::EmitCall | ( | QualType | FnType, |
| const CGCallee & | Callee, | ||
| const CallExpr * | E, | ||
| ReturnValueSlot | ReturnValue, | ||
| llvm::Value * | Chain = nullptr |
||
| ) |
Definition at line 4331 of file CGExpr.cpp.
References clang::CodeGen::CallArgList::add(), clang::CallExpr::arguments(), Builder, clang::LangAS::Default, clang::CodeGen::CGCallee::getAbstractInfo(), clang::CodeGen::CGCalleeInfo::getCalleeDecl(), clang::QualType::getCanonicalType(), clang::CallExpr::getDirectCallee(), clang::CallExpr::getLocStart(), and clang::Type::isFunctionPointerType().
| void CodeGenFunction::EmitCallAndReturnForThunk | ( | llvm::Constant * | Callee, |
| const ThunkInfo * | Thunk | ||
| ) |
Definition at line 255 of file CGVTables.cpp.
References clang::CodeGen::CallArgList::add(), clang::CodeGen::CGCXXABI::adjustCallArgsForDestructorThunk(), clang::CodeGen::CGFunctionInfo::arg_begin(), clang::CodeGen::CGFunctionInfo::arg_size(), clang::CodeGen::CodeGenTypes::arrangeCXXMethodCall(), AutoreleaseResult, CGM, CurFnInfo, CurGD, EmitCall(), EmitDelegateCallArg(), EmitMustTailThunk(), clang::CodeGen::CGCXXABI::EmitReturnFromThunk(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), FinishThunk(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::RequiredArgs::forPrototypePlus(), clang::CodeGen::RValue::get(), clang::Type::getAs(), clang::CodeGen::CGFunctionInfo::getCallingConvention(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::GlobalDecl::getDecl(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::CGFunctionInfo::getRegParm(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfo::getReturnType(), clang::FunctionType::getReturnType(), clang::CXXMethodDecl::getThisType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::CodeGen::CGCXXABI::hasMostDerivedReturn(), hasScalarEvaluationKind(), clang::CodeGen::CGCXXABI::HasThisReturn(), clang::CodeGen::ABIArgInfo::Indirect, clang::CodeGen::CGFunctionInfoArgInfo::info, clang::ReturnAdjustment::isEmpty(), clang::CodeGen::CGFunctionInfo::isNoReturn(), clang::CodeGen::ReturnValueSlot::isNull(), clang::Type::isVoidType(), clang::QualType::isVolatileQualified(), LoadCXXThis(), LoadCXXThisAddress(), clang::FunctionDecl::parameters(), PerformReturnAdjustment(), clang::CodeGen::CGCXXABI::performThisAdjustment(), clang::ThunkInfo::Return, ReturnValue, similar(), clang::ThunkInfo::This, clang::CodeGen::CGFunctionInfoArgInfo::type, clang::CodeGen::CGFunctionInfo::usesInAlloca(), and clang::ASTContext::VoidPtrTy.
Referenced by generateThunk().
| void CodeGenFunction::EmitCallArg | ( | CallArgList & | args, |
| const Expr * | E, | ||
| QualType | ArgType | ||
| ) |
EmitCallArg - Emit a single call argument.
Definition at line 3453 of file CGCall.cpp.
References clang::CodeGen::CallArgList::add(), clang::CodeGen::CallArgList::addArgCleanupDeactivation(), clang::CodeGen::LValue::asAggregateRValue(), clang::CodeGen::AggValueSlot::asRValue(), Builder, createPlaceholderSlot(), E, clang::CodeGen::EHCleanup, emitWritebackArg(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::AggValueSlot::getAddress(), clang::CodeGen::LValue::getAlignment(), clang::Type::getAsCXXRecordDecl(), clang::Expr::getObjectKind(), clang::CXXRecordDecl::hasNonTrivialDestructor(), clang::Expr::isGLValue(), clang::Type::isReferenceType(), clang::CodeGen::LValue::isSimple(), clang::CodeGen::CallArgList::isUsingInAlloca(), clang::CodeGen::LValue::isVolatile(), clang::OK_Ordinary, clang::CodeGen::AggValueSlot::setExternallyDestructed(), and clang::ast_matchers::type.
|
inline |
EmitCallArgs - Emit call arguments for a function.
Definition at line 3750 of file CodeGenFunction.h.
References E, clang::ASTContext::getCanonicalType(), getContext(), I, and isObjCMethodWithTypeParams().
Referenced by commonEmitCXXMemberOrOperatorCall(), EmitBlockCallExpr(), EmitBuiltinNewDeleteCall(), EmitCXXConstructorCall(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitCXXNewExpr(), EmitNVPTXDevicePrintfCallExpr(), EmitObjCMessageExpr(), and EmitSynthesizedCXXCopyCtorCall().
| void CodeGenFunction::EmitCallArgs | ( | CallArgList & | Args, |
| ArrayRef< QualType > | ArgTypes, | ||
| llvm::iterator_range< CallExpr::const_arg_iterator > | ArgRange, | ||
| AbstractCallee | AC = AbstractCallee(), |
||
| unsigned | ParamsToSkip = 0, |
||
| EvaluationOrder | Order = EvaluationOrder::Default |
||
| ) |
Definition at line 3336 of file CGCall.cpp.
References clang::CodeGen::CallArgList::add(), clang::CodeGen::CallArgList::allocateArgumentMemory(), Builder, E, clang::Decl::getAttr(), clang::CodeGen::CodeGenFunction::AbstractCallee::getDecl(), clang::CodeGen::CodeGenFunction::AbstractCallee::getNumParams(), clang::CodeGen::CodeGenFunction::AbstractCallee::getParamDecl(), clang::ASTContext::getSizeType(), clang::ASTContext::getTypeSize(), clang::CodeGen::CodeGenFunction::AbstractCallee::hasFunctionDecl(), I, and isInAllocaArgument().
Definition at line 4108 of file CGExpr.cpp.
References EmitDirectCallee(), clang::Type::getAs(), clang::Type::getPointeeType(), clang::Expr::getReferencedDeclOfCallee(), clang::Expr::getType(), clang::Expr::IgnoreParens(), and clang::Type::isFunctionType().
| RValue CodeGenFunction::EmitCallExpr | ( | const CallExpr * | E, |
| ReturnValueSlot | ReturnValue = ReturnValueSlot() |
||
| ) |
Definition at line 4061 of file CGExpr.cpp.
References E, clang::CodeGen::CGCallee::getBuiltinDecl(), clang::CodeGen::CGCallee::getBuiltinID(), clang::CallExpr::getCallee(), clang::CodeGen::CGCallee::getPseudoDestructorExpr(), clang::Expr::getType(), clang::Type::isBlockPointerType(), clang::CodeGen::CGCallee::isBuiltin(), and clang::CodeGen::CGCallee::isPseudoDestructor().
Definition at line 4205 of file CGExpr.cpp.
References clang::CodeGen::RValue::getAggregateAddress(), clang::CallExpr::getCallReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::Expr::getType(), clang::Type::isReferenceType(), and clang::CodeGen::RValue::isScalar().
| llvm::CallSite CodeGenFunction::EmitCallOrInvoke | ( | llvm::Value * | Callee, |
| ArrayRef< llvm::Value * > | Args, | ||
| const Twine & | Name = "" |
||
| ) |
Emits a call or invoke instruction to the given function, depending on the current state of the EH stack.
Definition at line 3655 of file CGCall.cpp.
References Builder, and getBundlesForFunclet().
Referenced by clang::CodeGen::createOffloadingBinaryDescriptorRegistration(), EmitCapturedStmt(), emitProxyTaskFunction(), emitReduceScratchpadFunction(), emitShuffleAndReduceFunction(), and clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall().
| void CodeGenFunction::EmitCapturedLocals | ( | CodeGenFunction & | ParentCGF, |
| const Stmt * | OutlinedStmt, | ||
| bool | IsFilter | ||
| ) |
Scan the outlined statement for captures from the parent function.
For each capture, mark the capture as escaped and emit a call to llvm.localrecover. Insert the localrecover result into the LocalDeclMap.
Definition at line 1547 of file CGException.cpp.
References AllocaInsertPt, Builder, ConvertTypeForMem(), CurFn, EmitSEHExceptionCodeSave(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), Finder, clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTriple(), clang::ValueDecl::getType(), I, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::VarDecl::isLocalVarDeclOrParm(), clang::Type::isVariablyModifiedType(), recoverAddrOfEscapedLocal(), and SEHCodeSlotStack.
Referenced by startOutlinedSEHHelper().
| llvm::Function * CodeGenFunction::EmitCapturedStmt | ( | const CapturedStmt & | S, |
| CapturedRegionKind | K | ||
| ) |
Generate an outlined function for the body of a CapturedStmt, store any captured variables into the captured struct, and call the outlined function.
Definition at line 2250 of file CGStmt.cpp.
References CapturedStmtInfo, CGM, EmitCallOrInvoke(), GenerateCapturedStmtFunction(), clang::CodeGen::LValue::getPointer(), and InitCapturedStruct().
Referenced by EmitStmt().
| void CodeGenFunction::EmitCaseStmt | ( | const CaseStmt & | S | ) |
Definition at line 1225 of file CGStmt.cpp.
References Builder, CGM, createBasicBlock(), EmitBlockWithFallThrough(), EmitCaseStmtRange(), EmitStmt(), clang::Expr::EvaluateKnownConstInt(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CaseStmt::getLHS(), getProfileCount(), clang::CaseStmt::getRHS(), clang::CaseStmt::getSubStmt(), clang::CodeGenOptions::hasProfileClangInstr(), isObviouslyBranchWithoutCleanups(), and S.
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitCaseStmtRange | ( | const CaseStmt & | S | ) |
EmitCaseStmtRange - If case statement range is not too big then add multiple cases to switch instruction, one for each value within the range.
If range is too big then emit "if" condition check.
Definition at line 1147 of file CGStmt.cpp.
References Builder, createBasicBlock(), CurFn, EmitBlockWithFallThrough(), EmitStmt(), clang::Expr::EvaluateKnownConstInt(), getContext(), clang::CaseStmt::getLHS(), getProfileCount(), clang::CaseStmt::getRHS(), clang::CaseStmt::getSubStmt(), and I.
Referenced by EmitCaseStmt().
EmitCastLValue - Casts are never lvalues unless that cast is to a reference type.
If the cast is to a reference, we can have the usual lvalue result, otherwise if a cast is needed by the code generator in an lvalue context, then it must mean that we need the address of an aggregate in order to access one of its members. This can happen for all the reasons that casts are permitted with aggregate result, including noop aggregate casts, and cast from scalar to union.
Definition at line 3889 of file CGExpr.cpp.
References Builder, E, clang::CodeGen::LValue::getAddress(), clang::Type::getAs(), clang::CodeGen::LValue::getBaseInfo(), clang::CastExpr::getCastKind(), clang::RecordType::getDecl(), clang::Expr::getExprLoc(), clang::Stmt::getLocStart(), clang::CastExpr::getSubExpr(), clang::Expr::getType(), clang::CastExpr::path_begin(), and clang::CastExpr::path_end().
| llvm::Value * CodeGenFunction::EmitCastToVoidPtr | ( | llvm::Value * | value | ) |
Emit a cast to void* in the appropriate address space.
Definition at line 49 of file CGExpr.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), getLLVMContext(), and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by AddDirectArgument(), EmitAtomicExpr(), EmitAtomicStore(), and EmitNullBaseClassInitialization().
| void CodeGenFunction::EmitCfiCheckFail | ( | ) |
Emit a cross-DSO CFI failure handling function.
Definition at line 2896 of file CGExpr.cpp.
References Builder, clang::Create(), clang::Decl::getLocation(), clang::HiddenVisibility, and clang::ImplicitParamDecl::Other.
Referenced by clang::CodeGen::CodeGenModule::Release().
| void CodeGenFunction::EmitCfiCheckStub | ( | ) |
Emit a stub for the cross-DSO CFI check function.
Definition at line 2873 of file CGExpr.cpp.
References clang::Create().
Referenced by clang::CodeGen::CodeGenModule::Release().
| void CodeGenFunction::EmitCfiSlowPathCheck | ( | SanitizerMask | Kind, |
| llvm::Value * | Cond, | ||
| llvm::ConstantInt * | TypeId, | ||
| llvm::Value * | Ptr, | ||
| ArrayRef< llvm::Constant * > | StaticArgs | ||
| ) |
Emit a slow path cross-DSO CFI check which calls __cfi_slowpath if Cond if false.
Definition at line 2827 of file CGExpr.cpp.
Referenced by EmitVTablePtrCheck().
| void CodeGenFunction::EmitCheck | ( | ArrayRef< std::pair< llvm::Value *, SanitizerMask >> | Checked, |
| SanitizerHandler | Check, | ||
| ArrayRef< llvm::Constant * > | StaticArgs, | ||
| ArrayRef< llvm::Value * > | DynamicArgs | ||
| ) |
Create a basic block that will call a handler function in a sanitizer runtime with the provided arguments, and create a conditional branch to it.
Definition at line 2719 of file CGExpr.cpp.
References Builder, emitCheckHandlerCall(), getRecoverableKind(), and Node.
Referenced by EmitCheckedInBoundsGEP(), EmitNullabilityCheck(), EmitVariablyModifiedType(), EmitVTablePtrCheck(), EmitVTableTypeCheckedLoad(), and GenerateCode().
| Value * CodeGenFunction::EmitCheckedInBoundsGEP | ( | llvm::Value * | Ptr, |
| ArrayRef< llvm::Value * > | IdxList, | ||
| bool | SignedIndices, | ||
| bool | IsSubtraction, | ||
| SourceLocation | Loc, | ||
| const Twine & | Name = "" |
||
| ) |
Same as IRBuilder::CreateInBoundsGEP, but additionally emits a check to detect undefined behavior when the pointer overflow sanitizer is enabled.
SignedIndices indicates whether any of the GEP indices are signed. IsSubtraction indicates whether the expression used to form the GEP is a subtraction.
Return the result of the given binary operation.
Definition at line 3856 of file CGExprScalar.cpp.
References Builder, CGM, EmitCheck(), EmitCheckSourceLocation(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenTypeCache::IntPtrTy, and SanOpts.
Referenced by emitArraySubscriptGEP(), and emitPointerArithmetic().
| LValue CodeGenFunction::EmitCheckedLValue | ( | const Expr * | E, |
| TypeCheckKind | TCK | ||
| ) |
Same as EmitLValue but additionally we generate checking code to guard against undefined behavior.
This is only suitable when we know that the address will be used to access the object.
Definition at line 1046 of file CGExpr.cpp.
References E, clang::CodeGen::LValue::getAlignment(), clang::Expr::getExprLoc(), clang::CodeGen::LValue::getPointer(), clang::Expr::getType(), clang::CodeGen::LValue::isBitField(), clang::CodeGen::LValue::isSimple(), and clang::SanitizerSet::set().
| llvm::Constant * CodeGenFunction::EmitCheckSourceLocation | ( | SourceLocation | Loc | ) |
Emit a description of a source location in a format suitable for passing to a runtime sanitizer handler.
Emit a representation of a SourceLocation for passing to a handler in a sanitizer runtime library.
The format for this data is:
For an invalid SourceLocation, the Filename pointer is null.
Definition at line 2591 of file CGExpr.cpp.
References Builder, clang::format::Column(), Filename, clang::PresumedLoc::getColumn(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), I, INT_MIN, clang::PresumedLoc::isValid(), and Line.
Referenced by EmitCheckedInBoundsGEP(), EmitNullabilityCheck(), EmitReturnStmt(), EmitVariablyModifiedType(), EmitVTablePtrCheck(), and GenerateCode().
| llvm::Constant * CodeGenFunction::EmitCheckTypeDescriptor | ( | QualType | T | ) |
Emit a description of a type in a format suitable for passing to a runtime sanitizer handler.
Emit a type description suitable for use by a runtime sanitizer library.
The format of a type descriptor is
followed by an array of i8 containing the type name. TypeKind is 0 for an integer, 1 for a floating point value, and -1 for anything else.
Definition at line 2513 of file CGExpr.cpp.
References clang::DiagnosticsEngine::ak_qualtype, Buffer, Builder, clang::QualType::getAsOpaquePtr(), clang::Type::isFloatingType(), clang::Type::isIntegerType(), clang::Type::isSignedIntegerType(), and clang::None.
Referenced by EmitNullabilityCheck(), EmitVariablyModifiedType(), and EmitVTablePtrCheck().
| llvm::Value * CodeGenFunction::EmitCheckValue | ( | llvm::Value * | V | ) |
Convert a value into a format suitable for passing to a runtime sanitizer handler.
Definition at line 2556 of file CGExpr.cpp.
References Builder, and clang::CodeGen::Address::getPointer().
| RValue CodeGenFunction::EmitCoawaitExpr | ( | const CoawaitExpr & | E, |
| AggValueSlot | aggSlot = AggValueSlot::ignored(), |
||
| bool | ignoreResult = false |
||
| ) |
Definition at line 221 of file CGCoroutine.cpp.
References CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, and emitSuspendExpression().
| LValue CodeGenFunction::EmitCoawaitLValue | ( | const CoawaitExpr * | E | ) |
Definition at line 254 of file CGCoroutine.cpp.
References CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, emitSuspendExpression(), getContext(), getCoroutineSuspendExprReturnType(), and clang::CodeGen::AggValueSlot::ignored().
| Value * CodeGenFunction::EmitCommonNeonBuiltinExpr | ( | unsigned | BuiltinID, |
| unsigned | LLVMIntrinsic, | ||
| unsigned | AltLLVMIntrinsic, | ||
| const char * | NameHint, | ||
| unsigned | Modifier, | ||
| const CallExpr * | E, | ||
| SmallVectorImpl< llvm::Value * > & | Ops, | ||
| Address | PtrOp0, | ||
| Address | PtrOp1 | ||
| ) |
Definition at line 3786 of file CGBuiltin.cpp.
References Builder, CGM, ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateDefaultAlignedStore(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CodeGenTypeCache::DoubleTy, EmitNeonCall(), EmitNeonRShiftImm(), EmitNeonShiftVector(), EmitNeonSplat(), fabs, clang::NeonTypeFlags::Float32, clang::CodeGen::CodeGenTypeCache::FloatTy, fma, clang::CallExpr::getArg(), getContext(), GetFloatNeonType(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), GetNeonType(), clang::CallExpr::getNumArgs(), getTarget(), clang::Expr::getType(), I, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::Expr::isIntegerConstantExpr(), LookupNeonLLVMIntrinsic(), clang::CodeGen::CodeGenTypeCache::SizeTy, clang::CodeGen::Type, and UnsignedAlts.
Referenced by EmitAArch64BuiltinExpr(), and EmitARMBuiltinExpr().
| LValue CodeGenFunction::EmitComplexAssignmentLValue | ( | const BinaryOperator * | E | ) |
Emit an l-value for an assignment (simple or compound) of complex type.
Definition at line 1087 of file CGExprComplex.cpp.
References clang::BinaryOperator::getOpcode().
| LValue CodeGenFunction::EmitComplexCompoundAssignmentLValue | ( | const CompoundAssignOperator * | E | ) |
Definition at line 1108 of file CGExprComplex.cpp.
References getComplexOp(), and clang::BinaryOperator::getOpcode().
| ComplexPairTy CodeGenFunction::EmitComplexExpr | ( | const Expr * | E, |
| bool | IgnoreReal = false, |
||
| bool | IgnoreImag = false |
||
| ) |
EmitComplexExpr - Emit the computation of the specified expression of complex type, returning the result.
EmitComplexExpr - Emit the computation of the specified expression of complex type, ignoring the result.
Definition at line 1057 of file CGExprComplex.cpp.
References getComplexType(), and clang::Expr::getType().
Referenced by EmitAnyExpr(), EmitAtomicInit(), EmitExprAsInit(), and EvaluateExprAsBool().
EmitComplexExprIntoLValue - Emit the given expression of complex type and place its result into the specified l-value.
Definition at line 1066 of file CGExprComplex.cpp.
References getComplexType(), and clang::Expr::getType().
Referenced by EmitAnyExprToMem(), EmitDeclInit(), EmitInitializerForField(), EmitReturnStmt(), and StoreAnyExprIntoOneUnit().
| CodeGenFunction::ComplexPairTy CodeGenFunction::EmitComplexPrePostIncDec | ( | const UnaryOperator * | E, |
| LValue | LV, | ||
| bool | isInc, | ||
| bool | isPre | ||
| ) |
Definition at line 848 of file CGExpr.cpp.
References Builder, clang::Type::getAs(), clang::UnaryOperator::getExprLoc(), and clang::Expr::getType().
| Value * CodeGenFunction::EmitComplexToScalarConversion | ( | ComplexPairTy | Src, |
| QualType | SrcTy, | ||
| QualType | DstTy, | ||
| SourceLocation | Loc | ||
| ) |
Emit a conversion from the specified complex type to the specified destination type, where the destination type is an LLVM scalar type.
Definition at line 3772 of file CGExprScalar.cpp.
References hasScalarEvaluationKind(), and clang::Type::isAnyComplexType().
Referenced by convertToScalarValue(), and EvaluateExprAsBool().
| LValue CodeGenFunction::EmitCompoundAssignmentLValue | ( | const CompoundAssignOperator * | E | ) |
Definition at line 3807 of file CGExprScalar.cpp.
References COMPOUND_OP, and clang::BinaryOperator::getOpcode().
| LValue CodeGenFunction::EmitCompoundLiteralLValue | ( | const CompoundLiteralExpr * | E | ) |
Definition at line 3760 of file CGExpr.cpp.
References clang::CompoundLiteralExpr::getInitializer(), clang::QualType::getQualifiers(), clang::Expr::getType(), clang::CompoundLiteralExpr::isFileScope(), clang::Type::isVariablyModifiedType(), and Result.
| Address CodeGenFunction::EmitCompoundStmt | ( | const CompoundStmt & | S, |
| bool | GetLast = false, |
||
| AggValueSlot | AggSlot = AggValueSlot::ignored() |
||
| ) |
EmitCompoundStmt - Emit a compound statement {..} node.
If GetLast is true, this captures the expression result of the last sub-statement and returns it (for use by the statement expression extension).
Definition at line 363 of file CGStmt.cpp.
References EmitCompoundStmtWithoutScope(), getContext(), clang::CompoundStmt::getLBracLoc(), and clang::Stmt::getSourceRange().
Referenced by EmitSimpleStmt().
| Address CodeGenFunction::EmitCompoundStmtWithoutScope | ( | const CompoundStmt & | S, |
| bool | GetLast = false, |
||
| AggValueSlot | AVS = AggValueSlot::ignored() |
||
| ) |
Definition at line 375 of file CGStmt.cpp.
References clang::CompoundStmt::body_back(), clang::CompoundStmt::body_begin(), clang::CompoundStmt::body_end(), CreateMemTemp(), E, EmitAggExpr(), EmitAnyExprToMem(), EmitLabel(), EmitStmt(), EnsureInsertPoint(), hasAggregateEvaluationKind(), I, and clang::CodeGen::Address::invalid().
Referenced by EmitCompoundStmt(), EmitFunctionBody(), and GenerateObjCMethod().
| LValue CodeGenFunction::EmitConditionalOperatorLValue | ( | const AbstractConditionalOperator * | E | ) |
Definition at line 3804 of file CGExpr.cpp.
References clang::CodeGen::CodeGenFunction::ConditionalEvaluation::begin(), Builder, EmitLValueOrThrowExpression(), clang::CodeGen::CodeGenFunction::ConditionalEvaluation::end(), clang::AbstractConditionalOperator::getCond(), clang::AbstractConditionalOperator::getFalseExpr(), clang::AbstractConditionalOperator::getTrueExpr(), clang::Expr::getType(), clang::Expr::isGLValue(), max(), and min().
| void CodeGenFunction::EmitConstructorBody | ( | FunctionArgList & | Args | ) |
EmitConstructorBody - Emits the body of the current constructor.
Definition at line 803 of file CGClass.cpp.
References CGM, clang::Ctor_Base, clang::Ctor_Complete, CurGD, EmitAsanPrologueOrEpilogue(), EmitCtorPrologue(), EmitDelegateCXXConstructorCall(), EmitStmt(), EnterCXXTryStmt(), ExitCXXTryStmt(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::FunctionDecl::getBody(), clang::GlobalDecl::getCtorType(), clang::TargetInfo::getCXXABI(), clang::GlobalDecl::getDecl(), clang::Decl::getLocEnd(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetCXXABI::hasConstructorVariants(), incrementProfileCounter(), and IsConstructorDelegationValid().
Referenced by GenerateCode().
| void CodeGenFunction::EmitContinueStmt | ( | const ContinueStmt & | S | ) |
Definition at line 1132 of file CGStmt.cpp.
References EmitBranchThroughCleanup(), EmitStopPoint(), and HaveInsertPoint().
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitCoreturnStmt | ( | const CoreturnStmt & | S | ) |
Definition at line 235 of file CGCoroutine.cpp.
References CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, EmitBranchThroughCleanup(), and EmitStmt().
Referenced by EmitStmt().
| void CodeGenFunction::EmitCoroutineBody | ( | const CoroutineBodyStmt & | S | ) |
Definition at line 496 of file CGCoroutine.cpp.
References Builder, CGM, clang::CXXTryStmt::Create(), createBasicBlock(), createCoroData(), CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, clang::CodeGen::EHCleanup, EHStack, EmitBlock(), emitBodyAndFallthrough(), EmitScalarExpr(), EmitStmt(), EnterCXXTryStmt(), ExitCXXTryStmt(), GetAddrOfLocalVar(), clang::CoroutineBodyStmt::getAllocate(), clang::CoroutineBodyStmt::getBody(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CoroutineBodyStmt::getDeallocate(), clang::CoroutineBodyStmt::getExceptionHandler(), clang::CoroutineBodyStmt::getFinalSuspendStmt(), clang::CoroutineBodyStmt::getInitSuspendStmt(), clang::CodeGen::CodeGenModule::getIntrinsic(), getJumpDestInCurrentScope(), clang::CoroutineBodyStmt::getLocStart(), clang::TargetInfo::getNewAlign(), clang::CoroutineBodyStmt::getParamMoves(), clang::CoroutineBodyStmt::getPromiseDecl(), clang::CoroutineBodyStmt::getPromiseDeclStmt(), clang::CoroutineBodyStmt::getReturnStmt(), clang::CoroutineBodyStmt::getReturnStmtOnAllocFailure(), clang::ASTContext::getTargetInfo(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::NormalAndEHCleanup, and clang::CodeGen::CodeGenTypeCache::VoidPtrTy.
Referenced by EmitStmt().
Definition at line 628 of file CGCoroutine.cpp.
References clang::CallExpr::arguments(), Builder, CGM, createCoroData(), CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, EmitScalarExpr(), clang::CodeGen::CodeGenModule::Error(), clang::CodeGen::RValue::get(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), and clang::CallExpr::getLocStart().
| RValue CodeGenFunction::EmitCoyieldExpr | ( | const CoyieldExpr & | E, |
| AggValueSlot | aggSlot = AggValueSlot::ignored(), |
||
| bool | ignoreResult = false |
||
| ) |
Definition at line 228 of file CGCoroutine.cpp.
References CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, and emitSuspendExpression().
| LValue CodeGenFunction::EmitCoyieldLValue | ( | const CoyieldExpr * | E | ) |
Definition at line 264 of file CGCoroutine.cpp.
References CurCoro, clang::CodeGen::CodeGenFunction::CGCoroInfo::Data, emitSuspendExpression(), getContext(), getCoroutineSuspendExprReturnType(), and clang::CodeGen::AggValueSlot::ignored().
| void CodeGenFunction::EmitCtorPrologue | ( | const CXXConstructorDecl * | CD, |
| CXXCtorType | CtorType, | ||
| FunctionArgList & | Args | ||
| ) |
EmitCtorPrologue - This routine generates necessary code to initialize base classes and non-static data members belonging to this constructor.
Definition at line 1239 of file CGClass.cpp.
References Builder, CGM, E, EmitBaseInitializer(), EmitBlock(), clang::CodeGen::CGCXXABI::EmitCtorCompleteObjectHandler(), EmitDelegatingCXXConstructorCall(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::TargetInfo::getCXXABI(), clang::CXXRecordDecl::getNumVBases(), clang::CXXMethodDecl::getParent(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetCXXABI::hasConstructorVariants(), clang::CXXConstructorDecl::init_begin(), clang::CXXConstructorDecl::init_end(), InitializeVTablePointers(), clang::CXXCtorInitializer::isAnyMemberInitializer(), clang::CXXCtorInitializer::isBaseInitializer(), clang::CXXConstructorDecl::isDelegatingConstructor(), isInitializerOfDynamicClass(), LoadCXXThis(), and LoadCXXThisAddress().
Referenced by EmitConstructorBody(), and EmitInlinedInheritingCXXConstructorCall().
| RValue CodeGenFunction::EmitCUDAKernelCallExpr | ( | const CUDAKernelCallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 460 of file CGExprCXX.cpp.
References CGM, clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr(), and clang::CodeGen::CodeGenModule::getCUDARuntime().
| void CodeGenFunction::EmitCXXAggrConstructorCall | ( | const CXXConstructorDecl * | ctor, |
| const ArrayType * | arrayType, | ||
| Address | arrayBegin, | ||
| const CXXConstructExpr * | E, | ||
| bool | zeroInitialize = false |
||
| ) |
EmitCXXAggrConstructorCall - Emit a loop to call a particular constructor for each of several members of an array.
| ctor | the constructor to call for each element |
| arrayType | the type of the array to initialize |
| arrayBegin | an arrayType* |
| zeroInitialize | true if each element should be zero-initialized before it is constructed |
Definition at line 1818 of file CGClass.cpp.
References emitArrayLength().
Referenced by EmitCXXConstructExpr(), and EmitNewArrayInitializer().
| void CodeGenFunction::EmitCXXAggrConstructorCall | ( | const CXXConstructorDecl * | ctor, |
| llvm::Value * | numElements, | ||
| Address | arrayBase, | ||
| const CXXConstructExpr * | E, | ||
| bool | zeroInitialize = false |
||
| ) |
EmitCXXAggrConstructorCall - Emit a loop to call a particular constructor for each of several members of an array.
| ctor | the constructor to call for each element |
| numElements | the number of elements in the array; may be zero |
| arrayBase | a T*, where T is the type constructed by ctor |
| zeroInitialize | true if each element should be zero-initialized before it is constructed |
Definition at line 1837 of file CGClass.cpp.
References clang::CharUnits::alignmentOfArrayElement(), Builder, createBasicBlock(), clang::Ctor_Complete, destroyCXXObject, EmitBlock(), EmitCXXConstructorCall(), EmitNullInitialization(), clang::CodeGen::Address::getAlignment(), getContext(), getLangOpts(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getTypeDeclType(), clang::CXXRecordDecl::hasTrivialDestructor(), pushRegularPartialArrayCleanup(), clang::CodeGen::CodeGenTypeCache::SizeTy, and clang::ast_matchers::type.
| LValue CodeGenFunction::EmitCXXBindTemporaryLValue | ( | const CXXBindTemporaryExpr * | E | ) |
| void CodeGenFunction::EmitCXXConstructExpr | ( | const CXXConstructExpr * | E, |
| AggValueSlot | Dest | ||
| ) |
Definition at line 553 of file CGExprCXX.cpp.
References clang::CXXConstructExpr::CK_Complete, clang::CXXConstructExpr::CK_Delegating, clang::CXXConstructExpr::CK_NonVirtualBase, clang::CXXConstructExpr::CK_VirtualBase, clang::Ctor_Base, clang::Ctor_Complete, CurGD, E, EmitAggExpr(), EmitCXXAggrConstructorCall(), EmitCXXConstructorCall(), EmitNullBaseClassInitialization(), EmitNullInitialization(), clang::CodeGen::AggValueSlot::getAddress(), clang::CXXConstructExpr::getArg(), clang::ASTContext::getAsArrayType(), clang::CXXConstructExpr::getConstructionKind(), clang::CXXConstructExpr::getConstructor(), getContext(), clang::GlobalDecl::getCtorType(), getLangOpts(), clang::Expr::getType(), clang::CXXConstructExpr::isElidable(), clang::CodeGen::AggValueSlot::isIgnored(), clang::Expr::isTemporaryObject(), clang::CodeGen::AggValueSlot::isZeroed(), and clang::CXXConstructExpr::requiresZeroInitialization().
| LValue CodeGenFunction::EmitCXXConstructLValue | ( | const CXXConstructExpr * | E | ) |
Definition at line 4224 of file CGExpr.cpp.
References clang::Type::getAsCXXRecordDecl(), clang::Expr::getType(), and clang::CXXRecordDecl::hasTrivialDestructor().
| void CodeGenFunction::EmitCXXConstructorCall | ( | const CXXConstructorDecl * | D, |
| CXXCtorType | Type, | ||
| bool | ForVirtualBase, | ||
| bool | Delegating, | ||
| Address | This, | ||
| const CXXConstructExpr * | E | ||
| ) |
Definition at line 1947 of file CGClass.cpp.
References clang::CodeGen::CallArgList::add(), clang::CXXConstructExpr::arguments(), clang::Type::castAs(), Default, EmitAggregateCopyCtor(), EmitCallArgs(), EmitLValue(), ForceLeftToRight, clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::CXXConstructExpr::getArg(), clang::CXXConstructExpr::getConstructor(), getContext(), clang::CXXConstructExpr::getNumArgs(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::CXXMethodDecl::getThisType(), clang::ValueDecl::getType(), clang::ASTContext::getTypeDeclType(), clang::CXXConstructExpr::isListInitialization(), and isMemcpyEquivalentSpecialMember().
Referenced by EmitCXXAggrConstructorCall(), EmitCXXConstructExpr(), EmitDelegateCXXConstructorCall(), EmitInheritedCXXConstructorCall(), and EmitSynthesizedCXXCopyCtorCall().
| void CodeGenFunction::EmitCXXConstructorCall | ( | const CXXConstructorDecl * | D, |
| CXXCtorType | Type, | ||
| bool | ForVirtualBase, | ||
| bool | Delegating, | ||
| Address | This, | ||
| CallArgList & | Args | ||
| ) |
Definition at line 2006 of file CGClass.cpp.
References clang::CodeGen::CGCXXABI::addImplicitConstructorArgs(), clang::CodeGen::CodeGenTypes::arrangeCXXConstructorCall(), canEmitDelegateCallArgs(), clang::CodeGen::CGCXXABI::canSpeculativelyEmitVTable(), CGM, clang::Ctor_Base, EmitAggregateCopyCtor(), EmitCall(), EmitInlinedInheritingCXXConstructorCall(), EmitTypeCheck(), EmitVTableAssumptionLoads(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::CodeGenModule::getAddrOfCXXStructor(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::getFromCtorType(), clang::CXXConstructorDecl::getInheritedConstructor(), getNaturalTypeAlignment(), clang::QualType::getNonReferenceType(), clang::FunctionDecl::getParamDecl(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getRecordType(), clang::ValueDecl::getType(), clang::ASTContext::getTypeDeclType(), clang::CodeGen::CodeGenModule::getTypes(), getTypes(), clang::CodeGen::CodeGenTypes::inheritingCtorHasParams(), clang::CXXConstructorDecl::isDefaultConstructor(), clang::CXXRecordDecl::isDynamicClass(), isMemcpyEquivalentSpecialMember(), clang::FunctionDecl::isTrivial(), clang::CodeGen::CGCXXABI::AddedStructorArgs::Prefix, clang::CodeGen::CGCXXABI::AddedStructorArgs::Suffix, and TCK_ConstructorCall.
| void CodeGenFunction::EmitCXXDeleteExpr | ( | const CXXDeleteExpr * | E | ) |
Definition at line 1921 of file CGExprCXX.cpp.
References Builder, ConvertTypeForMem(), createBasicBlock(), EmitArrayDelete(), EmitBlock(), EmitObjectDelete(), EmitPointerWithAlignment(), clang::CodeGen::Address::getAlignment(), clang::CXXDeleteExpr::getArgument(), clang::Type::getAs(), getContext(), clang::CodeGen::Address::getElementType(), clang::CodeGen::Address::getPointer(), clang::Expr::getType(), clang::CXXDeleteExpr::isArrayForm(), and clang::Type::isConstantArrayType().
| void CodeGenFunction::EmitCXXDestructorCall | ( | const CXXDestructorDecl * | D, |
| CXXDtorType | Type, | ||
| bool | ForVirtualBase, | ||
| bool | Delegating, | ||
| Address | This | ||
| ) |
Definition at line 2302 of file CGClass.cpp.
References CGM, clang::CodeGen::CGCXXABI::EmitDestructorCall(), and clang::CodeGen::CodeGenModule::getCXXABI().
Referenced by EmitDestructorBody(), and EmitObjectDelete().
| RValue CodeGenFunction::EmitCXXDestructorCall | ( | const CXXDestructorDecl * | DD, |
| const CGCallee & | Callee, | ||
| llvm::Value * | This, | ||
| llvm::Value * | ImplicitParam, | ||
| QualType | ImplicitParamTy, | ||
| const CallExpr * | E, | ||
| StructorType | Type | ||
| ) |
Definition at line 94 of file CGExprCXX.cpp.
References clang::CodeGen::CodeGenTypes::arrangeCXXStructorDeclaration(), CGM, commonEmitCXXMemberOrOperatorCall(), EmitCall(), and clang::CodeGen::CodeGenModule::getTypes().
| void CodeGenFunction::EmitCXXForRangeStmt | ( | const CXXForRangeStmt & | S, |
| ArrayRef< const Attr * > | Attrs = None |
||
| ) |
Definition at line 935 of file CGStmt.cpp.
References Builder, CGM, createBasicBlock(), EmitBlock(), EmitBranch(), EmitBranchThroughCleanup(), EmitStmt(), EmitStopPoint(), EvaluateExprAsBool(), clang::SourceRange::getBegin(), clang::CXXForRangeStmt::getBeginStmt(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::CXXForRangeStmt::getBody(), clang::CXXForRangeStmt::getCond(), clang::CodeGen::CodeGenModule::getContext(), clang::SourceRange::getEnd(), clang::CXXForRangeStmt::getEndStmt(), clang::CXXForRangeStmt::getInc(), getJumpDestInCurrentScope(), clang::CXXForRangeStmt::getLoopVarStmt(), getProfileCount(), clang::CXXForRangeStmt::getRangeStmt(), clang::Stmt::getSourceRange(), incrementProfileCounter(), LoopStack, clang::CodeGen::LoopInfoStack::pop(), clang::CodeGen::LoopInfoStack::push(), and SourceLocToDebugLoc().
Referenced by EmitAttributedStmt(), and EmitStmt().
| void CodeGenFunction::EmitCXXGlobalVarDeclInit | ( | const VarDecl & | D, |
| llvm::Constant * | DeclPtr, | ||
| bool | PerformInit | ||
| ) |
EmitCXXGlobalVarDeclInit - Create the initializer for a C++ variable with global storage.
Definition at line 142 of file CGDeclCXX.cpp.
References CGM, clang::CodeGen::CodeGenTypes::ConvertTypeForMem(), EmitDeclDestroy(), EmitDeclInit(), EmitDeclInvariant(), EmitReferenceBindingToExpr(), EmitStoreOfScalar(), clang::Decl::getAttr(), getContext(), getDeclAlign(), clang::VarDecl::getInit(), getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::CodeGen::RValue::getScalarVal(), clang::ASTContext::getTargetAddressSpace(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::Decl::hasAttr(), clang::Type::isReferenceType(), clang::CodeGen::CodeGenModule::isTypeConstant(), and clang::CodeGen::Type.
Referenced by GenerateCXXGlobalVarDeclInitFunc().
| void CodeGenFunction::EmitCXXGuardedInit | ( | const VarDecl & | D, |
| llvm::GlobalVariable * | DeclPtr, | ||
| bool | PerformInit | ||
| ) |
Emit code in this function to perform a guarded variable initialization.
Guarded initializations are used when it's not possible to prove that an initialization will be done exactly once, e.g. with a static local variable or a static data member of a class template.
Definition at line 248 of file CGDeclCXX.cpp.
References CGM, clang::CodeGen::CGCXXABI::EmitGuardedInit(), clang::CodeGen::CodeGenModule::Error(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getCXXABI(), and clang::Decl::getLocation().
Referenced by AddInitializerToStaticVarDecl(), and GenerateCXXGlobalVarDeclInitFunc().
| RValue CodeGenFunction::EmitCXXMemberCallExpr | ( | const CXXMemberCallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 166 of file CGExprCXX.cpp.
References CGM, EmitCall(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::MemberExpr::getBase(), clang::CallExpr::getCallee(), getContext(), clang::MemberExpr::getMemberDecl(), clang::MemberExpr::getQualifier(), clang::MemberExpr::hasQualifier(), clang::Expr::IgnoreParens(), and clang::MemberExpr::isArrow().
| Address CodeGenFunction::EmitCXXMemberDataPointerAddress | ( | const Expr * | E, |
| Address | base, | ||
| llvm::Value * | memberPtr, | ||
| const MemberPointerType * | memberPtrType, | ||
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
Emit the address of a field using a member data pointer.
| E | Only used for emergency diagnostics |
Definition at line 129 of file CGClass.cpp.
References CGM, clang::CodeGen::CGCXXABI::EmitMemberDataPointerAddress(), clang::CodeGen::Address::getAlignment(), clang::Type::getAsCXXRecordDecl(), clang::MemberPointerType::getClass(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::CodeGenModule::getDynamicOffsetAlignment(), getNaturalTypeAlignment(), and clang::MemberPointerType::getPointeeType().
Referenced by EmitMaterializeTemporaryExpr().
| RValue CodeGenFunction::EmitCXXMemberOrOperatorCall | ( | const CXXMethodDecl * | Method, |
| const CGCallee & | Callee, | ||
| ReturnValueSlot | ReturnValue, | ||
| llvm::Value * | This, | ||
| llvm::Value * | ImplicitParam, | ||
| QualType | ImplicitParamTy, | ||
| const CallExpr * | E, | ||
| CallArgList * | RtlArgs | ||
| ) |
Definition at line 80 of file CGExprCXX.cpp.
References clang::CodeGen::CodeGenTypes::arrangeCXXMethodCall(), clang::Type::castAs(), CGM, commonEmitCXXMemberOrOperatorCall(), EmitCall(), clang::ValueDecl::getType(), and clang::CodeGen::CodeGenModule::getTypes().
Referenced by EmitCXXMemberOrOperatorMemberCallExpr().
| RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr | ( | const CallExpr * | CE, |
| const CXXMethodDecl * | MD, | ||
| ReturnValueSlot | ReturnValue, | ||
| bool | HasQualifier, | ||
| NestedNameSpecifier * | Qualifier, | ||
| bool | IsArrow, | ||
| const Expr * | Base | ||
| ) |
Definition at line 192 of file CGExprCXX.cpp.
References clang::CodeGen::CGCXXABI::adjustThisArgumentForVirtualFunctionCall(), clang::CallExpr::arg_begin(), clang::CallExpr::arg_end(), clang::CallExpr::arguments(), clang::CodeGen::CodeGenTypes::arrangeCXXMethodDeclaration(), clang::CodeGen::CodeGenTypes::arrangeCXXStructorDeclaration(), BuildAppleKextVirtualCall(), clang::Type::castAs(), CFITCK_NVCall, CGM, clang::CodeGen::Complete, clang::Ctor_Complete, clang::Dtor_Complete, EmitAggregateAssign(), EmitAggregateCopy(), EmitCallArgs(), EmitCXXMemberOrOperatorCall(), EmitLValue(), EmitPointerWithAlignment(), EmitTypeCheck(), clang::CodeGen::CGCXXABI::EmitVirtualDestructorCall(), EmitVTablePtrCheckForCall(), ForceRightToLeft, clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::CodeGenModule::getAddrOfCXXStructor(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::Expr::getBestDynamicClassType(), clang::QualType::getCanonicalType(), getContext(), clang::CXXMethodDecl::getCorrespondingMethodInClass(), clang::CodeGen::CodeGenModule::getCXXABI(), getCXXRecord(), clang::CXXMethodDecl::getDevirtualizedMethod(), clang::CallExpr::getDirectCallee(), clang::Expr::getExprLoc(), clang::CodeGen::CodeGenTypes::GetFunctionType(), getLangOpts(), clang::CallExpr::getLocStart(), clang::CallExpr::getNumArgs(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getRecordType(), clang::FunctionDecl::getReturnType(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::CodeGen::CGCXXABI::getVirtualFunctionPointer(), GetVTablePtr(), clang::SanitizerSet::has(), clang::Expr::ignoreParenBaseCasts(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::Address::invalid(), clang::CXXMethodDecl::isCopyAssignmentOperator(), clang::FunctionDecl::isDefaulted(), clang::CXXRecordDecl::isDynamicClass(), clang::CXXMethodDecl::isMoveAssignmentOperator(), clang::CodeGen::ReturnValueSlot::isNull(), clang::FunctionDecl::isTrivial(), clang::TagDecl::isUnion(), clang::CXXMethodDecl::isVirtual(), IsWrappedCXXThis(), MakeNaturalAlignAddrLValue(), clang::RecordDecl::mayInsertExtraPadding(), SanOpts, clang::SanitizerSet::set(), TCK_ConstructorCall, TCK_MemberCall, and clang::CharUnits::Zero().
Referenced by EmitCXXMemberCallExpr(), and EmitCXXOperatorMemberCallExpr().
| RValue CodeGenFunction::EmitCXXMemberPointerCallExpr | ( | const CXXMemberCallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 397 of file CGExprCXX.cpp.
References clang::CodeGen::CallArgList::add(), clang::CallExpr::arguments(), clang::CodeGen::CodeGenTypes::arrangeCXXMethodCall(), clang::Type::castAs(), CGM, EmitCall(), EmitCallArgs(), clang::CodeGen::CGCXXABI::EmitLoadOfMemberFunctionPointer(), EmitLValue(), EmitPointerWithAlignment(), EmitScalarExpr(), EmitTypeCheck(), clang::CodeGen::RequiredArgs::forPrototypePlus(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::Type::getAs(), clang::CallExpr::getCallee(), clang::MemberPointerType::getClass(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CXXMemberCallExpr::getExprLoc(), clang::BinaryOperator::getLHS(), clang::BinaryOperator::getOpcode(), clang::MemberPointerType::getPointeeType(), clang::ASTContext::getPointerType(), clang::BinaryOperator::getRHS(), clang::Expr::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::Expr::IgnoreParens(), clang::CodeGen::Address::invalid(), ReturnValue, and TCK_MemberCall.
Referenced by EmitCXXMemberCallExpr().
| llvm::Value * CodeGenFunction::EmitCXXNewExpr | ( | const CXXNewExpr * | E | ) |
Definition at line 1501 of file CGExprCXX.cpp.
References clang::CodeGen::CallArgList::add(), clang::CodeGen::CodeGenFunction::ConditionalEvaluation::begin(), Builder, CalculateCookiePadding(), clang::Type::castAs(), CGM, ConvertTypeForMem(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), DeactivateCleanupBlock(), clang::CodeGen::Decl, EHStack, EmitBlock(), EmitCallArgs(), EmitCXXNewAllocSize(), EmitNewDeleteCall(), EmitNewInitializer(), EmitPointerWithAlignment(), clang::CodeGen::CodeGenFunction::ConditionalEvaluation::end(), EnterNewDeleteCleanup(), clang::CodeGen::RValue::get(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::LValueBaseInfo::getAlignmentSource(), clang::CXXNewExpr::getAllocatedType(), clang::Type::getAsArrayTypeUnsafe(), clang::ASTContext::getBaseElementType(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::EnumType::getDecl(), clang::CXXNewExpr::getInitializer(), clang::EnumDecl::getIntegerType(), clang::TargetInfo::getNewAlign(), clang::InitListExpr::getNumInits(), clang::FunctionProtoType::getNumParams(), clang::CXXNewExpr::getNumPlacementArgs(), clang::CXXNewExpr::getOperatorDelete(), clang::CXXNewExpr::getOperatorNew(), clang::FunctionProtoType::getParamType(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), clang::CodeGen::CodeGenTypeCache::getSizeAlign(), clang::ASTContext::getSizeType(), clang::CodeGen::Address::getType(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::ASTContext::getTypeAlignInChars(), clang::ASTContext::getTypeSize(), clang::CXXNewExpr::hasInitializer(), clang::CodeGen::CGCXXABI::InitializeArrayCookie(), clang::CodeGen::Address::invalid(), clang::CXXNewExpr::isArray(), clang::QualType::isPODType(), clang::FunctionDecl::isReplaceableGlobalAllocationFunction(), clang::FunctionDecl::isReservedGlobalPlacementOperator(), clang::InitListExpr::isStringLiteralInit(), clang::CodeGen::EHScopeStack::stable_iterator::isValid(), clang::FunctionDecl::isVariadic(), max(), clang::CXXNewExpr::passAlignment(), clang::CXXNewExpr::placement_arguments(), clang::CXXNewExpr::shouldNullCheckAllocation(), clang::CodeGen::CodeGenTypeCache::SizeTy, clang::CodeGen::EHScopeStack::stable_begin(), Target, and clang::CodeGen::Type.
| RValue CodeGenFunction::EmitCXXOperatorMemberCallExpr | ( | const CXXOperatorCallExpr * | E, |
| const CXXMethodDecl * | MD, | ||
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 450 of file CGExprCXX.cpp.
References EmitCXXMemberOrOperatorMemberCallExpr(), clang::CallExpr::getArg(), and clang::CXXMethodDecl::isInstance().
| RValue CodeGenFunction::EmitCXXPseudoDestructorExpr | ( | const CXXPseudoDestructorExpr * | E | ) |
Definition at line 105 of file CGExprCXX.cpp.
References clang::CodeGen::ARCPreciseLifetime, Builder, clang::CodeGen::CGBuilderTy::CreateLoad(), EmitARCDestroyWeak(), EmitARCRelease(), EmitIgnoredExpr(), EmitLValue(), EmitPointerWithAlignment(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::Type::getAs(), clang::CXXPseudoDestructorExpr::getBase(), clang::CXXPseudoDestructorExpr::getDestroyedType(), clang::QualType::getObjCLifetime(), clang::PointerType::getPointeeType(), clang::QualType::getQualifiers(), clang::Expr::getType(), clang::QualType::hasStrongOrWeakObjCLifetime(), clang::CodeGen::Address::invalid(), clang::CXXPseudoDestructorExpr::isArrow(), clang::QualType::isVolatileQualified(), clang::Qualifiers::OCL_Autoreleasing, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::Qualifiers::OCL_Strong, and clang::Qualifiers::OCL_Weak.
| void CodeGenFunction::EmitCXXTemporary | ( | const CXXTemporary * | Temporary, |
| QualType | TempType, | ||
| Address | Ptr | ||
| ) |
Emits all the code to cause the given temporary to be cleaned up.
Definition at line 1260 of file CGCleanup.cpp.
References clang::CodeGen::NormalAndEHCleanup.
| void CodeGenFunction::EmitCXXThrowExpr | ( | const CXXThrowExpr * | E, |
| bool | KeepInsertionPoint = true |
||
| ) |
Definition at line 410 of file CGException.cpp.
References CGM, createBasicBlock(), EmitBlock(), clang::CodeGen::CGCXXABI::emitRethrow(), clang::CodeGen::CGCXXABI::emitThrow(), clang::CodeGen::CGObjCRuntime::EmitThrowStmt(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::Expr::getExprLoc(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CXXThrowExpr::getSubExpr(), clang::Type::isObjCObjectPointerType(), and S.
Referenced by EmitBranchOnBoolExpr(), and EmitLValueOrThrowExpression().
| void CodeGenFunction::EmitCXXTryStmt | ( | const CXXTryStmt & | S | ) |
Definition at line 543 of file CGException.cpp.
References EmitStmt(), EnterCXXTryStmt(), ExitCXXTryStmt(), and clang::CXXTryStmt::getTryBlock().
Referenced by EmitStmt().
| llvm::Value * CodeGenFunction::EmitCXXTypeidExpr | ( | const CXXTypeidExpr * | E | ) |
Definition at line 2033 of file CGExprCXX.cpp.
References Builder, CGM, ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitTypeidFromVTable(), clang::CodeGen::CodeGenModule::GetAddrOfRTTIDescriptor(), getContext(), clang::CXXTypeidExpr::getExprOperand(), clang::Expr::getType(), clang::CXXTypeidExpr::getTypeOperand(), clang::CXXTypeidExpr::isPotentiallyEvaluated(), clang::CXXTypeidExpr::isTypeOperand(), and clang::CodeGen::Type.
| LValue CodeGenFunction::EmitCXXTypeidLValue | ( | const CXXTypeidExpr * | E | ) |
Definition at line 4234 of file CGExpr.cpp.
References clang::Expr::getType().
| Address CodeGenFunction::EmitCXXUuidofExpr | ( | const CXXUuidofExpr * | E | ) |
Definition at line 4238 of file CGExpr.cpp.
References Builder, and clang::Expr::getType().
| LValue CodeGenFunction::EmitCXXUuidofLValue | ( | const CXXUuidofExpr * | E | ) |
Definition at line 4243 of file CGExpr.cpp.
References clang::Expr::getType().
| void CodeGenFunction::EmitDecl | ( | const Decl & | D | ) |
EmitDecl - Emit a declaration.
This function can be called with a null (unreachable) insert point.
Definition at line 40 of file CGDecl.cpp.
References CGM, clang::CodeGen::CodeGenModule::EmitOMPDeclareReduction(), EmitVarDecl(), EmitVariablyModifiedType(), getDebugInfo(), clang::Decl::getKind(), clang::TypedefNameDecl::getUnderlyingType(), clang::VarDecl::isLocalVarDecl(), and Label.
Referenced by EmitDeclStmt(), EmitOMPFirstprivateClause(), EmitOMPLastprivateClauseInit(), EmitOMPPrivateClause(), and EmitOMPUseDevicePtrClause().
| void CodeGenFunction::EmitDeclRefExprDbgValue | ( | const DeclRefExpr * | E, |
| const APValue & | Init | ||
| ) |
Definition at line 1996 of file CodeGenFunction.cpp.
References CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), getDebugInfo(), clang::DeclRefExpr::getDecl(), clang::APValue::isUninit(), and clang::codegenoptions::LimitedDebugInfo.
| LValue CodeGenFunction::EmitDeclRefLValue | ( | const DeclRefExpr * | E | ) |
Definition at line 2251 of file CGExpr.cpp.
References clang::CodeGen::ARCImpreciseLifetime, EmitCapturedFieldLValue(), EmitFunctionDeclLValue(), EmitGlobalNamedRegister(), EmitGlobalVarDeclLValue(), EmitThreadPrivateVarDeclLValue(), clang::CodeGen::LValue::getBaseInfo(), clang::DeclRefExpr::getDecl(), clang::Expr::getExprLoc(), clang::DeclRefExpr::getLocation(), clang::CodeGen::LValueBaseInfo::getMayAlias(), clang::CodeGen::LValue::getPointer(), clang::CodeGen::LValue::getQuals(), clang::Expr::getType(), clang::CodeGen::LValue::getType(), clang::Decl::hasAttr(), I, clang::Type::isReferenceType(), clang::Decl::isUsed(), clang::SourceLocation::isValid(), clang::DeclRefExpr::refersToEnclosingVariableOrCapture(), clang::Qualifiers::removeObjCGCAttr(), clang::SC_Register, clang::CodeGen::LValue::setARCPreciseLifetime(), clang::CodeGen::LValue::setNonGC(), and setObjCGCLValueClass().
Referenced by LoadObjCSelf().
| void CodeGenFunction::EmitDeclStmt | ( | const DeclStmt & | S | ) |
Definition at line 1110 of file CGStmt.cpp.
References clang::DeclStmt::decls(), EmitDecl(), EmitStopPoint(), HaveInsertPoint(), and I.
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitDefaultStmt | ( | const DefaultStmt & | S | ) |
Definition at line 1308 of file CGStmt.cpp.
References EmitBlockWithFallThrough(), EmitStmt(), and clang::DefaultStmt::getSubStmt().
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitDelegateCallArg | ( | CallArgList & | args, |
| const VarDecl * | param, | ||
| SourceLocation | loc | ||
| ) |
EmitDelegateCallArg - We are performing a delegate call; that is, the current function is delegating to another one.
Produce a r-value suitable for passing the given parameter.
Definition at line 3002 of file CGCall.cpp.
References clang::CodeGen::CallArgList::add(), Builder, clang::ValueDecl::getType(), clang::Decl::hasAttr(), isInAllocaArgument(), clang::Type::isObjCRetainableType(), clang::Type::isReferenceType(), and clang::ast_matchers::type.
Referenced by EmitCallAndReturnForThunk(), EmitDelegateCXXConstructorCall(), EmitInheritedCXXConstructorCall(), EmitLambdaBlockInvokeBody(), and EmitLambdaDelegatingInvokeBody().
| void CodeGenFunction::EmitDelegateCXXConstructorCall | ( | const CXXConstructorDecl * | Ctor, |
| CXXCtorType | CtorType, | ||
| const FunctionArgList & | Args, | ||
| SourceLocation | Loc | ||
| ) |
Definition at line 2225 of file CGClass.cpp.
References clang::CodeGen::CallArgList::add(), CGM, CurGD, E, EmitCXXConstructorCall(), EmitDelegateCallArg(), clang::CodeGen::RValue::get(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::Address::getPointer(), I, LoadCXXThisAddress(), and clang::CodeGen::CGCXXABI::NeedsVTTParameter().
Referenced by EmitConstructorBody().
| void CodeGenFunction::EmitDelegatingCXXConstructorCall | ( | const CXXConstructorDecl * | Ctor, |
| const FunctionArgList & | Args | ||
| ) |
Definition at line 2277 of file CGClass.cpp.
References CGM, clang::Ctor_Complete, CurGD, clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, clang::Dtor_Base, clang::Dtor_Complete, clang::CodeGen::EHCleanup, EHStack, EmitAggExpr(), clang::CodeGen::AggValueSlot::forAddr(), clang::GlobalDecl::getCtorType(), clang::CXXCtorInitializer::getInit(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CXXMethodDecl::getParent(), clang::CXXConstructorDecl::init_begin(), clang::CXXConstructorDecl::isDelegatingConstructor(), clang::CodeGen::AggValueSlot::IsDestructed, clang::CodeGen::AggValueSlot::IsNotAliased, LoadCXXThisAddress(), and clang::CodeGen::Type.
Referenced by EmitCtorPrologue().
| void CodeGenFunction::EmitDeleteCall | ( | const FunctionDecl * | DeleteFD, |
| llvm::Value * | Ptr, | ||
| QualType | DeleteTy, | ||
| llvm::Value * | NumElements = nullptr, |
||
| CharUnits | CookieSize = CharUnits() |
||
| ) |
Definition at line 1705 of file CGExprCXX.cpp.
References Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNewDeleteCall(), clang::CodeGen::RValue::get(), clang::Type::getAs(), getContext(), clang::FunctionDecl::getOverloadedOperator(), clang::CharUnits::getQuantity(), clang::ValueDecl::getType(), clang::ASTContext::getTypeSizeInChars(), clang::CharUnits::isZero(), shouldPassSizeAndAlignToUsualDelete(), clang::CodeGen::CodeGenTypeCache::SizeTy, and clang::ASTContext::toCharUnitsFromBits().
| void CodeGenFunction::emitDestroy | ( | Address | addr, |
| QualType | type, | ||
| Destroyer * | destroyer, | ||
| bool | useEHCleanupForArray | ||
| ) |
emitDestroy - Immediately perform the destruction of the given object.
| addr | - the address of the object; a type* |
| type | - the type of the object; if an array type, all objects are destroyed in reverse order |
| destroyer | - the function to call to destroy individual elements |
| useEHCleanupForArray | - whether an EH cleanup should be used when destroying array elements, in case one of the destructions throws an exception |
Definition at line 1527 of file CGDecl.cpp.
References clang::CharUnits::alignmentOfArrayElement(), Builder, emitArrayDestroy(), emitArrayLength(), clang::CodeGen::Address::getAlignment(), clang::ASTContext::getAsArrayType(), getContext(), clang::CodeGen::Address::getPointer(), and length().
Referenced by clang::CodeGen::emitThreadPrivateVarDefinition(), and generateDestroyHelper().
| void CodeGenFunction::EmitDestructorBody | ( | FunctionArgList & | Args | ) |
EmitDestructorBody - Emits the body of the current destructor.
Definition at line 1389 of file CGClass.cpp.
References Builder, CanSkipVTablePointerInitialization(), CGM, CurFn, CurGD, clang::Dtor_Base, clang::Dtor_Comdat, clang::Dtor_Complete, clang::Dtor_Deleting, EmitAsanPrologueOrEpilogue(), EmitCXXDestructorCall(), EmitStmt(), EmitTrapCall(), EnterCXXTryStmt(), EnterDtorCleanups(), ExitCXXTryStmt(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::FunctionDecl::getBody(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::GlobalDecl::getDecl(), clang::GlobalDecl::getDtorType(), getLangOpts(), clang::CXXMethodDecl::getParent(), getTarget(), incrementProfileCounter(), InitializeVTablePointers(), clang::CXXRecordDecl::isAbstract(), clang::Decl::isImplicit(), LoadCXXThis(), LoadCXXThisAddress(), and PopCleanupBlock().
Referenced by GenerateCode().
Definition at line 774 of file CGStmt.cpp.
References Builder, CGM, createBasicBlock(), EmitBlock(), EmitBlockWithFallThrough(), EmitStmt(), EvaluateExprAsBool(), clang::SourceRange::getBegin(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::DoStmt::getBody(), clang::DoStmt::getCond(), clang::CodeGen::CodeGenModule::getContext(), getCurrentProfileCount(), clang::SourceRange::getEnd(), getJumpDestInCurrentScope(), getProfileCount(), clang::Stmt::getSourceRange(), LoopStack, clang::CodeGen::LoopInfoStack::pop(), clang::CodeGen::LoopInfoStack::push(), SimplifyForwardingBlocks(), and SourceLocToDebugLoc().
Referenced by EmitAttributedStmt(), and EmitStmt().
| llvm::Value * CodeGenFunction::EmitDynamicCast | ( | Address | V, |
| const CXXDynamicCastExpr * | DCE | ||
| ) |
Definition at line 2072 of file CGExprCXX.cpp.
References Builder, clang::Type::castAs(), CGM, createBasicBlock(), EmitBlock(), EmitBranch(), clang::CodeGen::CGCXXABI::EmitDynamicCastCall(), EmitDynamicCastToNull(), clang::CodeGen::CGCXXABI::EmitDynamicCastToVoid(), clang::CodeGen::CodeGenModule::EmitExplicitCastExprType(), clang::Type::getAs(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::PointerType::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::CastExpr::getSubExpr(), clang::Expr::getType(), clang::ExplicitCastExpr::getTypeAsWritten(), clang::CXXDynamicCastExpr::isAlwaysNull(), clang::Type::isPointerType(), clang::Type::isRecordType(), clang::Type::isVoidType(), and clang::CodeGen::CGCXXABI::shouldDynamicCastCallBeNullChecked().
| void CodeGenFunction::EmitEndEHSpec | ( | const Decl * | D | ) |
EmitEndEHSpec - Emit the end of the exception spec.
Definition at line 510 of file CGException.cpp.
References clang::CodeGen::EHScopeStack::begin(), CGM, EHStack, emitFilterDispatchBlock(), clang::EST_Dynamic, clang::EST_DynamicNone, clang::Type::getAs(), getContext(), clang::FunctionProtoType::getExceptionSpecType(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::FunctionProtoType::getNoexceptSpec(), getTarget(), clang::ValueDecl::getType(), clang::isNoexceptExceptionSpec(), clang::FunctionProtoType::NR_Nothrow, clang::CodeGen::EHScopeStack::popFilter(), and clang::CodeGen::EHScopeStack::popTerminate().
Referenced by FinishFunction().
| void CodeGenFunction::EmitExprAsInit | ( | const Expr * | init, |
| const ValueDecl * | D, | ||
| LValue | lvalue, | ||
| bool | capturedByInit | ||
| ) |
EmitExprAsInit - Emits the code necessary to initialize a location in memory with the given initializer.
Emit an expression as an initializer for a variable at the given location.
The expression is not necessarily the normal initializer for the variable, and the address is not necessarily its normal location.
| init | the initializing expression |
| var | the variable to act as if we're initializing |
| loc | the address to initialize; its type is a pointer to the LLVM mapping of the variable's type |
| alignment | the alignment of the address |
| capturedByInit | true if the variable is a __block variable whose address is potentially changed by the initializer |
Definition at line 1316 of file CGDecl.cpp.
References clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, drillIntoBlockVariable(), EmitAggExpr(), EmitAtomicInit(), EmitComplexExpr(), EmitReferenceBindingToExpr(), EmitScalarInit(), EmitStoreOfComplex(), EmitStoreThroughLValue(), clang::CodeGen::AggValueSlot::forLValue(), getEvaluationKind(), clang::ValueDecl::getType(), clang::Type::isAtomicType(), clang::CodeGen::AggValueSlot::IsDestructed, clang::CodeGen::AggValueSlot::IsNotAliased, clang::Type::isReferenceType(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, clang::CodeGen::TEK_Scalar, and clang::ast_matchers::type.
Referenced by EmitAutoVarInit(), EmitInitializerForField(), EmitOMPLinearClauseInit(), and emitPrivatesInit().
| void CodeGenFunction::EmitExtendGCLifetime | ( | llvm::Value * | object | ) |
EmitExtendGCLifetime - Given a pointer to an Objective-C object, make sure it survives garbage collection until this point.
Definition at line 3195 of file CGObjC.cpp.
References clang::CodeGen::RequiredArgs::All, Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
| LValue CodeGenFunction::EmitExtVectorElementExpr | ( | const ExtVectorElementExpr * | E | ) |
Definition at line 3466 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getAddress(), clang::Type::getAs(), clang::ExtVectorElementExpr::getBase(), clang::CodeGen::LValue::getBaseInfo(), clang::Qualifiers::getCVRQualifiers(), clang::ExtVectorElementExpr::getEncodedElementAccess(), clang::CodeGen::LValue::getExtVectorAddress(), clang::CodeGen::LValue::getExtVectorElts(), clang::CodeGen::LValue::getQuals(), clang::Expr::getType(), clang::ExtVectorElementExpr::isArrow(), clang::CodeGen::LValue::isExtVectorElt(), clang::Expr::isGLValue(), clang::CodeGen::LValue::isSimple(), clang::Type::isVectorType(), clang::ast_matchers::type, and clang::QualType::withCVRQualifiers().
Generates lvalue for partial ext_vector access.
Definition at line 1702 of file CGExpr.cpp.
References Builder, clang::Type::getAs(), clang::VectorType::getElementType(), clang::CodeGen::LValue::getExtVectorAddress(), clang::CodeGen::LValue::getExtVectorElts(), and clang::CodeGen::LValue::getType().
Emit field annotations for the given field & value.
Returns the annotation result.
Definition at line 2054 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitAnnotationCall(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::Decl::getLocation(), clang::CodeGen::Address::getPointer(), clang::Decl::hasAttr(), I, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::Decl::specific_attrs(), and clang::CodeGen::Type.
Definition at line 836 of file CGStmt.cpp.
References Builder, CGM, createBasicBlock(), EmitAutoVarDecl(), EmitBlock(), EmitBranch(), EmitBranchThroughCleanup(), EmitStmt(), EmitStopPoint(), EvaluateExprAsBool(), clang::SourceRange::getBegin(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::ForStmt::getBody(), clang::ForStmt::getCond(), clang::ForStmt::getConditionVariable(), clang::CodeGen::CodeGenModule::getContext(), clang::SourceRange::getEnd(), clang::ForStmt::getInc(), clang::ForStmt::getInit(), getJumpDestInCurrentScope(), getProfileCount(), clang::Stmt::getSourceRange(), incrementProfileCounter(), LoopStack, clang::CodeGen::LoopInfoStack::pop(), clang::CodeGen::LoopInfoStack::push(), and SourceLocToDebugLoc().
Referenced by EmitAttributedStmt(), and EmitStmt().
| void CodeGenFunction::EmitForwardingCallToLambda | ( | const CXXMethodDecl * | LambdaCallOperator, |
| CallArgList & | CallArgs | ||
| ) |
Definition at line 2719 of file CGClass.cpp.
References clang::CodeGen::CodeGenTypes::arrangeCXXMethodDeclaration(), clang::Type::castAs(), CGM, EmitBranchThroughCleanup(), EmitCall(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfo::getReturnType(), clang::FunctionType::getReturnType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), hasScalarEvaluationKind(), clang::CodeGen::ABIArgInfo::Indirect, clang::CodeGen::ReturnValueSlot::isNull(), ReturnBlock, and ReturnValue.
Referenced by EmitLambdaBlockInvokeBody(), and EmitLambdaDelegatingInvokeBody().
| llvm::Value * CodeGenFunction::EmitFromMemory | ( | llvm::Value * | Value, |
| QualType | Ty | ||
| ) |
EmitFromMemory - Change a scalar value from its memory representation to its value representation.
Definition at line 1516 of file CGExpr.cpp.
References Builder, and hasBooleanRepresentation().
Referenced by EmitFromInt().
| void CodeGenFunction::EmitFunctionBody | ( | FunctionArgList & | Args, |
| const Stmt * | Body | ||
| ) |
Definition at line 1031 of file CodeGenFunction.cpp.
References EmitCompoundStmtWithoutScope(), EmitStmt(), incrementProfileCounter(), and S.
Referenced by EmitLambdaToBlockPointerBody(), and GenerateCode().
| void CodeGenFunction::EmitFunctionEpilog | ( | const CGFunctionInfo & | FI, |
| bool | EmitRetDbgLoc, | ||
| SourceLocation | EndLoc | ||
| ) |
EmitFunctionEpilog - Emit the target specific LLVM code to return the given temporary.
Definition at line 2738 of file CGCall.cpp.
References Builder, CreateCoercedLoad(), emitAddressAtOffset(), emitAutoreleaseOfResult(), findDominatingStoreToReturnValue(), clang::CodeGen::ABIArgInfo::getCoerceAndExpandType(), clang::CodeGen::ABIArgInfo::getCoerceToType(), clang::CodeGen::ABIArgInfo::getDirectOffset(), clang::CodeGen::ABIArgInfo::getInAllocaFieldIndex(), clang::CodeGen::ABIArgInfo::getInAllocaSRet(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfo::getReturnType(), clang::CodeGen::ABIArgInfo::getUnpaddedCoerceAndExpandType(), clang::Type::isObjCRetainableType(), clang::CodeGen::CGFunctionInfo::isReturnsRetained(), clang::CodeGen::ABIArgInfo::isSRetAfterThis(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by FinishFunction().
| void CodeGenFunction::EmitFunctionInstrumentation | ( | const char * | Fn | ) |
EmitFunctionInstrumentation - Emit LLVM code to call the specified instrumentation function with the current function and the call site, if function instrumentation is enabled.
Definition at line 435 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::ApplyDebugLocation::CreateArtificial(), clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), CurFn, EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::Type, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by FinishFunction(), and StartFunction().
| void CodeGenFunction::EmitFunctionProlog | ( | const CGFunctionInfo & | FI, |
| llvm::Function * | Fn, | ||
| const FunctionArgList & | Args | ||
| ) |
EmitFunctionProlog - Emit the target specific LLVM code to load the arguments for the given function.
This is also responsible for naming the LLVM function arguments.
Definition at line 2170 of file CGCall.cpp.
References clang::CodeGen::CGFunctionInfo::arg_begin(), clang::CodeGen::CGFunctionInfo::arg_size(), Builder, CreateCoercedStore(), E, emitAddressAtOffset(), emitArgumentDemotion(), clang::CharUnits::fromQuantity(), clang::FunctionProtoType::ExtParameterInfo::getABI(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::CGFunctionInfo::getArgStruct(), clang::CodeGen::CGFunctionInfo::getArgStructAlignment(), clang::CodeGen::ABIArgInfo::getCanBeFlattened(), clang::CodeGen::ABIArgInfo::getCoerceAndExpandType(), clang::CodeGen::ABIArgInfo::getCoerceToType(), getDeclAlign(), clang::CodeGen::ABIArgInfo::getDirectOffset(), clang::CodeGen::CGFunctionInfo::getExtParameterInfo(), clang::CodeGen::ABIArgInfo::getInAllocaFieldIndex(), clang::CodeGen::ABIArgInfo::getIndirectAlign(), clang::CodeGen::ABIArgInfo::getIndirectRealign(), clang::CodeGen::ABIArgInfo::getKind(), clang::DeclaratorDecl::getLocStart(), clang::NamedDecl::getName(), getNonNullAttr(), clang::Type::getPointeeType(), clang::CharUnits::getQuantity(), clang::ValueDecl::getType(), I, clang::Type::isConstantSizeType(), clang::CodeGen::ABIArgInfo::isDirect(), clang::Type::isIncompleteType(), clang::Type::isPointerType(), clang::QualType::isRestrictQualified(), min(), clang::CodeGen::NormalCleanup, clang::ArrayType::Static, and clang::SwiftErrorResult.
Referenced by StartFunction().
| void CodeGenFunction::EmitGotoStmt | ( | const GotoStmt & | S | ) |
Definition at line 577 of file CGStmt.cpp.
References EmitBranchThroughCleanup(), EmitStopPoint(), getJumpDestForLabel(), clang::GotoStmt::getLabel(), and HaveInsertPoint().
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitIfStmt | ( | const IfStmt & | S | ) |
Definition at line 609 of file CGStmt.cpp.
References ConstantFoldsToSimpleInteger(), ContainsLabel(), createBasicBlock(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), EmitAutoVarDecl(), EmitBlock(), EmitBranch(), EmitBranchOnBoolExpr(), EmitStmt(), clang::IfStmt::getCond(), clang::IfStmt::getConditionVariable(), clang::IfStmt::getElse(), clang::IfStmt::getInit(), getProfileCount(), clang::Stmt::getSourceRange(), clang::IfStmt::getThen(), incrementProfileCounter(), and clang::IfStmt::isConstexpr().
Referenced by EmitStmt().
| void CodeGenFunction::EmitIgnoredExpr | ( | const Expr * | E | ) |
EmitIgnoredExpr - Emit an expression in a context which ignores the result.
EmitIgnoredExpr - Emit code to compute the specified expression, ignoring the result.
Definition at line 157 of file CGExpr.cpp.
References EmitAnyExpr(), EmitLValue(), clang::CodeGen::AggValueSlot::ignored(), and clang::Expr::isRValue().
Referenced by emitCombinerOrInitializer(), EmitCXXPseudoDestructorExpr(), emitInitWithReductionInitializer(), EmitMaterializeTemporaryExpr(), EmitOMPCopy(), EmitOMPInnerLoop(), EmitOMPLastprivateClauseFinal(), EmitOMPLinearClauseFinal(), EmitOMPLinearClauseInit(), EmitOMPLoopBody(), EmitOMPSimdDirective(), emitPostUpdateForReductionClause(), emitPreCond(), emitPseudoObjectExpr(), emitReductionCombiner(), EmitStmt(), and EmitVariablyModifiedType().
| void CodeGenFunction::emitImplicitAssignmentOperatorBody | ( | FunctionArgList & | Args | ) |
Definition at line 1498 of file CGClass.cpp.
References clang::CompoundStmt::body(), CurGD, clang::FunctionDecl::getBody(), clang::GlobalDecl::getDecl(), clang::Stmt::getSourceRange(), I, and incrementProfileCounter().
Referenced by GenerateCode().
| void CodeGenFunction::EmitIndirectGotoStmt | ( | const IndirectGotoStmt & | S | ) |
Definition at line 588 of file CGStmt.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitBranch(), EmitBranchThroughCleanup(), EmitScalarExpr(), clang::IndirectGotoStmt::getConstantTarget(), GetIndirectGotoBlock(), getJumpDestForLabel(), clang::IndirectGotoStmt::getTarget(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and Target.
Referenced by EmitStmt().
| void CodeGenFunction::EmitInheritedCXXConstructorCall | ( | const CXXConstructorDecl * | D, |
| bool | ForVirtualBase, | ||
| Address | This, | ||
| bool | InheritedFromVBase, | ||
| const CXXInheritedCtorInitExpr * | E | ||
| ) |
Emit a call to a constructor inherited from a base class, passing the current constructor's arguments along unmodified (without even making a copy).
Definition at line 2081 of file CGClass.cpp.
References CGM, clang::Ctor_Base, CurCodeDecl, EmitCXXConstructorCall(), EmitDelegateCallArg(), clang::CodeGen::RValue::get(), getContext(), clang::TargetInfo::getCXXABI(), clang::CXXInheritedCtorInitExpr::getLocation(), clang::FunctionDecl::getNumParams(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenModule::getTarget(), clang::CXXMethodDecl::getThisType(), and clang::TargetCXXABI::hasConstructorVariants().
Definition at line 655 of file CGClass.cpp.
References clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), EmitComplexExprIntoLValue(), EmitExprAsInit(), EmitScalarExpr(), EmitStoreThroughLValue(), clang::CodeGen::AggValueSlot::forLValue(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), getEvaluationKind(), clang::ValueDecl::getType(), clang::CodeGen::AggValueSlot::IsDestructed, clang::QualType::isDestructedType(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::CodeGen::LValue::isSimple(), needsEHCleanup(), pushEHDestroy(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitLambdaExpr(), EmitMemberInitializer(), and InitCapturedStruct().
| LValue CodeGenFunction::EmitInitListLValue | ( | const InitListExpr * | E | ) |
Definition at line 3780 of file CGExpr.cpp.
References clang::InitListExpr::getInit(), clang::Expr::isGLValue(), and clang::InitListExpr::isTransparent().
| void CodeGenFunction::EmitInlinedInheritingCXXConstructorCall | ( | const CXXConstructorDecl * | Ctor, |
| CXXCtorType | CtorType, | ||
| bool | ForVirtualBase, | ||
| bool | Delegating, | ||
| CallArgList & | Args | ||
| ) |
Emit a call to an inheriting constructor (that is, one that invokes a constructor inherited from a base class) by inlining its definition.
This is necessary if the ABI does not support forwarding the arguments to the base class constructor (because they're variadic or similar).
Definition at line 2128 of file CGClass.cpp.
References clang::CodeGen::CGCXXABI::addImplicitConstructorArgs(), BuildFunctionArgList(), CGM, CreateIRTemp(), CurGD, EmitCtorPrologue(), clang::CodeGen::CGCXXABI::EmitInstanceFunctionProlog(), EmitParmDecl(), FnRetTy, clang::CodeGen::CodeGenFunction::ParamValue::forDirect(), clang::CodeGen::CodeGenFunction::ParamValue::forIndirect(), clang::CodeGen::RValue::getAggregateAddress(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::RValue::getScalarVal(), I, clang::CodeGen::RValue::isComplex(), clang::CodeGen::RValue::isScalar(), clang::Type::isVoidType(), and ReturnValue.
Referenced by EmitCXXConstructorCall().
| llvm::Value * CodeGenFunction::EmitIvarOffset | ( | const ObjCInterfaceDecl * | Interface, |
| const ObjCIvarDecl * | Ivar | ||
| ) |
Definition at line 4287 of file CGExpr.cpp.
Referenced by generateObjCGetterBody(), and generateObjCSetterBody().
| void CodeGenFunction::EmitLabel | ( | const LabelDecl * | D | ) |
EmitLabel - Emit the block for the given label.
It is legal to call this function even if there is no current insertion point.
Definition at line 502 of file CGStmt.cpp.
References clang::CodeGen::CodeGenFunction::LexicalScope::addLabel(), EHStack, EmitBlock(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), getJumpDestInCurrentScope(), clang::NamedDecl::getName(), clang::CodeGen::CodeGenFunction::JumpDest::getScopeDepth(), clang::LabelDecl::getStmt(), clang::CodeGen::EHScopeStack::hasNormalCleanups(), incrementProfileCounter(), clang::CodeGen::EHScopeStack::stable_iterator::isValid(), clang::CodeGen::CodeGenFunction::JumpDest::isValid(), ResolveBranchFixups(), clang::CodeGen::CodeGenFunction::JumpDest::setScopeDepth(), and clang::CodeGen::EHScopeStack::stable_begin().
Referenced by EmitCompoundStmtWithoutScope(), and EmitLabelStmt().
| void CodeGenFunction::EmitLabelStmt | ( | const LabelStmt & | S | ) |
Definition at line 552 of file CGStmt.cpp.
References EmitLabel(), EmitStmt(), clang::LabelStmt::getDecl(), and clang::LabelStmt::getSubStmt().
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitLambdaBlockInvokeBody | ( | ) |
Definition at line 2754 of file CGClass.cpp.
References clang::CodeGen::CallArgList::add(), BlockInfo, clang::BlockDecl::capture_begin(), EmitDelegateCallArg(), EmitForwardingCallToLambda(), clang::CodeGen::RValue::get(), GetAddrOfBlockDecl(), clang::Type::getAsCXXRecordDecl(), clang::CodeGen::CGBlockInfo::getBlockDecl(), getContext(), clang::CXXRecordDecl::getLambdaCallOperator(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getPointerType(), getRecordType(), clang::ValueDecl::getType(), clang::CXXRecordDecl::isGenericLambda(), and clang::BlockDecl::parameters().
Referenced by GenerateBlockFunction().
| void CodeGenFunction::EmitLambdaDelegatingInvokeBody | ( | const CXXMethodDecl * | MD | ) |
Definition at line 2786 of file CGClass.cpp.
References clang::CodeGen::CallArgList::add(), ConvertType(), EmitDelegateCallArg(), EmitForwardingCallToLambda(), clang::FunctionTemplateDecl::findSpecialization(), clang::CodeGen::RValue::get(), getContext(), clang::FunctionDecl::getDescribedFunctionTemplate(), clang::CXXRecordDecl::getLambdaCallOperator(), clang::CXXMethodDecl::getParent(), clang::ASTContext::getPointerType(), getRecordType(), clang::FunctionDecl::getTemplateSpecializationArgs(), getTypes(), clang::FunctionDecl::isFunctionTemplateSpecialization(), clang::CXXRecordDecl::isGenericLambda(), and clang::FunctionDecl::parameters().
Referenced by EmitLambdaStaticInvokeFunction().
| void CodeGenFunction::EmitLambdaExpr | ( | const LambdaExpr * | E, |
| AggValueSlot | Dest | ||
| ) |
Definition at line 2155 of file CGExprCXX.cpp.
References clang::LambdaExpr::capture_init_begin(), clang::LambdaExpr::capture_init_end(), EmitInitializerForField(), EmitLValueForFieldInitialization(), EmitStoreThroughLValue(), clang::RecordDecl::field_begin(), clang::CodeGen::RValue::get(), clang::CodeGen::AggValueSlot::getAddress(), clang::LambdaExpr::getLambdaClass(), clang::Expr::getType(), and MakeAddrLValue().
| LValue CodeGenFunction::EmitLambdaLValue | ( | const LambdaExpr * | E | ) |
Definition at line 4259 of file CGExpr.cpp.
References clang::CodeGen::AggValueSlot::getAddress(), and clang::Expr::getType().
| void CodeGenFunction::EmitLambdaStaticInvokeFunction | ( | const CXXMethodDecl * | MD | ) |
Definition at line 2816 of file CGClass.cpp.
References CGM, EmitLambdaDelegatingInvokeBody(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), and clang::FunctionDecl::isVariadic().
Referenced by GenerateCode().
| void CodeGenFunction::EmitLambdaToBlockPointerBody | ( | FunctionArgList & | Args | ) |
Definition at line 2775 of file CGClass.cpp.
References CGM, CurCodeDecl, CurGD, EmitFunctionBody(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), and clang::GlobalDecl::getDecl().
Referenced by GenerateCode().
| llvm::BasicBlock * CodeGenFunction::EmitLandingPad | ( | ) |
Emits a landing pad for the current EH stack.
Definition at line 742 of file CGException.cpp.
References clang::CodeGen::EHScopeStack::begin(), Builder, clang::CodeGen::EHScope::Catch, clang::CodeGen::EHScope::Cleanup, createBasicBlock(), clang::CodeGen::ApplyDebugLocation::CreateDefaultArtificial(), clang::CodeGen::CGBuilderTy::CreateStore(), E, EHStack, EmitBlock(), clang::CodeGen::EHScopeStack::end(), clang::CodeGen::EHScope::Filter, clang::CodeGen::EHScopeStack::find(), clang::CodeGen::CatchTypeInfo::Flags, getCatchAllValue(), getEHDispatchBlock(), getEHSelectorSlot(), getExceptionSlot(), clang::CodeGen::EHFilterScope::getFilter(), clang::CodeGen::EHCatchScope::getHandler(), clang::CodeGen::EHScopeStack::getInnermostEHScope(), clang::CodeGen::EHFilterScope::getNumFilters(), clang::CodeGen::EHCatchScope::getNumHandlers(), getTerminateLandingPad(), I, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::EHScope::PadEnd, clang::CodeGen::EHScopeStack::requiresLandingPad(), clang::CodeGen::CatchTypeInfo::RTTI, clang::CodeGen::EHScope::Terminate, and clang::CodeGen::EHCatchScope::Handler::Type.
Referenced by getInvokeDestImpl().
| void CodeGenFunction::EmitLifetimeEnd | ( | llvm::Value * | Size, |
| llvm::Value * | Addr | ||
| ) |
Definition at line 943 of file CGDecl.cpp.
References clang::CodeGen::CodeGenTypeCache::AllocaInt8PtrTy, Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), and clang::CodeGen::CodeGenModule::getLLVMLifetimeEndFn().
Referenced by clang::CodeGen::CodeGenFunction::CallLifetimeEnd::Emit().
| llvm::Value * CodeGenFunction::EmitLifetimeStart | ( | uint64_t | Size, |
| llvm::Value * | Addr | ||
| ) |
Emit a lifetime.begin marker if some criteria are satisfied.
Definition at line 930 of file CGDecl.cpp.
References clang::CodeGen::CodeGenTypeCache::AllocaInt8PtrTy, Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenModule::getLLVMLifetimeStartFn(), and clang::CodeGen::CodeGenTypeCache::Int64Ty.
Referenced by EmitAutoVarAlloca(), and EmitMaterializeTemporaryExpr().
| RValue CodeGenFunction::EmitLoadOfBitfieldLValue | ( | LValue | LV, |
| SourceLocation | Loc | ||
| ) |
Definition at line 1641 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getBitFieldAddress(), clang::CodeGen::LValue::getBitFieldInfo(), clang::CodeGen::LValue::getType(), clang::CodeGen::CGBitFieldInfo::IsSigned, clang::CodeGen::LValue::isVolatileQualified(), clang::CodeGen::CGBitFieldInfo::Offset, clang::CodeGen::CGBitFieldInfo::Size, and clang::CodeGen::CGBitFieldInfo::StorageSize.
| ComplexPairTy CodeGenFunction::EmitLoadOfComplex | ( | LValue | src, |
| SourceLocation | loc | ||
| ) |
EmitLoadOfComplex - Load a complex number from the specified l-value.
EmitLoadOfComplex - Load a complex number from the specified address.
Definition at line 1082 of file CGExprComplex.cpp.
Referenced by emitInitWithReductionInitializer(), generateObjCGetterBody(), and InitCatchParam().
Load of global gamed gegisters are always calls to intrinsics.
Definition at line 1724 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getGlobalReg(), clang::CodeGen::LValue::getType(), clang::Type::isIntegerType(), and clang::Type::isPointerType().
| RValue CodeGenFunction::EmitLoadOfLValue | ( | LValue | LV, |
| SourceLocation | Loc | ||
| ) |
EmitLoadOfLValue - Given an expression that represents a value lvalue, this method emits the address of the lvalue, then loads the result as an rvalue, returning the rvalue.
Definition at line 1595 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getAddress(), clang::Qualifiers::getObjCLifetime(), clang::CodeGen::LValue::getQuals(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::getVectorAddress(), clang::CodeGen::LValue::getVectorIdx(), clang::CodeGen::LValue::isBitField(), clang::CodeGen::LValue::isExtVectorElt(), clang::Type::isFunctionType(), clang::CodeGen::LValue::isGlobalReg(), clang::CodeGen::LValue::isObjCWeak(), clang::CodeGen::LValue::isSimple(), clang::CodeGen::LValue::isVectorElt(), clang::CodeGen::LValue::isVolatileQualified(), and clang::Qualifiers::OCL_Weak.
Referenced by EmitAtomicUpdateValue(), emitInitWithReductionInitializer(), EmitOMPAtomicReadExpr(), EmitOMPAtomicSimpleUpdateExpr(), emitOutlinedFunctionPrologue(), emitProxyTaskFunction(), emitWritebackArg(), GenerateCapturedStmtFunction(), generateObjCGetterBody(), GenerateOpenMPCapturedVars(), clang::CodeGen::CGOpenMPRuntime::getThreadID(), StartFunction(), and tryEmitARCRetainLoadOfScalar().
| Address CodeGenFunction::EmitLoadOfPointer | ( | Address | Ptr, |
| const PointerType * | PtrTy, | ||
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
Definition at line 2138 of file CGExpr.cpp.
References Builder, and clang::PointerType::getPointeeType().
Referenced by emitOutlinedFunctionPrologue(), emitReduceCombFunction(), emitReduceFiniFunction(), and emitReduceInitFunction().
| LValue CodeGenFunction::EmitLoadOfPointerLValue | ( | Address | Ptr, |
| const PointerType * | PtrTy | ||
| ) |
Definition at line 2147 of file CGExpr.cpp.
References clang::PointerType::getPointeeType().
Referenced by emitCombinerOrInitializer(), emitDestructorsFunction(), emitProxyTaskFunction(), emitTaskDupFunction(), emitTaskPrivateMappingFunction(), and loadToBegin().
| Address CodeGenFunction::EmitLoadOfReference | ( | Address | Ref, |
| const ReferenceType * | RefTy, | ||
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
Definition at line 2123 of file CGExpr.cpp.
References Builder, and clang::ReferenceType::getPointeeType().
Referenced by emitOutlinedFunctionPrologue(), and GetAddrOfBlockDecl().
| LValue CodeGenFunction::EmitLoadOfReferenceLValue | ( | Address | Ref, |
| const ReferenceType * | RefTy | ||
| ) |
Definition at line 2131 of file CGExpr.cpp.
References clang::ReferenceType::getPointeeType().
Referenced by EmitGlobalVarDeclLValue(), and loadToBegin().
| llvm::Value * CodeGenFunction::EmitLoadOfScalar | ( | Address | Addr, |
| bool | Volatile, | ||
| QualType | Ty, | ||
| SourceLocation | Loc, | ||
| LValueBaseInfo | BaseInfo = LValueBaseInfo(AlignmentSource::Type), |
||
| llvm::MDNode * | TBAAInfo = nullptr, |
||
| QualType | TBAABaseTy = QualType(), |
||
| uint64_t | TBAAOffset = 0, |
||
| bool | isNontemporal = false |
||
| ) |
EmitLoadOfScalar - Load a scalar value from an address, taking care to appropriately convert from the memory representation to the LLVM value representation.
Definition at line 1437 of file CGExpr.cpp.
References Builder, clang::CodeGen::Address::getElementType(), clang::CodeGen::LValueBaseInfo::getMayAlias(), clang::Type::isAtomicType(), clang::Type::isVectorType(), and Node.
Referenced by AddDirectArgument(), EmitARCStoreStrong(), emitCopyToScratchpad(), emitDistributeParallelForDispatchBounds(), emitDistributeParallelForInnerBounds(), emitInterWarpCopyFunction(), EmitNontemporalLoad(), EmitObjCCollectionLiteral(), EmitOMPWorksharingLoop(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceFiniFunction(), emitReduceInitFunction(), emitReduceScratchpadFunction(), EmitScalarInit(), emitShuffleAndReduceFunction(), emitTaskDupFunction(), clang::CodeGen::emitTaskInit(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitThreadPrivateVarDefinition(), emitWriteback(), GenerateOpenMPCapturedStmtFunction(), InitCatchParam(), and LoadObjCSelf().
| llvm::Value * CodeGenFunction::EmitLoadOfScalar | ( | LValue | lvalue, |
| SourceLocation | Loc | ||
| ) |
EmitLoadOfScalar - Load a scalar value from an address, taking care to appropriately convert from the memory representation to the LLVM value representation.
The l-value must be a simple l-value.
Definition at line 1325 of file CGExpr.cpp.
References clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::LValue::getTBAABaseType(), clang::CodeGen::LValue::getTBAAInfo(), clang::CodeGen::LValue::getTBAAOffset(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::isNontemporal(), and clang::CodeGen::LValue::isVolatile().
EmitLValue - Emit code to compute a designator that specifies the location of the expression.
This can return one of two things: a simple address or a bitfield reference. In either case, the LLVM Value* in the LValue structure is guaranteed to be an LLVM pointer type.
If this returns a bitfield reference, nothing about the pointee type of the LLVM value is known: For example, it may not be a pointer to an integer.
If this returns a normal address, and if the lvalue's C type is fixed size, this method guarantees that the returned pointer type will point to an LLVM type of the same size of the lvalue's type. If the lvalue has a variable length type, this is not possible.
Definition at line 1082 of file CGExpr.cpp.
References E, clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::CodeGen::LValue::getAlignment(), clang::Type::getAs(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::LValue::getPointer(), clang::Stmt::getStmtClass(), clang::CodeGen::LValue::getTBAAInfo(), clang::Expr::getType(), clang::CodeGen::LValue::getType(), clang::Type::isAnyComplexType(), and clang::CodeGen::LValue::isSimple().
Referenced by clang::CodeGen::ReductionCodeGen::adjustPrivateAddress(), clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind(), EmitARCStoreAutoreleasing(), EmitARCStoreStrong(), EmitARCStoreUnsafeUnretained(), EmitAsmStmt(), emitCPPObjectAtomicSetterCall(), EmitCXXConstructorCall(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitCXXPseudoDestructorExpr(), emitDistributeParallelForDistributeInnerBoundParams(), emitDistributeParallelForInnerBounds(), EmitIgnoredExpr(), EmitLValueOrThrowExpression(), EmitMSVAListRef(), EmitObjCForCollectionStmt(), EmitObjCIsaExpr(), EmitObjCMessageExpr(), EmitOMPAtomicCaptureExpr(), EmitOMPAtomicReadExpr(), EmitOMPAtomicUpdateExpr(), EmitOMPAtomicWriteExpr(), EmitOMPCopyinClause(), EmitOMPFirstprivateClause(), EmitOMPHelperVar(), EmitOMPLastprivateClauseInit(), EmitOMPLinearClauseFinal(), EmitOMPPrivateLoopCounters(), emitPseudoObjectExpr(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitReferenceBindingToExpr(), emitStructSetterCall(), emitSuspendExpression(), clang::CodeGen::emitTaskCall(), EmitTypeidFromVTable(), EmitVAListRef(), emitWritebackArg(), GenerateOpenMPCapturedVars(), tryEmitARCCopyWeakInit(), and tryEmitARCRetainLoadOfScalar().
Definition at line 3615 of file CGExpr.cpp.
References clang::Qualifiers::addCVRQualifiers(), Builder, emitAddrOfFieldStorage(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::LValueBaseInfo::getAlignmentSource(), clang::Type::getAs(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::CGRecordLayout::getBitFieldInfo(), clang::CodeGen::Address::getElementType(), clang::CodeGen::getFieldAlignmentSource(), clang::FieldDecl::getFieldIndex(), clang::ASTRecordLayout::getFieldOffset(), clang::CodeGen::CGRecordLayout::getLLVMFieldNo(), clang::CodeGen::LValueBaseInfo::getMayAlias(), clang::NamedDecl::getName(), clang::Qualifiers::getObjCGCAttr(), clang::FieldDecl::getParent(), clang::Type::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::CodeGen::LValue::getQuals(), clang::CodeGen::LValue::getTBAABaseType(), clang::CodeGen::LValue::getTBAAInfo(), clang::CodeGen::LValue::getTBAAOffset(), clang::ValueDecl::getType(), clang::CodeGen::LValue::getVRQualifiers(), hasAnyVptr(), clang::Decl::hasAttr(), clang::FieldDecl::isBitField(), clang::Type::isReferenceType(), clang::Qualifiers::removeObjCGCAttr(), clang::CodeGen::LValue::setTBAABaseType(), clang::CodeGen::LValue::setTBAAInfo(), clang::CodeGen::LValue::setTBAAOffset(), clang::CodeGen::CGBitFieldInfo::StorageOffset, clang::CodeGen::CGBitFieldInfo::StorageSize, clang::ast_matchers::type, clang::Qualifiers::Volatile, clang::Qualifiers::Weak, and clang::QualType::withCVRQualifiers().
Referenced by EmitCapturedFieldLValue(), emitDestructorsFunction(), clang::CodeGen::emitDoacrossInit(), EmitMaterializeTemporaryExpr(), emitPrivatesInit(), emitProxyTaskFunction(), clang::CodeGen::emitTaskCall(), emitTaskDupFunction(), clang::CodeGen::emitTaskInit(), clang::CodeGen::emitTaskLoopCall(), emitTaskPrivateMappingFunction(), and GenerateCapturedStmtFunction().
EmitLValueForFieldInitialization - Like EmitLValueForField, except that if the Field is a reference, this will return the address of the reference and not the address of the value stored in the reference.
Definition at line 3739 of file CGExpr.cpp.
References Builder, emitAddrOfFieldStorage(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValueBaseInfo::getAlignmentSource(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::getFieldAlignmentSource(), clang::CodeGen::LValueBaseInfo::getMayAlias(), clang::NamedDecl::getName(), clang::ValueDecl::getType(), and clang::Type::isReferenceType().
Referenced by EmitLambdaExpr(), EmitLValueForAnyFieldInitialization(), EmitMemberInitializer(), and InitCapturedStruct().
| LValue CodeGenFunction::EmitLValueForIvar | ( | QualType | ObjectTy, |
| llvm::Value * | Base, | ||
| const ObjCIvarDecl * | Ivar, | ||
| unsigned | CVRQualifiers | ||
| ) |
Definition at line 4292 of file CGExpr.cpp.
Referenced by emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), emitStructGetterCall(), emitStructSetterCall(), GenerateObjCCtorDtorMethod(), generateObjCGetterBody(), and generateObjCSetterBody().
Given that we are currently emitting a lambda, emit an l-value for one of its members.
Definition at line 3560 of file CGExpr.cpp.
References clang::FieldDecl::getParent().
Referenced by StartFunction().
| LValue CodeGenFunction::EmitMaterializeTemporaryExpr | ( | const MaterializeTemporaryExpr * | E | ) |
Definition at line 392 of file CGExpr.cpp.
References clang::SubobjectAdjustment::DTB::BasePath, CGM, ConvertTypeForMem(), createReferenceTemporary(), clang::CodeGen::Decl, clang::SubobjectAdjustment::DTB::DerivedClass, clang::SubobjectAdjustment::DerivedToBase, clang::SubobjectAdjustment::DerivedToBaseAdjustment, clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, E, EmitAggExpr(), EmitAnyExprToMem(), EmitCXXMemberDataPointerAddress(), EmitIgnoredExpr(), EmitLifetimeStart(), EmitLValueForField(), clang::CodeGen::CodeGenModule::EmitNullConstant(), EmitOpaqueValueLValue(), EmitScalarExpr(), EmitScalarInit(), clang::SubobjectAdjustment::Field, clang::SubobjectAdjustment::FieldAdjustment, clang::CodeGen::AggValueSlot::forAddr(), GetAddressOfBaseClass(), clang::CodeGen::Address::getAddressSpace(), clang::CodeGen::Address::getAlignment(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CodeGen::Address::getElementType(), getEvaluationKind(), clang::Expr::getExprLoc(), clang::MaterializeTemporaryExpr::getExtendingDecl(), clang::QualType::getObjCLifetime(), clang::CodeGen::Address::getPointer(), clang::QualType::getQualifiers(), clang::MaterializeTemporaryExpr::getStorageDuration(), clang::MaterializeTemporaryExpr::GetTemporaryExpr(), clang::Expr::getType(), I, clang::CodeGen::AggValueSlot::IsDestructed, clang::CodeGen::AggValueSlot::IsNotAliased, clang::SubobjectAdjustment::Kind, MakeAddrLValue(), clang::SubobjectAdjustment::MemberPointerAdjustment, clang::SubobjectAdjustment::P::MPT, clang::CodeGen::NormalEHLifetimeMarker, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::CastExpr::path_begin(), clang::CastExpr::path_end(), clang::SubobjectAdjustment::Ptr, pushTemporaryCleanup(), clang::SubobjectAdjustment::P::RHS, clang::SD_Automatic, clang::SD_FullExpression, clang::Expr::skipRValueSubobjectAdjustments(), clang::CodeGen::TEK_Aggregate, and clang::CodeGen::TEK_Scalar.
| void clang::CodeGen::CodeGenFunction::EmitMCountInstrumentation | ( | ) |
EmitMCountInstrumentation - Emit call to .mcount.
| LValue CodeGenFunction::EmitMemberExpr | ( | const MemberExpr * | E | ) |
Definition at line 3522 of file CGExpr.cpp.
References EmitFunctionDeclLValue(), EmitGlobalVarDeclLValue(), clang::MemberExpr::getBase(), clang::MemberExpr::getExprLoc(), clang::MemberExpr::getMemberDecl(), clang::Type::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::Expr::getType(), clang::MemberExpr::isArrow(), clang::SanitizerSet::set(), setObjCGCLValueClass(), and clang::CharUnits::Zero().
Emit a "reference" to a __builtin_ms_va_list; this is always the value of the expression, because a __builtin_ms_va_list is a pointer to a char.
Definition at line 1992 of file CodeGenFunction.cpp.
References EmitLValue(), and clang::CodeGen::LValue::getAddress().
| Value * CodeGenFunction::EmitMSVCBuiltinExpr | ( | MSVCIntrin | BuiltinID, |
| const CallExpr * | E | ||
| ) |
Definition at line 499 of file CGBuiltin.cpp.
References clang::prec::And, Begin, Builder, End, clang::CallExpr::getArg(), clang::Expr::getType(), MakeBinaryAtomicValue(), Result, and clang::CodeGen::Type.
Referenced by EmitARMBuiltinExpr(), and EmitX86BuiltinExpr().
| void CodeGenFunction::EmitMustTailThunk | ( | const CXXMethodDecl * | MD, |
| llvm::Value * | AdjustedThisPtr, | ||
| llvm::Value * | Callee | ||
| ) |
Emit a musttail call for a thunk with a potentially adjusted this pointer.
Definition at line 346 of file CGVTables.cpp.
References clang::CodeGen::CGFunctionInfo::arg_begin(), Builder, CGM, clang::CodeGen::CodeGenModule::ConstructAttributeList(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateStore(), CurFn, CurFnInfo, EmitBlock(), FinishFunction(), GetAddrOfLocalVar(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfoArgInfo::info, clang::CodeGen::ABIArgInfo::isDirect(), clang::CodeGen::ABIArgInfo::isInAlloca(), clang::CodeGen::ABIArgInfo::isIndirect(), clang::CodeGen::ABIArgInfo::isSRetAfterThis(), and clang::CodeGen::Type.
Referenced by EmitCallAndReturnForThunk().
| Value * CodeGenFunction::EmitNeonCall | ( | llvm::Function * | F, |
| SmallVectorImpl< llvm::Value * > & | O, | ||
| const char * | name, | ||
| unsigned | shift = 0, |
||
| bool | rightshift = false |
||
| ) |
Definition at line 3024 of file CGBuiltin.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), and EmitNeonShiftVector().
Referenced by EmitAArch64BuiltinExpr(), EmitAArch64TblBuiltinExpr(), EmitARMBuiltinExpr(), EmitCommonNeonBuiltinExpr(), EmitCommonNeonSISDBuiltinExpr(), and packTBLDVectorList().
| Value * CodeGenFunction::EmitNeonRShiftImm | ( | llvm::Value * | Vec, |
| llvm::Value * | Amt, | ||
| llvm::Type * | Ty, | ||
| bool | usgn, | ||
| const char * | name | ||
| ) |
Definition at line 3045 of file CGBuiltin.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitNeonShiftVector(), and clang::prec::Shift.
Referenced by EmitAArch64BuiltinExpr(), EmitARMBuiltinExpr(), and EmitCommonNeonBuiltinExpr().
| Value * CodeGenFunction::EmitNeonShiftVector | ( | llvm::Value * | V, |
| llvm::Type * | Ty, | ||
| bool | negateForRightShift | ||
| ) |
Definition at line 3038 of file CGBuiltin.cpp.
Referenced by EmitARMBuiltinExpr(), EmitCommonNeonBuiltinExpr(), EmitNeonCall(), and EmitNeonRShiftImm().
| Value * CodeGenFunction::EmitNeonSplat | ( | llvm::Value * | V, |
| llvm::Constant * | Idx | ||
| ) |
Definition at line 3018 of file CGBuiltin.cpp.
References Builder.
Referenced by EmitAArch64BuiltinExpr(), EmitARMBuiltinExpr(), and EmitCommonNeonBuiltinExpr().
| void CodeGenFunction::EmitNewArrayInitializer | ( | const CXXNewExpr * | E, |
| QualType | elementType, | ||
| llvm::Type * | ElementTy, | ||
| Address | NewPtr, | ||
| llvm::Value * | NumElements, | ||
| llvm::Value * | AllocSizeWithoutCookie | ||
| ) |
Definition at line 947 of file CGExprCXX.cpp.
References clang::CharUnits::alignmentAtOffset(), clang::CharUnits::alignmentOfArrayElement(), Builder, CGM, ConvertTypeForMem(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateMemSet(), clang::CodeGen::CGBuilderTy::CreateStore(), CreateTempAlloca(), DeactivateCleanupBlock(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EHStack, EmitAggExpr(), EmitBlock(), EmitCXXAggrConstructorCall(), clang::CodeGen::AggValueSlot::forAddr(), clang::CodeGen::Address::getAlignment(), clang::CXXNewExpr::getAllocatedType(), clang::Type::getAs(), clang::Type::getAsArrayTypeUnsafe(), clang::ASTContext::getConstantArrayElementCount(), getContext(), getDestroyer(), clang::CXXNewExpr::getInitializer(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::QualType::getQualifiers(), clang::CharUnits::getQuantity(), clang::CodeGen::CGBuilderTy::getSize(), clang::CodeGen::Address::getType(), clang::Expr::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::getTypeSizeInChars(), clang::CXXNewExpr::hasInitializer(), clang::CodeGen::Address::invalid(), clang::Type::isConstantArrayType(), clang::CodeGen::AggValueSlot::IsDestructed, clang::QualType::isDestructedType(), clang::CXXRecordDecl::isEmpty(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::FunctionDecl::isTrivial(), clang::CodeGen::Address::isValid(), clang::CodeGen::CodeGenTypes::isZeroInitializable(), needsEHCleanup(), pushIrregularPartialArrayCleanup(), pushRegularPartialArrayCleanup(), clang::CodeGen::EHScopeStack::stable_begin(), and StoreAnyExprIntoOneUnit().
Referenced by EmitNewInitializer().
| void CodeGenFunction::EmitNonNullArgCheck | ( | RValue | RV, |
| QualType | ArgType, | ||
| SourceLocation | ArgLoc, | ||
| AbstractCallee | AC, | ||
| unsigned | ParmNum | ||
| ) |
Create a check for a function parameter that may potentially be declared as non-null.
Definition at line 3283 of file CGCall.cpp.
References Builder, clang::CodeGen::CodeGenFunction::AbstractCallee::getDecl(), getNonNullAttr(), clang::CodeGen::CodeGenFunction::AbstractCallee::getNumParams(), clang::CodeGen::CodeGenFunction::AbstractCallee::getParamDecl(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::RValue::isScalar(), clang::None, and clang::NonNull.
| void CodeGenFunction::EmitNoreturnRuntimeCallOrInvoke | ( | llvm::Value * | callee, |
| ArrayRef< llvm::Value * > | args | ||
| ) |
Emits a call or invoke to the given noreturn runtime function.
Definition at line 3613 of file CGCall.cpp.
References Builder, and getBundlesForFunclet().
| llvm::CallInst* clang::CodeGen::CodeGenFunction::EmitNounwindRuntimeCall | ( | llvm::Value * | callee, |
| const Twine & | name = "" |
||
| ) |
Referenced by BuildBlockRelease(), CallBeginCatch(), EmitAArch64BuiltinExpr(), emitARCCopyOperation(), EmitARCDestroyWeak(), EmitARCIntrinsicUse(), emitARCLoadOperation(), EmitARCRelease(), emitARCStoreOperation(), EmitARCStoreStrongCall(), emitARCValueOperation(), EmitARMBuiltinExpr(), EmitBuiltinAvailable(), emitCheckHandlerCall(), EmitExtendGCLifetime(), EmitFunctionInstrumentation(), emitGlobalDtorWithCXAAtExit(), emitGlobalDtorWithTLRegDtor(), EmitObjCAutoreleasePoolPush(), clang::CodeGen::CGCXXABI::emitTerminateForUnexpectedException(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), GenerateCopyHelperFunction(), InitCatchParam(), and registerGlobalDtorWithAtExit().
| llvm::CallInst* clang::CodeGen::CodeGenFunction::EmitNounwindRuntimeCall | ( | llvm::Value * | callee, |
| ArrayRef< llvm::Value * > | args, | ||
| const Twine & | name = "" |
||
| ) |
| void CodeGenFunction::EmitNullabilityCheck | ( | LValue | LHS, |
| llvm::Value * | RHS, | ||
| SourceLocation | Loc | ||
| ) |
Given an assignment *LHS = RHS, emit a test that checks if RHS is nonnull, if LHS is marked _Nonnull.
Definition at line 684 of file CGDecl.cpp.
References Builder, EmitCheck(), EmitCheckSourceLocation(), EmitCheckTypeDescriptor(), getContext(), clang::Type::getNullability(), clang::CodeGen::LValue::getType(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::NonNull, SanOpts, and TCK_NonnullAssign.
Referenced by EmitScalarInit().
EmitNullInitialization - Generate code to set a value of the given type to null, If the type contains data member pointers, they will be initialized to -1 in accordance with the Itanium C++ ABI.
Definition at line 1616 of file CodeGenFunction.cpp.
References Builder, CGM, clang::frontend::CPlusPlus, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateMemCpy(), clang::CodeGen::CGBuilderTy::CreateMemSet(), emitNonZeroVLAInit(), clang::CodeGen::CodeGenModule::EmitNullConstant(), clang::CodeGen::Address::getAlignment(), clang::Type::getAs(), clang::ASTContext::getBaseElementType(), getContext(), clang::CodeGen::Address::getElementType(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CodeGenModule::getSize(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::getTypeSizeInChars(), getVLASize(), clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::CharUnits::isOne(), clang::CharUnits::isZero(), and clang::CodeGen::CodeGenTypes::isZeroInitializable().
Referenced by EmitCXXAggrConstructorCall(), EmitCXXConstructExpr(), clang::CodeGen::emitDoacrossInit(), EmitObjCForCollectionStmt(), EmitSynthesizedCXXCopyCtor(), and clang::CodeGen::emitTaskLoopCall().
Definition at line 9046 of file CGBuiltin.cpp.
References clang::prec::And, Builder, CGM, EmitScalarExpr(), clang::CallExpr::getArg(), clang::CodeGen::CodeGenModule::getIntrinsic(), getNaturalPointeeTypeAlignment(), clang::Expr::getType(), MakeAtomicCmpXchgValue(), and MakeBinaryAtomicValue().
Referenced by EmitTargetArchBuiltinExpr().
| RValue CodeGenFunction::EmitNVPTXDevicePrintfCallExpr | ( | const CallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Definition at line 70 of file CGGPUBuiltin.cpp.
References clang::CallExpr::arguments(), Builder, CGM, clang::serialized_diags::create(), clang::CodeGen::CGBuilderTy::CreateAlignedStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), CreateTempAlloca(), EmitCallArgs(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), clang::CodeGen::RValue::get(), clang::Type::getAs(), clang::CallExpr::getBuiltinCallee(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::CallExpr::getDirectCallee(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), clang::CallExpr::getNumArgs(), getTarget(), clang::ValueDecl::getType(), GetVprintfDeclaration(), I, clang::CodeGen::CodeGenTypeCache::IntTy, P, and clang::CodeGen::Type.
| llvm::Value * CodeGenFunction::EmitObjCArrayLiteral | ( | const ObjCArrayLiteral * | E | ) |
Definition at line 239 of file CGObjC.cpp.
References EmitObjCCollectionLiteral(), and clang::ObjCArrayLiteral::getArrayWithObjectsMethod().
| void CodeGenFunction::EmitObjCAtSynchronizedStmt | ( | const ObjCAtSynchronizedStmt & | S | ) |
Definition at line 1771 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::EmitSynchronizedStmt(), and clang::CodeGen::CodeGenModule::getObjCRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitObjCAtThrowStmt | ( | const ObjCAtThrowStmt & | S | ) |
Definition at line 1767 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::EmitThrowStmt(), and clang::CodeGen::CodeGenModule::getObjCRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitObjCAtTryStmt | ( | const ObjCAtTryStmt & | S | ) |
Definition at line 1763 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::EmitTryStmt(), and clang::CodeGen::CodeGenModule::getObjCRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitObjCAutoreleasePoolCleanup | ( | llvm::Value * | Ptr | ) |
Definition at line 2445 of file CGObjC.cpp.
References EHStack, clang::CodeGen::CodeGenModule::getLangOpts(), and clang::CodeGen::NormalCleanup.
Referenced by GenerateCXXGlobalInitFunc().
| void CodeGenFunction::EmitObjCAutoreleasePoolPop | ( | llvm::Value * | value | ) |
Produce the code to do a primitive release.
call void @objc_autoreleasePoolPop(i8* ptr)
Definition at line 2345 of file CGObjC.cpp.
References Builder, createARCRuntimeFunction(), EmitRuntimeCallOrInvoke(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and clang::CodeGen::ObjCEntrypoints::objc_autoreleasePoolPop.
| llvm::Value * CodeGenFunction::EmitObjCAutoreleasePoolPush | ( | ) |
Produce the code to do a objc_autoreleasepool_push.
call i8* @objc_autoreleasePoolPush(void)
Definition at line 2332 of file CGObjC.cpp.
References createARCRuntimeFunction(), EmitNounwindRuntimeCall(), clang::CodeGen::CodeGenModule::getObjCEntrypoints(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and clang::CodeGen::ObjCEntrypoints::objc_autoreleasePoolPush.
Referenced by EmitObjCAutoreleasePoolStmt(), and GenerateCXXGlobalInitFunc().
| void CodeGenFunction::EmitObjCAutoreleasePoolStmt | ( | const ObjCAutoreleasePoolStmt & | S | ) |
Definition at line 3167 of file CGObjC.cpp.
References clang::CompoundStmt::body(), Builder, EHStack, clang::CodeGen::CGDebugInfo::EmitLexicalBlockEnd(), clang::CodeGen::CGDebugInfo::EmitLexicalBlockStart(), EmitObjCAutoreleasePoolPush(), EmitObjCMRRAutoreleasePoolPush(), EmitStmt(), getDebugInfo(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CompoundStmt::getLBracLoc(), clang::CompoundStmt::getRBracLoc(), clang::ObjCAutoreleasePoolStmt::getSubStmt(), clang::ObjCRuntime::hasNativeARC(), I, clang::CodeGen::NormalCleanup, clang::LangOptions::ObjCRuntime, and S.
Referenced by EmitStmt().
| llvm::Value * CodeGenFunction::EmitObjCBoxedExpr | ( | const ObjCBoxedExpr * | E | ) |
EmitObjCBoxedExpr - This routine generates code to call the appropriate expression boxing method.
This will either be one of +[NSNumber numberWith<Type>:], or +[NSString stringWithUTF8String:], or [NSValue valueWithBytes:objCType:].
Definition at line 60 of file CGObjC.cpp.
References clang::CodeGen::CallArgList::add(), Builder, CGM, ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), CreateMemTemp(), EmitAnyExpr(), EmitAnyExprToMem(), clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::CodeGen::RValue::get(), clang::CodeGen::CodeGenModule::GetAddrOfConstantCString(), clang::ObjCBoxedExpr::getBoxingMethod(), clang::QualType::getCanonicalType(), clang::CodeGen::CGObjCRuntime::GetClass(), clang::ObjCMethodDecl::getClassInterface(), getContext(), clang::ASTContext::getObjCEncodingForType(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::Address::getPointer(), clang::CodeGen::ConstantAddress::getPointer(), clang::ObjCMethodDecl::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::ObjCMethodDecl::getSelector(), clang::ObjCBoxedExpr::getSubExpr(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), clang::ObjCMethodDecl::isClassMethod(), clang::ObjCMethodDecl::param_begin(), and clang::ObjCMethodDecl::parameters().
| llvm::Value * CodeGenFunction::EmitObjCCollectionLiteral | ( | const Expr * | E, |
| const ObjCMethodDecl * | MethodWithObjects | ||
| ) |
Definition at line 113 of file CGObjC.cpp.
References clang::CodeGen::CallArgList::add(), Builder, CGM, Context, clang::CodeGen::CodeGenTypes::ConvertType(), ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateConstArrayGEP(), CreateMemTemp(), clang::CodeGen::CodeGenModule::CreateRuntimeVariable(), clang::CodeGen::Decl, E, EmitARCIntrinsicUse(), EmitLoadOfScalar(), EmitScalarExpr(), EmitStoreThroughLValue(), clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::CodeGen::RValue::get(), clang::Type::getAsObjCInterfacePointerType(), clang::CodeGen::CGObjCRuntime::GetClass(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::ASTContext::getConstantArrayType(), clang::CodeGen::CodeGenModule::getContext(), clang::ObjCArrayLiteral::getElement(), clang::ObjCObjectType::getInterface(), clang::ObjCDictionaryLiteral::getKeyValueElement(), clang::CodeGen::CodeGenModule::getLangOpts(), getLangOpts(), getLLVMContext(), clang::Stmt::getLocStart(), clang::CodeGen::CodeGenModule::getModule(), clang::ObjCArrayLiteral::getNumElements(), clang::ObjCDictionaryLiteral::getNumElements(), clang::ASTContext::getObjCIdType(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::ObjCObjectPointerType::getObjectType(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerSize(), clang::ObjCMethodDecl::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::ObjCMethodDecl::getSelector(), clang::ASTContext::getSizeType(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::getTypeSize(), clang::QualType::getUnqualifiedType(), clang::ObjCRuntime::hasEmptyCollections(), clang::CodeGen::Address::invalid(), clang::ObjCDictionaryElement::Key, MakeAddrLValue(), MakeNaturalAlignAddrLValue(), clang::None, clang::ArrayType::Normal, clang::LangOptions::ObjCRuntime, clang::ObjCMethodDecl::param_begin(), clang::ObjCDictionaryElement::Value, and clang::QualType::withConst().
Referenced by EmitObjCArrayLiteral(), and EmitObjCDictionaryLiteral().
| llvm::Value * CodeGenFunction::EmitObjCConsumeObject | ( | QualType | type, |
| llvm::Value * | object | ||
| ) |
Produce the code for a CK_ARCConsumeObject.
Does a primitive release at the end of the full-expression.
Definition at line 1790 of file CGObjC.cpp.
References getARCCleanupKind().
Referenced by EmitARCExtendBlockObject(), EmitARCReclaimReturnedObject(), clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), and EmitObjCForCollectionStmt().
| llvm::Value * CodeGenFunction::EmitObjCDictionaryLiteral | ( | const ObjCDictionaryLiteral * | E | ) |
Definition at line 243 of file CGObjC.cpp.
References EmitObjCCollectionLiteral(), and clang::ObjCDictionaryLiteral::getDictWithObjectsMethod().
| LValue CodeGenFunction::EmitObjCEncodeExprLValue | ( | const ObjCEncodeExpr * | E | ) |
Definition at line 2470 of file CGExpr.cpp.
References clang::Expr::getType().
| llvm::Value * CodeGenFunction::EmitObjCExtendObjectLifetime | ( | QualType | T, |
| llvm::Value * | Ptr | ||
| ) |
Definition at line 1798 of file CGObjC.cpp.
References EmitARCRetainAutorelease().
| void CodeGenFunction::EmitObjCForCollectionStmt | ( | const ObjCForCollectionStmt & | S | ) |
Definition at line 1472 of file CGObjC.cpp.
References clang::CodeGen::CallArgList::add(), clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionCall(), Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), EmitARCRetainScalarExpr(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitAutoVarInit(), EmitBlock(), EmitCall(), clang::CodeGen::CGDebugInfo::EmitLexicalBlockEnd(), clang::CodeGen::CGDebugInfo::EmitLexicalBlockStart(), EmitLValue(), EmitNullInitialization(), EmitObjCConsumeObject(), EmitScalarExpr(), EmitStmt(), EmitStoreThroughLValue(), clang::CodeGen::CGObjCRuntime::EnumerationMutationFunction(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::CodeGen::RValue::get(), clang::IdentifierTable::get(), clang::SourceRange::getBegin(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::ObjCForCollectionStmt::getBody(), clang::ObjCForCollectionStmt::getCollection(), clang::ASTContext::getConstantArrayType(), clang::CodeGen::CodeGenModule::getContext(), getContext(), getCurrentProfileCount(), getDebugInfo(), clang::ObjCForCollectionStmt::getElement(), clang::SourceRange::getEnd(), getJumpDestInCurrentScope(), getLangOpts(), clang::CodeGen::CodeGenModule::getObjCFastEnumerationStateType(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::CodeGen::CodeGenTypeCache::getPointerSize(), clang::ASTContext::getPointerType(), getProfileCount(), clang::CodeGen::RValue::getScalarVal(), clang::SelectorTable::getSelector(), clang::Stmt::getSourceRange(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::Idents, incrementProfileCounter(), clang::CodeGen::CodeGenFunction::AutoVarEmission::invalid(), clang::VarDecl::isARCPseudoStrong(), clang::ArrayType::Normal, clang::Qualifiers::OCL_ExplicitNone, clang::ASTContext::Selectors, clang::CodeGen::Type, clang::VK_LValue, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitStmt().
| LValue CodeGenFunction::EmitObjCIsaExpr | ( | const ObjCIsaExpr * | E | ) |
Definition at line 3789 of file CGExprScalar.cpp.
References Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), EmitLValue(), EmitScalarExpr(), clang::CodeGen::LValue::getAddress(), clang::ObjCIsaExpr::getBase(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::Expr::getType(), clang::CodeGen::Address::invalid(), clang::Expr::isRValue(), and MakeAddrLValue().
| LValue CodeGenFunction::EmitObjCIvarRefLValue | ( | const ObjCIvarRefExpr * | E | ) |
Definition at line 4300 of file CGExpr.cpp.
References clang::ObjCIvarRefExpr::getBase(), clang::Qualifiers::getCVRQualifiers(), clang::ObjCIvarRefExpr::getDecl(), clang::Type::getPointeeType(), clang::CodeGen::LValue::getPointer(), clang::QualType::getQualifiers(), clang::Expr::getType(), clang::ObjCIvarRefExpr::isArrow(), and setObjCGCLValueClass().
| RValue CodeGenFunction::EmitObjCMessageExpr | ( | const ObjCMessageExpr * | E, |
| ReturnValueSlot | Return = ReturnValueSlot() |
||
| ) |
Definition at line 355 of file CGObjC.cpp.
References AdjustObjCObjectType(), clang::ObjCMessageExpr::arguments(), Builder, CGM, clang::ObjCMessageExpr::Class, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateStore(), CurCodeDecl, CurFuncDecl, EmitARCLoadWeakRetained(), EmitARCRetainAutorelease(), EmitARCRetainNonBlock(), EmitCallArgs(), EmitLValue(), EmitScalarExpr(), findWeakLValue(), clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::CodeGen::CGObjCRuntime::GenerateMessageSendSuper(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), GetAddrOfLocalVar(), clang::Type::getAs(), clang::CodeGen::CGObjCRuntime::GetClass(), clang::ObjCMethodDecl::getClassInterface(), clang::ObjCMessageExpr::getClassReceiver(), clang::Decl::getDeclContext(), clang::CodeGen::Address::getElementType(), clang::ObjCMessageExpr::getInstanceReceiver(), clang::ObjCObjectType::getInterface(), clang::CodeGen::CodeGenModule::getLangOpts(), getLangOpts(), clang::ObjCMessageExpr::getMethodDecl(), clang::ObjCMethodDecl::getMethodFamily(), getNullForVariable(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::ObjCMessageExpr::getReceiverKind(), clang::ObjCMethodDecl::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::ObjCMessageExpr::getSelector(), clang::ObjCMessageExpr::getSuperType(), clang::Expr::getType(), clang::Decl::hasAttr(), clang::ObjCMessageExpr::Instance, clang::ObjCMessageExpr::isDelegateInitCall(), LoadObjCSelf(), clang::OMF_retain, shouldExtendReceiverForInnerPointerMessage(), clang::ObjCMessageExpr::SuperClass, clang::ObjCMessageExpr::SuperInstance, tryEmitARCRetainScalarExpr(), and clang::CodeGen::Type.
| LValue CodeGenFunction::EmitObjCMessageExprLValue | ( | const ObjCMessageExpr * | E | ) |
Definition at line 4266 of file CGExpr.cpp.
References clang::CodeGen::RValue::getAggregateAddress(), clang::ObjCMessageExpr::getMethodDecl(), clang::ObjCMethodDecl::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::Expr::getType(), clang::Type::isReferenceType(), and clang::CodeGen::RValue::isScalar().
| void CodeGenFunction::EmitObjCMRRAutoreleasePoolPop | ( | llvm::Value * | Arg | ) |
Produce the code to do a primitive release.
[tmp drain];
Definition at line 2392 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::IdentifierTable::get(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::SelectorTable::getSelector(), clang::ASTContext::Idents, clang::ASTContext::Selectors, and clang::CodeGen::CodeGenTypeCache::VoidTy.
| llvm::Value * CodeGenFunction::EmitObjCMRRAutoreleasePoolPush | ( | ) |
Produce the code to do an MRR version objc_autoreleasepool_push.
Which is: [[NSAutoreleasePool alloc] init]; Where alloc is declared as: + (id) alloc; in NSAutoreleasePool class. init is declared as: - (id) init; in its NSObject super class.
Definition at line 2367 of file CGObjC.cpp.
References clang::CodeGen::CGObjCRuntime::EmitNSAutoreleasePoolClassRef(), clang::CodeGen::CGObjCRuntime::GenerateMessageSend(), clang::IdentifierTable::get(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::RValue::getScalarVal(), clang::SelectorTable::getSelector(), clang::ASTContext::Idents, and clang::ASTContext::Selectors.
Referenced by EmitObjCAutoreleasePoolStmt().
| llvm::Value * CodeGenFunction::EmitObjCProtocolExpr | ( | const ObjCProtocolExpr * | E | ) |
Definition at line 257 of file CGObjC.cpp.
References CGM, clang::CodeGen::CGObjCRuntime::GenerateProtocolRef(), clang::CodeGen::CodeGenModule::getObjCRuntime(), and clang::ObjCProtocolExpr::getProtocol().
| llvm::Value * CodeGenFunction::EmitObjCSelectorExpr | ( | const ObjCSelectorExpr * | E | ) |
Emit a selector.
Definition at line 249 of file CGObjC.cpp.
References CGM, clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::CGObjCRuntime::GetSelector(), and clang::ObjCSelectorExpr::getSelector().
| LValue CodeGenFunction::EmitObjCSelectorLValue | ( | const ObjCSelectorExpr * | E | ) |
Definition at line 4280 of file CGExpr.cpp.
References clang::ObjCSelectorExpr::getSelector(), and clang::Expr::getType().
| llvm::Value * CodeGenFunction::EmitObjCStringLiteral | ( | const ObjCStringLiteral * | E | ) |
Emits an instance of NSConstantString representing the object.
Definition at line 46 of file CGObjC.cpp.
References CGM, ConvertType(), clang::CodeGen::CGObjCRuntime::GenerateConstantString(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::ObjCStringLiteral::getString(), and clang::Expr::getType().
| llvm::Value * CodeGenFunction::EmitObjCThrowOperand | ( | const Expr * | expr | ) |
Definition at line 3020 of file CGObjC.cpp.
References EmitARCRetainAutoreleaseScalarExpr(), EmitScalarExpr(), and getLangOpts().
| void CodeGenFunction::EmitOMPAggregateAssign | ( | Address | DestAddr, |
| Address | SrcAddr, | ||
| QualType | OriginalType, | ||
| const llvm::function_ref< void(Address, Address)> & | CopyGen | ||
| ) |
Perform element by element copying of arrays with type OriginalType from SrcAddr to DestAddr using copying procedure generated by CopyGen.
| DestAddr | Address of the destination array. |
| SrcAddr | Address of the source array. |
| OriginalType | Type of destination and source arrays. |
| CopyGen | Copying procedure that copies value of single array element to another single array element. |
Definition at line 491 of file CGStmtOpenMP.cpp.
References clang::CharUnits::alignmentOfArrayElement(), Builder, createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), emitArrayLength(), EmitBlock(), clang::CodeGen::Address::getAlignment(), clang::Type::getAsArrayTypeUnsafe(), getContext(), clang::CodeGen::Address::getElementType(), clang::CodeGen::Address::getPointer(), and clang::ASTContext::getTypeSizeInChars().
Referenced by EmitOMPCopy(), EmitOMPFirstprivateClause(), and emitPrivatesInit().
| LValue CodeGenFunction::EmitOMPArraySectionExpr | ( | const OMPArraySectionExpr * | E, |
| bool | IsLowerBound = true |
||
| ) |
Definition at line 3310 of file CGExpr.cpp.
References Builder, emitArraySubscriptGEP(), emitOMPArraySectionBase(), clang::OMPArraySectionExpr::getBase(), clang::OMPArraySectionExpr::getBaseOriginalType(), clang::OMPArraySectionExpr::getColonLoc(), clang::CodeGen::Address::getElementType(), clang::OMPArraySectionExpr::getExprLoc(), clang::OMPArraySectionExpr::getLength(), clang::OMPArraySectionExpr::getLowerBound(), clang::Type::getPointeeType(), clang::Expr::getType(), clang::Expr::IgnoreParenImpCasts(), clang::SourceLocation::isInvalid(), clang::Type::isPointerType(), isSimpleArrayDecayOperand(), Length, and clang::CharUnits::Zero().
Referenced by emitOMPArraySectionBase(), and clang::CodeGen::emitTaskCall().
| void CodeGenFunction::EmitOMPAtomicDirective | ( | const OMPAtomicDirective & | S | ) |
Definition at line 3511 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::clauses(), EmitOMPAtomicExpr(), enterFullExpression(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPAtomicDirective::getExpr(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPAtomicDirective::getUpdateExpr(), clang::OMPAtomicDirective::getV(), clang::OMPAtomicDirective::getX(), clang::Stmt::IgnoreContainers(), clang::OMPAtomicDirective::isPostfixUpdate(), clang::OMPAtomicDirective::isXLHSInRHSPart(), clang::OMPC_unknown, and S.
Referenced by EmitStmt().
| std::pair< bool, RValue > CodeGenFunction::EmitOMPAtomicSimpleUpdateExpr | ( | LValue | X, |
| RValue | E, | ||
| BinaryOperatorKind | BO, | ||
| bool | IsXLHSInRHSPart, | ||
| llvm::AtomicOrdering | AO, | ||
| SourceLocation | Loc, | ||
| const llvm::function_ref< RValue(RValue)> & | CommonGen | ||
| ) |
Emit atomic update code for constructs: X = X BO E or X = E BO E.
| X | Value to be updated. |
| E | Update value. |
| BO | Binary operation for update operation. |
| IsXLHSInRHSPart | true if X is LHS in RHS part of the update expression, false otherwise. |
| AO | Atomic ordering of the generated atomic instructions. |
| CommonGen | Code generator for complex expressions that cannot be expressed through atomicrmw instruction. |
Definition at line 3282 of file CGStmtOpenMP.cpp.
References EmitAtomicUpdate(), EmitLoadOfLValue(), emitOMPAtomicRMW(), EmitStoreThroughLValue(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::isGlobalReg(), and clang::QualType::isVolatileQualified().
Referenced by EmitOMPAtomicCaptureExpr(), and EmitOMPAtomicUpdateExpr().
| void CodeGenFunction::EmitOMPBarrierDirective | ( | const OMPBarrierDirective & | S | ) |
Definition at line 2855 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::getLocStart(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPCancelDirective | ( | const OMPCancelDirective & | S | ) |
Definition at line 3719 of file CGStmtOpenMP.cpp.
References clang::OMPCancelDirective::getCancelRegion(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and clang::OMPD_unknown.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPCancellationPointDirective | ( | const OMPCancellationPointDirective & | S | ) |
Definition at line 3713 of file CGStmtOpenMP.cpp.
References clang::OMPCancellationPointDirective::getCancelRegion(), clang::OMPExecutableDirective::getLocStart(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPCopy | ( | QualType | OriginalType, |
| Address | DestAddr, | ||
| Address | SrcAddr, | ||
| const VarDecl * | DestVD, | ||
| const VarDecl * | SrcVD, | ||
| const Expr * | Copy | ||
| ) |
Emit proper copying of data from one variable to another.
| OriginalType | Original type of the copied variables. |
| DestAddr | Destination address. |
| SrcAddr | Source address. |
| DestVD | Destination variable used in CopyExpr (for arrays, has type of the base array element). |
| SrcVD | Source variable used in CopyExpr (for arrays, has type of the base array element). |
| Copy | Actual copygin expression for copying data from SrcVD to DestVD. |
Definition at line 552 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), EmitAggregateAssign(), EmitIgnoredExpr(), EmitOMPAggregateAssign(), clang::Type::isArrayType(), and clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize().
Referenced by emitCopyprivateCopyFunction(), EmitOMPCopyinClause(), and EmitOMPLastprivateClauseFinal().
| bool CodeGenFunction::EmitOMPCopyinClause | ( | const OMPExecutableDirective & | D | ) |
Emit code for copyin clause in D directive.
The next code is generated at the start of outlined functions for directives:
| D | OpenMP directive possibly with 'copyin' clause(s). |
Definition at line 710 of file CGStmtOpenMP.cpp.
References Builder, CapturedStmtInfo, createBasicBlock(), EmitBlock(), EmitLValue(), EmitOMPCopy(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::CodeGenModule::GetAddrOfGlobal(), clang::VarDecl::getCanonicalDecl(), clang::OMPExecutableDirective::getClausesOfKind(), getContext(), clang::ASTContext::getDeclAlign(), getLangOpts(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenModule::getStaticLocalDeclAddress(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::CodeGen::CodeGenTypeCache::IntPtrTy, clang::CodeGen::Address::invalid(), clang::VarDecl::isStaticLocal(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), and clang::VK_LValue.
Referenced by EmitOMPParallelDirective().
| void CodeGenFunction::EmitOMPCriticalDirective | ( | const OMPCriticalDirective & | S | ) |
Definition at line 2569 of file CGStmtOpenMP.cpp.
References Action, EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::DeclarationNameInfo::getAsString(), clang::OMPCriticalDirective::getDirectiveName(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPDistributeDirective | ( | const OMPDistributeDirective & | S | ) |
Definition at line 3038 of file CGStmtOpenMP.cpp.
References emitOMPLoopBodyWithStopPoint(), clang::OMPLoopDirective::getInc(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPDistributeParallelForDirective | ( | const OMPDistributeParallelForDirective & | S | ) |
Definition at line 1939 of file CGStmtOpenMP.cpp.
References emitInnerParallelForWhenCombined(), clang::OMPLoopDirective::getDistInc(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPDistributeParallelForSimdDirective | ( | const OMPDistributeParallelForSimdDirective & | S | ) |
Definition at line 1952 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPDistributeSimdDirective | ( | const OMPDistributeSimdDirective & | S | ) |
Definition at line 1964 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| bool CodeGenFunction::EmitOMPFirstprivateClause | ( | const OMPExecutableDirective & | D, |
| OMPPrivateScope & | PrivateScope | ||
| ) |
Definition at line 590 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), CapturedStmtInfo, EmitAggregateAssign(), EmitAnyExprToMem(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitDecl(), EmitLValue(), EmitOMPAggregateAssign(), clang::CodeGen::LValue::getAddress(), GetAddrOfLocalVar(), clang::OMPExecutableDirective::getAssociatedStmt(), getCanonicalDecl(), clang::OMPExecutableDirective::getClausesOfKind(), clang::VarDecl::getInit(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::Type::isArrayType(), isTrivialInitializer(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), clang::CodeGen::Type, and clang::VK_LValue.
Referenced by EmitOMPParallelDirective(), EmitOMPSingleDirective(), EmitOMPTeamsDirective(), and emitTargetRegion().
| void CodeGenFunction::EmitOMPFlushDirective | ( | const OMPFlushDirective & | S | ) |
Definition at line 2873 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and clang::None.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPForDirective | ( | const OMPForDirective & | S | ) |
Definition at line 2311 of file CGStmtOpenMP.cpp.
References emitDispatchForLoopBounds(), emitForLoopBounds(), clang::OMPLoopDirective::getEnsureUpperBound(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPForDirective::hasCancel(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPForSimdDirective | ( | const OMPForSimdDirective & | S | ) |
Definition at line 2332 of file CGStmtOpenMP.cpp.
References emitDispatchForLoopBounds(), emitForLoopBounds(), clang::OMPLoopDirective::getEnsureUpperBound(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPInnerLoop | ( | const Stmt & | S, |
| bool | RequiresCleanup, | ||
| const Expr * | LoopCond, | ||
| const Expr * | IncExpr, | ||
| const llvm::function_ref< void(CodeGenFunction &)> & | BodyGen, | ||
| const llvm::function_ref< void(CodeGenFunction &)> & | PostIncGen | ||
| ) |
Emit inner loop of the worksharing/simd construct.
| S | Directive, for which the inner loop must be emitted. |
| RequiresCleanup | true, if directive has some associated private variables. |
| LoopCond | Bollean condition for loop continuation. |
| IncExpr | Increment expression for loop control variable. |
| BodyGen | Generator for the inner body of the inner loop. |
| PostIncGen | Genrator for post-increment code (required for ordered loop directvies). |
Definition at line 1164 of file CGStmtOpenMP.cpp.
References createBasicBlock(), EmitBlock(), EmitBranch(), EmitBranchOnBoolExpr(), EmitBranchThroughCleanup(), EmitIgnoredExpr(), clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), getJumpDestInCurrentScope(), getProfileCount(), clang::Stmt::getSourceRange(), incrementProfileCounter(), LoopStack, clang::CodeGen::LoopInfoStack::pop(), clang::CodeGen::LoopInfoStack::push(), and SourceLocToDebugLoc().
Referenced by EmitOMPSimdDirective().
| void CodeGenFunction::EmitOMPLastprivateClauseFinal | ( | const OMPExecutableDirective & | D, |
| bool | NoFinals, | ||
| llvm::Value * | IsLastIterCond = nullptr |
||
| ) |
Emit final copying of lastprivate values to original variables at the end of the worksharing or simd directive.
| D | Directive that has at least one 'lastprivate' directives. |
| IsLastIterCond | Boolean condition that must be set to 'i1 true' if it is the last iteration of the loop code in associated directive, or to 'i1 false' otherwise. If this item is nullptr, no final check is required. |
Definition at line 834 of file CGStmtOpenMP.cpp.
References Builder, createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateLoad(), EmitBlock(), EmitIgnoredExpr(), EmitOMPCopy(), GetAddrOfLocalVar(), getCanonicalDecl(), clang::OMPExecutableDirective::getClausesOfKind(), getNaturalTypeAlignment(), and HaveInsertPoint().
Referenced by EmitOMPSimdDirective().
| bool CodeGenFunction::EmitOMPLastprivateClauseInit | ( | const OMPExecutableDirective & | D, |
| OMPPrivateScope & | PrivateScope | ||
| ) |
Emit initial code for lastprivate variables.
If some variable is not also firstprivate, then the default initialization is used. Otherwise initialization of this variable is performed by EmitOMPFirstprivateClause method.
| D | Directive that may have 'lastprivate' directives. |
| PrivateScope | Private scope for capturing lastprivate variables for proper codegen in internal captured statement. |
Definition at line 776 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), CapturedStmtInfo, EmitDecl(), EmitLValue(), clang::CodeGen::LValue::getAddress(), GetAddrOfLocalVar(), getCanonicalDecl(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getDirectiveKind(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::isOpenMPSimdDirective(), clang::isOpenMPTaskLoopDirective(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), and clang::VK_LValue.
Referenced by EmitOMPSimdDirective().
| void CodeGenFunction::EmitOMPLinearClause | ( | const OMPLoopDirective & | D, |
| CodeGenFunction::OMPPrivateScope & | PrivateScope | ||
| ) |
Emit initial code for linear clauses.
Definition at line 1366 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), E, getCanonicalDecl(), clang::VarDecl::getCanonicalDecl(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getDirectiveKind(), and clang::isOpenMPSimdDirective().
Referenced by EmitOMPSimdDirective().
| void CodeGenFunction::EmitOMPLinearClauseFinal | ( | const OMPLoopDirective & | D, |
| const llvm::function_ref< llvm::Value *(CodeGenFunction &)> & | CondGen | ||
| ) |
Emit final code for linear clauses.
| CondGen | Optional conditional code for final part of codegen for linear clause. |
Definition at line 1245 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), Builder, CapturedStmtInfo, createBasicBlock(), EmitBlock(), EmitIgnoredExpr(), EmitLValue(), clang::CodeGen::LValue::getAddress(), clang::OMPExecutableDirective::getClausesOfKind(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), and clang::VK_LValue.
Referenced by EmitOMPSimdDirective().
| void CodeGenFunction::EmitOMPLinearClauseInit | ( | const OMPLoopDirective & | D | ) |
Emit initial code for linear variables.
Creates private copies and initializes them with the values according to OpenMP standard.
| D | Directive (possibly) with the 'linear' clause. |
Definition at line 1213 of file CGStmtOpenMP.cpp.
References CapturedStmtInfo, EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitExprAsInit(), EmitIgnoredExpr(), EmitVarDecl(), clang::CodeGen::CodeGenFunction::AutoVarEmission::getAllocatedAddress(), clang::OMPExecutableDirective::getClausesOfKind(), clang::Expr::getExprLoc(), clang::VarDecl::getInit(), clang::Expr::getType(), clang::ValueDecl::getType(), HaveInsertPoint(), clang::Expr::IgnoreImpCasts(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), MakeAddrLValue(), and clang::VK_LValue.
Referenced by EmitOMPSimdDirective().
| void CodeGenFunction::EmitOMPLoopBody | ( | const OMPLoopDirective & | D, |
| JumpDest | LoopExit | ||
| ) |
Helper for the OpenMP loop directives.
Definition at line 1141 of file CGStmtOpenMP.cpp.
References EmitBlock(), EmitIgnoredExpr(), EmitStmt(), clang::OMPLoopDirective::getBody(), clang::OMPExecutableDirective::getClausesOfKind(), getJumpDestInCurrentScope(), I, and clang::OMPLoopDirective::updates().
Referenced by emitOMPLoopBodyWithStopPoint(), EmitOMPSimdDirective(), and EmitOMPWorksharingLoop().
| void CodeGenFunction::EmitOMPMasterDirective | ( | const OMPMasterDirective & | S | ) |
Definition at line 2560 of file CGStmtOpenMP.cpp.
References Action, EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPOrderedDirective | ( | const OMPOrderedDirective & | S | ) |
Definition at line 3059 of file CGStmtOpenMP.cpp.
References Action, emitOutlinedOrderedFunction(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPParallelDirective | ( | const OMPParallelDirective & | S | ) |
Definition at line 1115 of file CGStmtOpenMP.cpp.
References CGM, emitCommonOMPParallelDirective(), emitEmptyBoundParameters(), EmitOMPCopyinClause(), EmitOMPFirstprivateClause(), EmitOMPPrivateClause(), EmitOMPReductionClauseFinal(), EmitOMPReductionClauseInit(), emitPostUpdateForReductionClause(), EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPD_unknown, clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPParallelForDirective | ( | const OMPParallelForDirective & | S | ) |
Definition at line 2583 of file CGStmtOpenMP.cpp.
References emitCommonOMPParallelDirective(), emitDispatchForLoopBounds(), emitEmptyBoundParameters(), emitForLoopBounds(), EmitOMPWorksharingLoop(), clang::OMPLoopDirective::getEnsureUpperBound(), clang::OMPParallelForDirective::hasCancel(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPParallelForSimdDirective | ( | const OMPParallelForSimdDirective & | S | ) |
Definition at line 2596 of file CGStmtOpenMP.cpp.
References emitCommonOMPParallelDirective(), emitDispatchForLoopBounds(), emitEmptyBoundParameters(), emitForLoopBounds(), EmitOMPWorksharingLoop(), clang::OMPLoopDirective::getEnsureUpperBound(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPParallelSectionsDirective | ( | const OMPParallelSectionsDirective & | S | ) |
Definition at line 2608 of file CGStmtOpenMP.cpp.
References emitCommonOMPParallelDirective(), emitEmptyBoundParameters(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPPrivateClause | ( | const OMPExecutableDirective & | D, |
| CodeGenFunction::OMPPrivateScope & | PrivateScope | ||
| ) |
Definition at line 683 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), EmitDecl(), GetAddrOfLocalVar(), clang::OMPExecutableDirective::getClausesOfKind(), and HaveInsertPoint().
Referenced by EmitOMPParallelDirective(), EmitOMPSimdDirective(), EmitOMPSingleDirective(), EmitOMPTeamsDirective(), and emitTargetRegion().
| void CodeGenFunction::EmitOMPPrivateLoopCounters | ( | const OMPLoopDirective & | S, |
| CodeGenFunction::OMPPrivateScope & | LoopScope | ||
| ) |
Emit initial code for loop counters of loop-based directives.
Definition at line 1316 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), CapturedStmtInfo, clang::OMPLoopDirective::counters(), E, EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitLValue(), clang::CodeGen::LValue::getAddress(), clang::VarDecl::hasGlobalStorage(), HaveInsertPoint(), I, clang::if(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup(), clang::OMPLoopDirective::private_counters(), and clang::VK_LValue.
Referenced by EmitOMPSimdDirective(), and emitPreCond().
| void CodeGenFunction::EmitOMPReductionClauseFinal | ( | const OMPExecutableDirective & | D, |
| const OpenMPDirectiveKind | ReductionKind | ||
| ) |
Emit final update of reduction values to original variables at the end of the directive.
| D | Directive that has at least one 'reduction' directives. |
| ReductionKind | The kind of reduction to perform. |
Definition at line 1007 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getDirectiveKind(), clang::OMPExecutableDirective::getLocEnd(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), HaveInsertPoint(), clang::isOpenMPParallelDirective(), and Privates.
Referenced by EmitOMPParallelDirective(), EmitOMPSimdDirective(), and EmitOMPTeamsDirective().
| void CodeGenFunction::EmitOMPReductionClauseInit | ( | const OMPExecutableDirective & | D, |
| CodeGenFunction::OMPPrivateScope & | PrivateScope | ||
| ) |
Emit initial code for reduction variables.
Creates reduction copies and initializes them with the values according to OpenMP standard.
| D | Directive (possibly) with the 'reduction' clause. |
| PrivateScope | Private scope for capturing reduction variables for proper codegen in internal captured statement. |
Definition at line 904 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), clang::CodeGen::ReductionCodeGen::adjustPrivateAddress(), Builder, ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitAutoVarInit(), clang::CodeGen::ReductionCodeGen::emitInitialization(), clang::CodeGen::LValue::getAddress(), GetAddrOfLocalVar(), clang::ASTContext::getAsArrayType(), clang::CodeGen::ReductionCodeGen::getBaseDecl(), clang::OMPExecutableDirective::getClausesOfKind(), getContext(), clang::CodeGen::ReductionCodeGen::getSharedLValue(), HaveInsertPoint(), and Privates.
Referenced by EmitOMPParallelDirective(), EmitOMPSimdDirective(), and EmitOMPTeamsDirective().
| void CodeGenFunction::EmitOMPSectionDirective | ( | const OMPSectionDirective & | S | ) |
Definition at line 2510 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPSectionDirective::hasCancel(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPSectionsDirective | ( | const OMPSectionsDirective & | S | ) |
Definition at line 2498 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and clang::OMPExecutableDirective::getSingleClause().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPSimdDirective | ( | const OMPSimdDirective & | S | ) |
Definition at line 1488 of file CGStmtOpenMP.cpp.
References ConstantFoldsToSimpleInteger(), createBasicBlock(), emitAlignedClause(), EmitBlock(), EmitBranch(), EmitIgnoredExpr(), EmitOMPInnerLoop(), EmitOMPLastprivateClauseFinal(), EmitOMPLastprivateClauseInit(), EmitOMPLinearClause(), EmitOMPLinearClauseFinal(), EmitOMPLinearClauseInit(), EmitOMPLoopBody(), EmitOMPPrivateClause(), EmitOMPPrivateLoopCounters(), EmitOMPReductionClauseFinal(), EmitOMPReductionClauseInit(), emitPostUpdateForReductionClause(), emitPreCond(), EmitStopPoint(), EmitVarDecl(), clang::OMPLoopDirective::getCalcLastIteration(), clang::OMPLoopDirective::getCond(), clang::OMPLoopDirective::getInc(), clang::OMPLoopDirective::getInit(), clang::OMPLoopDirective::getIterationVariable(), clang::OMPLoopDirective::getLastIteration(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPLoopDirective::getPreCond(), getProfileCount(), incrementProfileCounter(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::emitOMPSimpleStore | ( | LValue | LVal, |
| RValue | RVal, | ||
| QualType | RValTy, | ||
| SourceLocation | Loc | ||
| ) |
Definition at line 3134 of file CGStmtOpenMP.cpp.
References convertToComplexValue(), convertToScalarValue(), EmitStoreOfComplex(), EmitStoreThroughLValue(), clang::CodeGen::RValue::get(), getEvaluationKind(), clang::CodeGen::LValue::getType(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitOMPAtomicCaptureExpr(), and EmitOMPAtomicReadExpr().
| void CodeGenFunction::EmitOMPSingleDirective | ( | const OMPSingleDirective & | S | ) |
Definition at line 2519 of file CGStmtOpenMP.cpp.
References Action, EmitOMPFirstprivateClause(), EmitOMPPrivateClause(), EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPD_unknown, clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetDataDirective | ( | const OMPTargetDataDirective & | S | ) |
Definition at line 3807 of file CGStmtOpenMP.cpp.
References Action, EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getClausesOfKind(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), clang::LangOptions::OMPTargetTriples, clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), S, and clang::CodeGen::RegionCodeGenTy::setAction().
Referenced by EmitStmt().
|
static |
Emit device code for the target directive.
Definition at line 3618 of file CGStmtOpenMP.cpp.
References Action, emitTargetRegion(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
| void CodeGenFunction::EmitOMPTargetDirective | ( | const OMPTargetDirective & | S | ) |
Definition at line 3632 of file CGStmtOpenMP.cpp.
References Action, emitCommonOMPTargetDirective(), emitTargetRegion(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetEnterDataDirective | ( | const OMPTargetEnterDataDirective & | S | ) |
Definition at line 3896 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and clang::LangOptions::OMPTargetTriples.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetExitDataDirective | ( | const OMPTargetExitDataDirective & | S | ) |
Definition at line 3916 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and clang::LangOptions::OMPTargetTriples.
Referenced by EmitStmt().
|
static |
Definition at line 3958 of file CGStmtOpenMP.cpp.
References Action, emitTargetParallelRegion(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
| void CodeGenFunction::EmitOMPTargetParallelDirective | ( | const OMPTargetParallelDirective & | S | ) |
Definition at line 3972 of file CGStmtOpenMP.cpp.
References Action, emitCommonOMPTargetDirective(), emitTargetParallelRegion(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetParallelForDirective | ( | const OMPTargetParallelForDirective & | S | ) |
Definition at line 3980 of file CGStmtOpenMP.cpp.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetParallelForSimdDirective | ( | const OMPTargetParallelForSimdDirective & | S | ) |
Definition at line 1976 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetSimdDirective | ( | const OMPTargetSimdDirective & | S | ) |
Definition at line 1988 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
|
static |
Definition at line 3691 of file CGStmtOpenMP.cpp.
References Action, emitTargetTeamsRegion(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
| void CodeGenFunction::EmitOMPTargetTeamsDirective | ( | const OMPTargetTeamsDirective & | S | ) |
Definition at line 3705 of file CGStmtOpenMP.cpp.
References Action, emitCommonOMPTargetDirective(), emitTargetTeamsRegion(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetTeamsDistributeDirective | ( | const OMPTargetTeamsDistributeDirective & | S | ) |
Definition at line 2047 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetTeamsDistributeParallelForDirective | ( | const OMPTargetTeamsDistributeParallelForDirective & | S | ) |
Definition at line 2057 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetTeamsDistributeParallelForSimdDirective | ( | const OMPTargetTeamsDistributeParallelForSimdDirective & | S | ) |
Definition at line 2067 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetTeamsDistributeSimdDirective | ( | const OMPTargetTeamsDistributeSimdDirective & | S | ) |
Definition at line 2077 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTargetUpdateDirective | ( | const OMPTargetUpdateDirective & | S | ) |
Definition at line 4143 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), and clang::LangOptions::OMPTargetTriples.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskBasedDirective | ( | const OMPExecutableDirective & | S, |
| const RegionCodeGenTy & | BodyGen, | ||
| const TaskGenTy & | TaskGen, | ||
| OMPTaskDataTy & | Data | ||
| ) |
Definition at line 2619 of file CGStmtOpenMP.cpp.
References Action, clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), clang::CodeGen::OMPTaskDataTy::Dependences, E, clang::CodeGen::OMPTaskDataTy::Final, clang::CodeGen::OMPTaskDataTy::FirstprivateCopies, clang::CodeGen::OMPTaskDataTy::FirstprivateInits, clang::CodeGen::OMPTaskDataTy::FirstprivateVars, clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPExecutableDirective::getSingleClause(), I, ID, clang::CodeGen::OMPTaskDataTy::LastprivateCopies, clang::CodeGen::OMPTaskDataTy::LastprivateVars, clang::CodeGen::OMPTaskDataTy::Priority, clang::CodeGen::OMPTaskDataTy::PrivateCopies, clang::CodeGen::OMPTaskDataTy::PrivateVars, clang::CodeGen::OMPTaskDataTy::ReductionCopies, clang::CodeGen::OMPTaskDataTy::ReductionOps, clang::CodeGen::OMPTaskDataTy::Reductions, clang::CodeGen::OMPTaskDataTy::ReductionVars, Replacement, S, and clang::VK_LValue.
Referenced by EmitOMPTaskDirective(), and EmitOMPTaskLoopBasedDirective().
| void CodeGenFunction::EmitOMPTaskDirective | ( | const OMPTaskDirective & | S | ) |
Definition at line 2820 of file CGStmtOpenMP.cpp.
References EmitOMPTaskBasedDirective(), EmitStmt(), GenerateCapturedStmtArgument(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getClausesOfKind(), getContext(), clang::OMPExecutableDirective::getLocStart(), clang::ASTContext::getRecordType(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPD_unknown, S, and clang::CodeGen::OMPTaskDataTy::Tied.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskgroupDirective | ( | const OMPTaskgroupDirective & | S | ) |
Definition at line 2863 of file CGStmtOpenMP.cpp.
References Action, EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskLoopBasedDirective | ( | const OMPLoopDirective & | S | ) |
Definition at line 3994 of file CGStmtOpenMP.cpp.
References Action, CGM, EmitOMPTaskBasedDirective(), emitPreCond(), EmitScalarExpr(), clang::CodeGen::PrePostActionTy::Enter(), GenerateCapturedStmtArgument(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPLoopDirective::getCalcLastIteration(), clang::OMPExecutableDirective::getClausesOfKind(), clang::OMPLoopDirective::getCond(), getContext(), clang::OMPExecutableDirective::getDirectiveKind(), clang::OMPLoopDirective::getInc(), clang::OMPLoopDirective::getInit(), clang::OMPLoopDirective::getIsLastIterVariable(), clang::OMPLoopDirective::getIterationVariable(), clang::OMPLoopDirective::getLastIteration(), clang::OMPExecutableDirective::getLocStart(), clang::OMPLoopDirective::getLowerBoundVariable(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPLoopDirective::getPreCond(), clang::ASTContext::getRecordType(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPLoopDirective::getStrideVariable(), clang::OMPLoopDirective::getUpperBoundVariable(), I, clang::isOpenMPSimdDirective(), clang::isOpenMPTaskLoopDirective(), mapParam(), clang::CodeGen::OMPTaskDataTy::Nogroup, clang::OMPD_unknown, clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups(), S, clang::CodeGen::OMPTaskDataTy::Schedule, and clang::CodeGen::OMPTaskDataTy::Tied.
Referenced by EmitOMPTaskLoopDirective(), and EmitOMPTaskLoopSimdDirective().
| void CodeGenFunction::EmitOMPTaskLoopDirective | ( | const OMPTaskLoopDirective & | S | ) |
Definition at line 4133 of file CGStmtOpenMP.cpp.
References EmitOMPTaskLoopBasedDirective().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskLoopSimdDirective | ( | const OMPTaskLoopSimdDirective & | S | ) |
Definition at line 4137 of file CGStmtOpenMP.cpp.
References EmitOMPTaskLoopBasedDirective().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskwaitDirective | ( | const OMPTaskwaitDirective & | S | ) |
Definition at line 2859 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::getLocStart(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTaskyieldDirective | ( | const OMPTaskyieldDirective & | S | ) |
Definition at line 2850 of file CGStmtOpenMP.cpp.
References clang::OMPExecutableDirective::getLocStart(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTeamsDirective | ( | const OMPTeamsDirective & | S | ) |
Definition at line 3664 of file CGStmtOpenMP.cpp.
References emitCommonOMPTeamsDirective(), EmitOMPFirstprivateClause(), EmitOMPPrivateClause(), EmitOMPReductionClauseFinal(), EmitOMPReductionClauseInit(), emitPostUpdateForReductionClause(), EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), and S.
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTeamsDistributeDirective | ( | const OMPTeamsDistributeDirective & | S | ) |
Definition at line 1999 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTeamsDistributeParallelForDirective | ( | const OMPTeamsDistributeParallelForDirective & | S | ) |
Definition at line 2035 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTeamsDistributeParallelForSimdDirective | ( | const OMPTeamsDistributeParallelForSimdDirective & | S | ) |
Definition at line 2023 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPTeamsDistributeSimdDirective | ( | const OMPTeamsDistributeSimdDirective & | S | ) |
Definition at line 2011 of file CGStmtOpenMP.cpp.
References EmitStmt(), clang::OMPExecutableDirective::getAssociatedStmt(), and clang::CodeGen::CodeGenModule::getOpenMPRuntime().
Referenced by EmitStmt().
| void CodeGenFunction::EmitOMPUseDevicePtrClause | ( | const OMPClause & | C, |
| OMPPrivateScope & | PrivateScope, | ||
| const llvm::DenseMap< const ValueDecl *, Address > & | CaptureDeviceAddrMap | ||
| ) |
Definition at line 3744 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), Builder, ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitDecl(), GetAddrOfLocalVar(), getContext(), clang::ASTContext::getPointerType(), and clang::CodeGen::Type.
| bool CodeGenFunction::EmitOMPWorksharingLoop | ( | const OMPLoopDirective & | S, |
| Expr * | EUB, | ||
| const CodeGenLoopBoundsTy & | CodeGenLoopBounds, | ||
| const CodeGenDispatchBoundsTy & | CGDispatchBounds | ||
| ) |
Emit code for the worksharing loop-based directive.
Definition at line 2099 of file CGStmtOpenMP.cpp.
References Builder, Builder, CGM, emitAlignedClause(), EmitLoadOfScalar(), EmitOMPHelperVar(), EmitOMPLoopBody(), emitPostUpdateForReductionClause(), emitPreCond(), EmitStopPoint(), clang::CodeGen::LValue::getAddress(), clang::OMPLoopDirective::getCalcLastIteration(), clang::OMPLoopDirective::getCond(), clang::OMPExecutableDirective::getDirectiveKind(), clang::OMPLoopDirective::getEnsureUpperBound(), clang::OMPLoopDirective::getInc(), clang::OMPLoopDirective::getInit(), clang::OMPLoopDirective::getIsLastIterVariable(), clang::OMPLoopDirective::getIterationVariable(), clang::OMPLoopDirective::getLastIteration(), clang::OMPExecutableDirective::getLocEnd(), clang::OMPExecutableDirective::getLocStart(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::OMPLoopDirective::getPreCond(), clang::OMPExecutableDirective::getSingleClause(), clang::OMPLoopDirective::getStrideVariable(), clang::Expr::getType(), clang::Type::hasSignedIntegerRepresentation(), clang::isOpenMPSimdDirective(), clang::OpenMPScheduleTy::M1, clang::OpenMPScheduleTy::M2, clang::OMPC_SCHEDULE_unknown, clang::OMPD_unknown, clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups(), S, and clang::OpenMPScheduleTy::Schedule.
Referenced by emitInnerParallelForWhenCombined(), EmitOMPParallelForDirective(), and EmitOMPParallelForSimdDirective().
| LValue CodeGenFunction::EmitOpaqueValueLValue | ( | const OpaqueValueExpr * | e | ) |
Definition at line 4032 of file CGExpr.cpp.
Referenced by EmitMaterializeTemporaryExpr().
| void CodeGenFunction::EmitParmDecl | ( | const VarDecl & | D, |
| ParamValue | Arg, | ||
| unsigned | ArgNo | ||
| ) |
EmitParmDecl - Emit a ParmVarDecl or an ImplicitParamDecl.
Emit an alloca (or GlobalValue depending on target) for the specified parameter and set up LocalDeclMap.
Definition at line 1771 of file CGDecl.cpp.
References clang::CodeGen::CGCXXABI::adjustThisParameterInVirtualFunctionPrologue(), clang::CodeGen::ARCImpreciseLifetime, clang::CodeGen::ARCPreciseLifetime, clang::TargetCXXABI::areArgsDestroyedLeftToRightInCallee(), BlockInfo, Builder, CGM, ConvertTypeForMem(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStore(), CurCodeDecl, CurFuncIsThunk, CurGD, clang::QualType::DK_cxx_destructor, EHStack, EmitARCInitWeak(), EmitARCRetainNonBlock(), EmitARCStoreStrongCall(), EmitAutoVarWithLifetime(), clang::CodeGen::CodeGenModule::EmitNullConstant(), EmitStoreOfScalar(), EmitVarAnnotations(), clang::CodeGen::CodeGenFunction::ParamValue::forDirect(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::CodeGenFunction::ParamValue::getAnyValue(), getARCCleanupKind(), clang::Type::getAsCXXRecordDecl(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::TargetInfo::getCXXABI(), getDebugInfo(), getDeclAlign(), clang::CodeGen::CodeGenFunction::ParamValue::getDirectValue(), clang::CodeGen::CodeGenFunction::ParamValue::getIndirectAddress(), clang::ObjCMethodDecl::getMethodFamily(), clang::NamedDecl::getName(), clang::Type::getNullability(), clang::Qualifiers::getObjCLifetime(), clang::CodeGen::Address::getPointer(), clang::QualType::getQualifiers(), clang::ObjCMethodDecl::getSelfDecl(), getTarget(), clang::CodeGen::Address::getType(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::Qualifiers::hasConst(), clang::CXXRecordDecl::hasNonTrivialDestructor(), hasScalarEvaluationKind(), clang::CodeGen::Address::invalid(), clang::VarDecl::isARCPseudoStrong(), clang::CodeGen::CodeGenFunction::ParamValue::isIndirect(), clang::codegenoptions::LimitedDebugInfo, MakeAddrLValue(), clang::NonNull, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_Strong, clang::Qualifiers::OCL_Weak, clang::OMF_init, pushDestroy(), setBlockContextParameter(), and clang::CodeGen::Type.
Referenced by EmitInlinedInheritingCXXConstructorCall().
| LValue CodeGenFunction::EmitPointerToDataMemberBinaryExpr | ( | const BinaryOperator * | E | ) |
Definition at line 4507 of file CGExpr.cpp.
References clang::Type::getAs(), clang::BinaryOperator::getLHS(), clang::BinaryOperator::getOpcode(), clang::BinaryOperator::getRHS(), and clang::Expr::getType().
| Address CodeGenFunction::EmitPointerWithAlignment | ( | const Expr * | E, |
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
EmitPointerWithAlignment - Given an expression with a pointer type, emit the value and compute our best estimate of the alignment of the pointee.
EmitPointerWithAlignment - Given an expression of pointer type, try to derive a more accurate bound on the alignment of the pointer.
| BaseInfo | - If non-null, this will be initialized with information about the source of the alignment and the may-alias attribute. Note that this function will conservatively fall back on the type when it doesn't recognize the expression and may-alias will be set to false. |
One reasonable way to use this information is when there's a language guarantee that the pointer must be aligned to some stricter value, and we're simply trying to ensure that sufficiently obvious uses of under- aligned objects don't get miscompiled; for example, a placement new into the address of a local variable. In such a case, it's quite reasonable to just ignore the returned alignment when it isn't from an explicit source.
Definition at line 896 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValueBaseInfo::getAlignmentSource(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::Address::getPointer(), clang::CodeGen::Address::getType(), clang::Expr::getType(), clang::Expr::IgnoreParens(), clang::Type::isObjCObjectPointerType(), clang::Type::isPointerType(), and clang::CodeGen::LValueBaseInfo::mergeForCast().
Referenced by EmitAMDGPUBuiltinExpr(), EmitARMBuiltinExpr(), EmitAtomicExpr(), EmitCXXDeleteExpr(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitCXXNewExpr(), EmitCXXPseudoDestructorExpr(), emitOMPArraySectionBase(), EmitSystemZIntrinsicWithCC(), EmitVAListRef(), emitWritebackArg(), and EmitX86BuiltinExpr().
Definition at line 8127 of file CGBuiltin.cpp.
References Builder, ceil, CGM, clamp(), ConvertType(), copysign, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitScalarExpr(), fabs, floor, fma, clang::CallExpr::getArg(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CallExpr::getNumArgs(), getTarget(), clang::Expr::getType(), ID, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::TargetInfo::isLittleEndian(), nearbyint, round, sqrt, trunc, clang::CodeGen::Type, and X.
Referenced by EmitTargetArchBuiltinExpr().
| LValue CodeGenFunction::EmitPredefinedLValue | ( | const PredefinedExpr * | E | ) |
Definition at line 2476 of file CGExpr.cpp.
References clang::PredefinedExpr::getFunctionName(), clang::PredefinedExpr::getIdentType(), clang::PredefinedExpr::getIdentTypeName(), clang::Expr::getType(), and Name.
| LValue CodeGenFunction::EmitPseudoObjectLValue | ( | const PseudoObjectExpr * | e | ) |
Definition at line 4635 of file CGExpr.cpp.
References emitPseudoObjectExpr().
| RValue CodeGenFunction::EmitPseudoObjectRValue | ( | const PseudoObjectExpr * | e, |
| AggValueSlot | slot = AggValueSlot::ignored() |
||
| ) |
Definition at line 4630 of file CGExpr.cpp.
References emitPseudoObjectExpr().
Emits a reference binding to the passed in expression.
Definition at line 531 of file CGExpr.cpp.
References EmitLValue(), EmitTypeCheck(), clang::CodeGen::RValue::get(), clang::Expr::getExprLoc(), clang::CodeGen::LValue::getPointer(), clang::Expr::getType(), clang::Type::isFunctionType(), clang::CodeGen::LValue::isSimple(), sanitizePerformTypeCheck(), and TCK_ReferenceBinding.
Referenced by EmitCXXGlobalVarDeclInit(), EmitExprAsInit(), and EmitReturnStmt().
| llvm::DebugLoc CodeGenFunction::EmitReturnBlock | ( | ) |
Emit the unified return block, trying to avoid its emission when possible.
Definition at line 249 of file CodeGenFunction.cpp.
References Builder, EmitBlock(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), and ReturnBlock.
Referenced by FinishFunction().
| void CodeGenFunction::EmitReturnStmt | ( | const ReturnStmt & | S | ) |
EmitReturnStmt - Note that due to GCC extensions, this can have an operand if the function returns void, or may be missing one if the function returns non-void.
Fun stuff :).
Definition at line 1026 of file CGStmt.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateFlagStore(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::SanitizerMetadata::disableSanitizerForGlobal(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), EmitAnyExpr(), EmitBranchThroughCleanup(), EmitCheckSourceLocation(), EmitComplexExprIntoLValue(), EmitReferenceBindingToExpr(), EmitScalarExpr(), enterFullExpression(), FnRetTy, clang::CodeGen::AggValueSlot::forAddr(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), getContext(), getEvaluationKind(), getLangOpts(), clang::ReturnStmt::getLocStart(), clang::CodeGen::CodeGenModule::getModule(), clang::ReturnStmt::getNRVOCandidate(), clang::ReturnStmt::getRetValue(), clang::CodeGen::CodeGenModule::getSanitizerMetadata(), clang::CodeGen::RValue::getScalarVal(), clang::Expr::getType(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::AggValueSlot::IsDestructed, clang::Expr::isEvaluatable(), clang::CodeGen::AggValueSlot::IsNotAliased, clang::VarDecl::isNRVOVariable(), IsOutlinedSEHHelper, clang::Type::isReferenceType(), clang::CodeGen::Address::isValid(), clang::Type::isVoidType(), MakeAddrLValue(), NRVOFlags, Result, ReturnBlock, ReturnValue, clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
Referenced by EmitStmt(), and generateObjCGetterBody().
| void CodeGenFunction::EmitReturnValueCheck | ( | llvm::Value * | RV | ) |
Emit a test that checks if the return value RV is nonnull.
Definition at line 2918 of file CGCall.cpp.
References Builder.
| llvm::CallInst* clang::CodeGen::CodeGenFunction::EmitRuntimeCall | ( | llvm::Value * | callee, |
| const Twine & | name = "" |
||
| ) |
Referenced by createRuntimeShuffleFunction(), clang::CodeGen::emitBarrierCall(), clang::CodeGen::emitCancellationPointCall(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitDoacrossOrdered(), emitFilterDispatchBlock(), clang::CodeGen::emitForDispatchInit(), clang::CodeGen::emitForNext(), clang::CodeGen::emitForOrderedIterationEnd(), clang::CodeGen::emitForStaticFinish(), emitForStaticInitCall(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), clang::CodeGen::emitTaskInit(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitTaskwaitCall(), clang::CodeGen::emitTaskyieldCall(), clang::CodeGen::emitThreadPrivateVarInit(), GenerateCXXGlobalInitFunc(), clang::CodeGen::getAddrOfArtificialThreadPrivate(), clang::CodeGen::getAddrOfThreadPrivate(), getEHResumeBlock(), clang::CodeGen::getTaskReductionItem(), and clang::CodeGen::CGOpenMPRuntime::getThreadID().
| llvm::CallInst* clang::CodeGen::CodeGenFunction::EmitRuntimeCall | ( | llvm::Value * | callee, |
| ArrayRef< llvm::Value * > | args, | ||
| const Twine & | name = "" |
||
| ) |
| llvm::CallSite CodeGenFunction::EmitRuntimeCallOrInvoke | ( | llvm::Value * | callee, |
| ArrayRef< llvm::Value * > | args, | ||
| const Twine & | name = "" |
||
| ) |
Emits a call or invoke instruction to the given runtime function.
Definition at line 3644 of file CGCall.cpp.
Referenced by EmitObjCAutoreleasePoolPop(), emitRTtypeidCall(), and GenerateCopyHelperFunction().
| llvm::CallSite CodeGenFunction::EmitRuntimeCallOrInvoke | ( | llvm::Value * | callee, |
| const Twine & | name = "" |
||
| ) |
Emits a call or invoke instruction to the given nullary runtime function.
Definition at line 3637 of file CGCall.cpp.
References clang::None.
| RValue CodeGenFunction::EmitRValueForField | ( | LValue | LV, |
| const FieldDecl * | FD, | ||
| SourceLocation | Loc | ||
| ) |
Definition at line 4037 of file CGExpr.cpp.
References clang::CodeGen::LValue::asAggregateRValue(), clang::CodeGen::LValue::getPointer(), clang::ValueDecl::getType(), clang::Type::isReferenceType(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
| void CodeGenFunction::EmitSanitizerStatReport | ( | llvm::SanitizerStatKind | SSK | ) |
Definition at line 2181 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), and clang::CodeGen::CodeGenModule::getSanStats().
Referenced by EmitVTablePtrCheck(), and EmitVTableTypeCheckedLoad().
| LValue CodeGenFunction::EmitScalarCompoundAssignWithComplex | ( | const CompoundAssignOperator * | E, |
| llvm::Value *& | Result | ||
| ) |
Definition at line 1115 of file CGExprComplex.cpp.
References getComplexOp(), and clang::BinaryOperator::getOpcode().
| Value * CodeGenFunction::EmitScalarConversion | ( | llvm::Value * | Src, |
| QualType | SrcTy, | ||
| QualType | DstTy, | ||
| SourceLocation | Loc | ||
| ) |
Emit a conversion from the specified type to the specified destination type, both of which are LLVM scalar types.
Definition at line 3762 of file CGExprScalar.cpp.
References hasScalarEvaluationKind().
Referenced by castValueFromUintptr(), convertToComplexValue(), convertToScalarValue(), createRuntimeShuffleFunction(), emitDistributeParallelForInnerBounds(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitDoacrossOrdered(), clang::CodeGen::emitForNext(), EvaluateExprAsBool(), and GenerateOpenMPCapturedVars().
EmitScalarExpr - Emit the computation of the specified expression of LLVM scalar type, returning the result.
Emit the computation of the specified expression of scalar type, ignoring the result.
Definition at line 3752 of file CGExprScalar.cpp.
References clang::Expr::getType(), and hasScalarEvaluationKind().
Referenced by EmitAArch64BuiltinExpr(), emitAlignedClause(), EmitAMDGPUBuiltinExpr(), EmitAnyExpr(), EmitAnyExprToMem(), EmitARCExtendBlockObject(), emitARCRetainCallResult(), EmitARCStoreUnsafeUnretained(), emitARCUnsafeClaimCallResult(), EmitARMBuiltinExpr(), EmitAtomicExpr(), EmitAtomicInit(), clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), EmitBinaryAtomicPost(), emitBinaryBuiltin(), EmitBlockCallExpr(), emitCommonOMPParallelDirective(), EmitCoroutineBody(), EmitCoroutineIntrinsic(), clang::CodeGen::emitCriticalRegion(), EmitCXXMemberPointerCallExpr(), EmitCXXNewAllocSize(), EmitDeclInit(), emitDispatchForLoopBounds(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitDoacrossOrdered(), emitFPIntBuiltin(), EmitIndirectGotoStmt(), EmitInitializerForField(), EmitMaterializeTemporaryExpr(), EmitNontemporalLoad(), EmitNontemporalStore(), emitNumTeamsForTargetDirective(), emitNumThreadsForTargetDirective(), EmitNVPTXBuiltinExpr(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), EmitObjCIsaExpr(), EmitObjCMessageExpr(), EmitObjCThrowOperand(), EmitOMPTaskLoopBasedDirective(), EmitPPCBuiltinExpr(), EmitReturnStmt(), EmitScalarInit(), EmitSpecialRegisterBuiltin(), emitSuspendExpression(), EmitSwitchStmt(), EmitSystemZBuiltinExpr(), EmitSystemZIntrinsicWithCC(), emitTernaryBuiltin(), emitUnaryBuiltin(), EmitVariablyModifiedType(), EmitWebAssemblyBuiltinExpr(), EmitX86BuiltinExpr(), EvaluateExprAsBool(), GenerateSEHFilterFunction(), MakeAtomicCmpXchgValue(), MakeBinaryAtomicValue(), and tryEmitARCRetainLoadOfScalar().
| void CodeGenFunction::EmitScalarInit | ( | const Expr * | init, |
| const ValueDecl * | D, | ||
| LValue | lvalue, | ||
| bool | capturedByInit | ||
| ) |
Definition at line 705 of file CGDecl.cpp.
References clang::CodeGen::ARCImpreciseLifetime, CGM, drillIntoBlockVariable(), EmitARCInitWeak(), EmitARCRelease(), EmitARCRetainAutoreleaseScalarExpr(), EmitARCRetainScalarExpr(), EmitARCStoreWeak(), EmitARCUnsafeUnretainedScalarExpr(), emitBlockByrefAddress(), EmitLoadOfScalar(), EmitNullabilityCheck(), EmitScalarExpr(), EmitStoreOfScalar(), EmitStoreThroughLValue(), enterFullExpression(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::CodeGen::Address::getElementType(), clang::Expr::getExprLoc(), clang::CodeGen::CodeGenModule::getNullPointer(), clang::CodeGen::LValue::getObjCLifetime(), clang::CodeGen::LValue::getType(), isAccessedBy(), clang::Qualifiers::OCL_Autoreleasing, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::Qualifiers::OCL_Strong, clang::Qualifiers::OCL_Weak, clang::CodeGen::LValue::setAddress(), and tryEmitARCCopyWeakInit().
Referenced by EmitDeclInit(), EmitExprAsInit(), EmitMaterializeTemporaryExpr(), and StoreAnyExprIntoOneUnit().
| llvm::Value * CodeGenFunction::EmitScalarPrePostIncDec | ( | const UnaryOperator * | E, |
| LValue | LV, | ||
| bool | isInc, | ||
| bool | isPre | ||
| ) |
Definition at line 3784 of file CGExprScalar.cpp.
| bool CodeGenFunction::EmitScalarRangeCheck | ( | llvm::Value * | Value, |
| QualType | Ty, | ||
| SourceLocation | Loc | ||
| ) |
Check if the scalar Value is within the valid range for the given type Ty.
Returns true if a check is needed (even if the range is unknown).
Definition at line 1390 of file CGExpr.cpp.
References Builder, End, clang::Type::getAs(), getRangeForType(), and hasBooleanRepresentation().
| llvm::Value * CodeGenFunction::EmitSEHAbnormalTermination | ( | ) |
Definition at line 1773 of file CGException.cpp.
References Builder, CurFn, and clang::CodeGen::CodeGenTypeCache::Int32Ty.
| llvm::Value * CodeGenFunction::EmitSEHExceptionCode | ( | ) |
Definition at line 1768 of file CGException.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateLoad(), and SEHCodeSlotStack.
| void CodeGenFunction::EmitSEHExceptionCodeSave | ( | CodeGenFunction & | ParentCGF, |
| llvm::Value * | ParentFP, | ||
| llvm::Value * | EntryEBP | ||
| ) |
Definition at line 1720 of file CGException.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), clang::CodeGen::CGBuilderTy::CreateBitCast(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), CurFn, getContext(), clang::CodeGen::CodeGenTypeCache::getIntAlign(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTriple(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, clang::CodeGen::CodeGenTypeCache::IntTy, recoverAddrOfEscapedLocal(), SEHCodeSlotStack, SEHInfo, clang::CodeGen::Type, and clang::CodeGen::CodeGenTypeCache::VoidPtrTy.
Referenced by EmitCapturedLocals().
| llvm::Value * CodeGenFunction::EmitSEHExceptionInfo | ( | ) |
Definition at line 1759 of file CGException.cpp.
References clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and SEHInfo.
| void CodeGenFunction::EmitSEHLeaveStmt | ( | const SEHLeaveStmt & | S | ) |
Definition at line 1885 of file CGException.cpp.
References Builder, EmitBranchThroughCleanup(), EmitStopPoint(), HaveInsertPoint(), isSEHTryScope(), and SEHTryEpilogueStack.
Referenced by EmitSimpleStmt().
| void CodeGenFunction::EmitSEHTryStmt | ( | const SEHTryStmt & | S | ) |
Definition at line 1400 of file CGException.cpp.
References EmitBlock(), EmitStmt(), EnterSEHTryStmt(), ExitSEHTryStmt(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), getJumpDestInCurrentScope(), clang::SEHTryStmt::getTryBlock(), and SEHTryEpilogueStack.
Referenced by EmitStmt().
| RValue CodeGenFunction::EmitSimpleCallExpr | ( | const CallExpr * | E, |
| ReturnValueSlot | ReturnValue | ||
| ) |
Emit a CallExpr without considering whether it might be a subclass.
Definition at line 4093 of file CGExpr.cpp.
References E, clang::CallExpr::getCallee(), and clang::Expr::getType().
Referenced by clang::CodeGen::CGCUDARuntime::EmitCUDAKernelCallExpr().
EmitSimpleStmt - Try to emit a "simple" statement which does not necessarily require an insertion point or debug information; typically because the statement amounts to a jump or a container of other statements.
Definition at line 340 of file CGStmt.cpp.
References EmitAttributedStmt(), EmitBreakStmt(), EmitCaseStmt(), EmitCompoundStmt(), EmitContinueStmt(), EmitDeclStmt(), EmitDefaultStmt(), EmitGotoStmt(), EmitLabelStmt(), EmitSEHLeaveStmt(), and clang::Stmt::getStmtClass().
Referenced by EmitStmt().
| void CodeGenFunction::EmitStartEHSpec | ( | const Decl * | D | ) |
EmitStartEHSpec - Emit the start of the exception spec.
Definition at line 431 of file CGException.cpp.
References CGM, EHStack, clang::EST_Dynamic, clang::EST_DynamicNone, clang::CodeGen::CodeGenModule::GetAddrOfRTTIDescriptor(), clang::Type::getAs(), getContext(), clang::FunctionProtoType::getExceptionSpecType(), clang::FunctionProtoType::getExceptionType(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::FunctionProtoType::getNoexceptSpec(), clang::QualType::getNonReferenceType(), clang::FunctionProtoType::getNumExceptions(), getTarget(), clang::ValueDecl::getType(), clang::QualType::getUnqualifiedType(), I, clang::isNoexceptExceptionSpec(), clang::FunctionProtoType::NR_Nothrow, clang::CodeGen::EHScopeStack::pushFilter(), clang::CodeGen::EHScopeStack::pushTerminate(), and clang::CodeGen::EHFilterScope::setFilter().
Referenced by StartFunction().
| void CodeGenFunction::EmitStaticVarDecl | ( | const VarDecl & | D, |
| llvm::GlobalValue::LinkageTypes | Linkage | ||
| ) |
Definition at line 368 of file CGDecl.cpp.
References clang::CodeGen::CodeGenModule::AddGlobalAnnotations(), AddInitializerToStaticVarDecl(), clang::CodeGen::CodeGenModule::addUsedGlobal(), CGM, clang::CodeGen::CGDebugInfo::EmitGlobalVariable(), EmitVariablyModifiedType(), clang::Decl::getAttr(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), getDebugInfo(), clang::ASTContext::getDeclAlign(), clang::VarDecl::getInit(), getLangOpts(), clang::Decl::getLocation(), clang::CodeGen::CodeGenModule::getOrCreateStaticVarDecl(), clang::CharUnits::getQuantity(), clang::CodeGen::CodeGenModule::getSanitizerMetadata(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), clang::Type::isVariablyModifiedType(), clang::codegenoptions::LimitedDebugInfo, clang::CodeGen::SanitizerMetadata::reportGlobalToASan(), clang::CodeGen::CGDebugInfo::setLocation(), clang::CodeGen::CodeGenModule::setStaticLocalDeclAddress(), and clang::CodeGen::Type.
Referenced by EmitAutoVarAlloca(), EmitVarDecl(), and clang::CodeGen::CGOpenCLRuntime::EmitWorkGroupLocalVarDecl().
| void CodeGenFunction::EmitStmt | ( | const Stmt * | S | ) |
EmitStmt - Emit the code for the statement.
This function may clear the current insertion point; callers should use EnsureInsertPoint if they wish to subsequently generate code without first calling EmitBlock, EmitBranch, or EmitStmt.
Definition at line 48 of file CGStmt.cpp.
References Builder, ContainsLabel(), EmitAsmStmt(), EmitCapturedStmt(), EmitCoreturnStmt(), EmitCoroutineBody(), EmitCXXForRangeStmt(), EmitCXXTryStmt(), EmitDoStmt(), EmitForStmt(), EmitIfStmt(), EmitIgnoredExpr(), EmitIndirectGotoStmt(), EmitObjCAtSynchronizedStmt(), EmitObjCAtThrowStmt(), EmitObjCAtTryStmt(), EmitObjCAutoreleasePoolStmt(), EmitObjCForCollectionStmt(), EmitOMPAtomicDirective(), EmitOMPBarrierDirective(), EmitOMPCancelDirective(), EmitOMPCancellationPointDirective(), EmitOMPCriticalDirective(), EmitOMPDistributeDirective(), EmitOMPDistributeParallelForDirective(), EmitOMPDistributeParallelForSimdDirective(), EmitOMPDistributeSimdDirective(), EmitOMPFlushDirective(), EmitOMPForDirective(), EmitOMPForSimdDirective(), EmitOMPMasterDirective(), EmitOMPOrderedDirective(), EmitOMPParallelDirective(), EmitOMPParallelForDirective(), EmitOMPParallelForSimdDirective(), EmitOMPParallelSectionsDirective(), EmitOMPSectionDirective(), EmitOMPSectionsDirective(), EmitOMPSimdDirective(), EmitOMPSingleDirective(), EmitOMPTargetDataDirective(), EmitOMPTargetDirective(), EmitOMPTargetEnterDataDirective(), EmitOMPTargetExitDataDirective(), EmitOMPTargetParallelDirective(), EmitOMPTargetParallelForDirective(), EmitOMPTargetParallelForSimdDirective(), EmitOMPTargetSimdDirective(), EmitOMPTargetTeamsDirective(), EmitOMPTargetTeamsDistributeDirective(), EmitOMPTargetTeamsDistributeParallelForDirective(), EmitOMPTargetTeamsDistributeParallelForSimdDirective(), EmitOMPTargetTeamsDistributeSimdDirective(), EmitOMPTargetUpdateDirective(), EmitOMPTaskDirective(), EmitOMPTaskgroupDirective(), EmitOMPTaskLoopDirective(), EmitOMPTaskLoopSimdDirective(), EmitOMPTaskwaitDirective(), EmitOMPTaskyieldDirective(), EmitOMPTeamsDirective(), EmitOMPTeamsDistributeDirective(), EmitOMPTeamsDistributeParallelForDirective(), EmitOMPTeamsDistributeParallelForSimdDirective(), EmitOMPTeamsDistributeSimdDirective(), EmitReturnStmt(), EmitSEHTryStmt(), EmitSimpleStmt(), EmitStopPoint(), EmitSwitchStmt(), EmitWhileStmt(), EnsureInsertPoint(), clang::CapturedStmt::getCapturedRegionKind(), clang::Stmt::getStmtClass(), HaveInsertPoint(), clang::Stmt::NoStmtClass, S, and clang::CodeGen::CodeGenPGO::setCurrentStmt().
Referenced by clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), EmitAttributedStmt(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody(), emitBodyAndFallthrough(), EmitCaseStmt(), EmitCaseStmtRange(), EmitCompoundStmtWithoutScope(), EmitConstructorBody(), EmitCoreturnStmt(), EmitCoroutineBody(), EmitCXXForRangeStmt(), EmitCXXTryStmt(), EmitDefaultStmt(), EmitDestructorBody(), EmitDoStmt(), EmitForStmt(), EmitFunctionBody(), EmitIfStmt(), EmitLabelStmt(), EmitObjCAutoreleasePoolStmt(), EmitObjCForCollectionStmt(), EmitOMPCriticalDirective(), EmitOMPDistributeParallelForSimdDirective(), EmitOMPDistributeSimdDirective(), EmitOMPLoopBody(), EmitOMPMasterDirective(), EmitOMPParallelDirective(), EmitOMPSectionDirective(), EmitOMPSingleDirective(), EmitOMPTargetDataDirective(), EmitOMPTargetParallelForSimdDirective(), EmitOMPTargetSimdDirective(), EmitOMPTargetTeamsDistributeDirective(), EmitOMPTargetTeamsDistributeParallelForDirective(), EmitOMPTargetTeamsDistributeParallelForSimdDirective(), EmitOMPTargetTeamsDistributeSimdDirective(), EmitOMPTaskDirective(), EmitOMPTaskgroupDirective(), EmitOMPTeamsDirective(), EmitOMPTeamsDistributeDirective(), EmitOMPTeamsDistributeParallelForDirective(), EmitOMPTeamsDistributeParallelForSimdDirective(), EmitOMPTeamsDistributeSimdDirective(), EmitSEHTryStmt(), EmitSwitchStmt(), emitTargetRegion(), emitTargetTeamsRegion(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitWhileStmt(), ExitCXXTryStmt(), ExitSEHTryStmt(), GenerateBlockFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), generateObjCSetterBody(), and GenerateSEHFinallyFunction().
Definition at line 4324 of file CGExpr.cpp.
References clang::CodeGen::RValue::getAggregateAddress(), and clang::Expr::getType().
| void CodeGenFunction::EmitStopPoint | ( | const Stmt * | S | ) |
EmitStopPoint - Emit a debug stoppoint if we are emitting debug info.
Definition at line 38 of file CGStmt.cpp.
References Builder, getDebugInfo(), and clang::Stmt::getLocStart().
Referenced by EmitBreakStmt(), EmitContinueStmt(), EmitCXXForRangeStmt(), EmitDeclStmt(), EmitForStmt(), EmitGotoStmt(), emitOMPLoopBodyWithStopPoint(), EmitOMPSimdDirective(), EmitOMPWorksharingLoop(), EmitSEHLeaveStmt(), EmitStmt(), and EmitWhileStmt().
| void CodeGenFunction::EmitStoreOfComplex | ( | ComplexPairTy | V, |
| LValue | dest, | ||
| bool | isInit | ||
| ) |
EmitStoreOfComplex - Store a complex number into the specified l-value.
Definition at line 1076 of file CGExprComplex.cpp.
Referenced by EmitAtomicUpdateValue(), EmitExprAsInit(), EmitInitStoreOfNonAggregate(), emitOMPSimpleStore(), generateObjCGetterBody(), and InitCatchParam().
| void CodeGenFunction::EmitStoreOfScalar | ( | llvm::Value * | Value, |
| Address | Addr, | ||
| bool | Volatile, | ||
| QualType | Ty, | ||
| LValueBaseInfo | BaseInfo = LValueBaseInfo(AlignmentSource::Type), |
||
| llvm::MDNode * | TBAAInfo = nullptr, |
||
| bool | isInit = false, |
||
| QualType | TBAABaseTy = QualType(), |
||
| uint64_t | TBAAOffset = 0, |
||
| bool | isNontemporal = false |
||
| ) |
EmitStoreOfScalar - Store a scalar value to an address, taking care to appropriately convert from the memory representation to the LLVM value representation.
Definition at line 1527 of file CGExpr.cpp.
References Builder, clang::CodeGen::Address::getElementType(), clang::CodeGen::LValueBaseInfo::getMayAlias(), clang::Type::isAtomicType(), clang::Type::isVectorType(), and Node.
Referenced by EmitARCStoreAutoreleasing(), EmitARCStoreStrong(), EmitARCStoreUnsafeUnretained(), emitAtomicCmpXchg(), EmitAtomicExpr(), EmitCXXGlobalVarDeclInit(), emitDistributeParallelForInnerBounds(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitDoacrossOrdered(), EmitInitStoreOfNonAggregate(), emitInterWarpCopyFunction(), EmitNontemporalStore(), emitOutlinedFunctionPrologue(), EmitParmDecl(), EmitScalarInit(), clang::CodeGen::emitTaskCall(), emitTaskDupFunction(), clang::CodeGen::emitTaskInit(), clang::CodeGen::emitTaskLoopCall(), emitTaskPrivateMappingFunction(), clang::CodeGen::emitThreadIDAddress(), emitWriteback(), InitCatchParam(), and tryEmitARCRetainLoadOfScalar().
| void CodeGenFunction::EmitStoreOfScalar | ( | llvm::Value * | value, |
| LValue | lvalue, | ||
| bool | isInit = false |
||
| ) |
EmitStoreOfScalar - Store a scalar value to an address, taking care to appropriately convert from the memory representation to the LLVM value representation.
The l-value must be a simple l-value. The isInit flag indicates whether this is an initialization. If so, atomic qualifiers are ignored and the store is always non-atomic.
Definition at line 1584 of file CGExpr.cpp.
References clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValue::getBaseInfo(), clang::CodeGen::LValue::getTBAABaseType(), clang::CodeGen::LValue::getTBAAInfo(), clang::CodeGen::LValue::getTBAAOffset(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::isNontemporal(), and clang::CodeGen::LValue::isVolatile().
| void CodeGenFunction::EmitStoreThroughBitfieldLValue | ( | RValue | Src, |
| LValue | Dst, | ||
| llvm::Value ** | Result = nullptr |
||
| ) |
EmitStoreThroughBitfieldLValue - Store Src into Dst with same constraints as EmitStoreThroughLValue.
| Result | [out] - If non-null, this will be set to a Value* for the bit-field contents after the store, appropriate for use as the result of an assignment to the bit-field. |
Definition at line 1846 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getBitFieldAddress(), clang::CodeGen::LValue::getBitFieldInfo(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::LValue::getType(), hasBooleanRepresentation(), clang::CodeGen::CGBitFieldInfo::IsSigned, clang::CodeGen::LValue::isVolatileQualified(), clang::CodeGen::CGBitFieldInfo::Offset, clang::CodeGen::CGBitFieldInfo::Size, and clang::CodeGen::CGBitFieldInfo::StorageSize.
Definition at line 1913 of file CGExpr.cpp.
References Builder, clang::Type::getAs(), clang::CodeGen::LValue::getExtVectorAddress(), clang::CodeGen::LValue::getExtVectorElts(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::LValue::getType(), and clang::CodeGen::LValue::isVolatileQualified().
Store of global named registers are always calls to intrinsics.
Definition at line 1984 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getGlobalReg(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::LValue::getType(), clang::Type::isIntegerType(), and clang::Type::isPointerType().
Referenced by emitSimpleAtomicStore().
EmitStoreThroughLValue - Store the specified rvalue into the specified lvalue, where both are guaranteed to the have the same type, and that type is 'Ty'.
Definition at line 1749 of file CGExpr.cpp.
References Builder, clang::CodeGen::LValue::getAddress(), clang::CodeGen::LValue::getBaseIvarExp(), clang::Qualifiers::getObjCLifetime(), clang::CodeGen::Address::getPointer(), clang::CodeGen::LValue::getQuals(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::LValue::getType(), clang::CodeGen::LValue::getVectorAddress(), clang::CodeGen::LValue::getVectorIdx(), clang::CodeGen::LValue::isBitField(), clang::CodeGen::LValue::isExtVectorElt(), clang::CodeGen::LValue::isGlobalObjCRef(), clang::CodeGen::LValue::isGlobalReg(), clang::CodeGen::LValue::isNonGC(), clang::CodeGen::LValue::isObjCIvar(), clang::CodeGen::LValue::isObjCStrong(), clang::CodeGen::LValue::isObjCWeak(), clang::CodeGen::RValue::isScalar(), clang::CodeGen::LValue::isSimple(), clang::CodeGen::LValue::isThreadLocalRef(), clang::CodeGen::LValue::isVectorElt(), clang::CodeGen::LValue::isVolatileQualified(), clang::Qualifiers::OCL_Autoreleasing, clang::Qualifiers::OCL_ExplicitNone, clang::Qualifiers::OCL_None, clang::Qualifiers::OCL_Strong, and clang::Qualifiers::OCL_Weak.
Referenced by castValueFromUintptr(), createSectionLVal(), EmitAnyExprToMem(), EmitAsmStmt(), EmitAtomicUpdateValue(), EmitAutoVarInit(), EmitExprAsInit(), EmitInitializerForField(), EmitLambdaExpr(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), EmitOMPAtomicSimpleUpdateExpr(), emitOMPSimpleStore(), emitProxyTaskFunction(), EmitScalarInit(), emitWriteback(), GenerateOpenMPCapturedVars(), and InitCapturedStruct().
| LValue CodeGenFunction::EmitStringLiteralLValue | ( | const StringLiteral * | E | ) |
Definition at line 2464 of file CGExpr.cpp.
References clang::Expr::getType().
| void CodeGenFunction::EmitSwitchStmt | ( | const SwitchStmt & | S | ) |
Definition at line 1558 of file CGStmt.cpp.
References Builder, CGM, ConstantFoldsToSimpleInteger(), createBasicBlock(), EmitAutoVarDecl(), EmitBlock(), EmitScalarExpr(), EmitStmt(), FindCaseStatementsForValue(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::SwitchStmt::getBody(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::SwitchStmt::getCond(), clang::SwitchStmt::getConditionVariable(), getContext(), clang::SwitchStmt::getInit(), getJumpDestInCurrentScope(), getLLVMContext(), clang::SwitchCase::getNextSwitchCase(), getProfileCount(), clang::SwitchStmt::getSwitchCaseList(), clang::CodeGen::CodeGenPGO::haveRegionCounts(), incrementProfileCounter(), and clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups().
Referenced by EmitStmt().
Definition at line 625 of file CGExprCXX.cpp.
References E, EmitNullInitialization(), EmitSynthesizedCXXCopyCtorCall(), clang::CXXConstructExpr::getConstructor(), getContext(), clang::Expr::getType(), and clang::CXXConstructExpr::requiresZeroInitialization().
Referenced by GenerateCopyHelperFunction().
| void CodeGenFunction::EmitSynthesizedCXXCopyCtorCall | ( | const CXXConstructorDecl * | D, |
| Address | This, | ||
| Address | Src, | ||
| const CXXConstructExpr * | E | ||
| ) |
Definition at line 2201 of file CGClass.cpp.
References clang::CodeGen::CallArgList::add(), clang::CXXConstructExpr::arguments(), Builder, clang::Type::castAs(), CGM, clang::CodeGen::CodeGenTypes::ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::Ctor_Complete, EmitCallArgs(), EmitCXXConstructorCall(), clang::CodeGen::RValue::get(), clang::CXXConstructExpr::getConstructor(), getContext(), clang::CodeGen::Address::getPointer(), clang::CXXMethodDecl::getThisType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::FunctionProtoType::param_type_begin(), and clang::CodeGen::Type.
Referenced by EmitSynthesizedCXXCopyCtor().
Definition at line 8725 of file CGBuiltin.cpp.
References Builder, CGM, ConvertType(), EmitScalarExpr(), fma, clang::CallExpr::getArg(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::Expr::getType(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, sqrt, clang::CodeGen::Type, and X.
Referenced by EmitTargetArchBuiltinExpr().
EmitTargetBuiltinExpr - Emit the given builtin call.
Returns 0 if the call is unhandled by the current target.
Definition at line 2962 of file CGBuiltin.cpp.
References BuiltinInfo, E, EmitTargetArchBuiltinExpr(), clang::ASTContext::getAuxTargetInfo(), getContext(), getTarget(), and clang::TargetInfo::getTriple().
| llvm::Value * CodeGenFunction::EmitToMemory | ( | llvm::Value * | Value, |
| QualType | Ty | ||
| ) |
EmitToMemory - Change a scalar value from its value representation to its in-memory representation.
Definition at line 1502 of file CGExpr.cpp.
References Builder, and hasBooleanRepresentation().
Referenced by EmitNontemporalStore(), and EmitToInt().
| llvm::CallInst * CodeGenFunction::EmitTrapCall | ( | llvm::Intrinsic::ID | IntrID | ) |
Emit a call to trap or debugtrap and attach function attribute "trap-func-name" if specified.
Definition at line 2995 of file CGExpr.cpp.
References Builder.
Referenced by EmitDestructorBody(), EmitX86BuiltinExpr(), and GenerateCode().
| void CodeGenFunction::EmitTrapCheck | ( | llvm::Value * | Checked | ) |
Create a basic block that will call the trap intrinsic, and emit a conditional branch to it, for the -ftrapv checks.
Definition at line 2975 of file CGExpr.cpp.
References Builder.
Referenced by EmitVTablePtrCheck().
| void CodeGenFunction::EmitTypeCheck | ( | TypeCheckKind | TCK, |
| SourceLocation | Loc, | ||
| llvm::Value * | V, | ||
| QualType | Type, | ||
| CharUnits | Alignment = CharUnits::Zero(), |
||
| SanitizerSet | SkippedChecks = SanitizerSet() |
||
| ) |
Emit a check that V is the address of storage of the appropriate size and alignment for an object of type Type.
Definition at line 578 of file CGExpr.cpp.
References Builder, CGM, createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitBlock(), getContext(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), clang::CharUnits::getQuantity(), clang::ASTContext::getTypeSizeInChars(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::IntPtrTy, clang::Type::isIncompleteType(), clang::QualType::isVolatileQualified(), sanitizePerformTypeCheck(), SanOpts, TCK_DowncastPointer, TCK_Upcast, TCK_UpcastToVirtualBase, and clang::CodeGen::Type.
Referenced by EmitCXXConstructorCall(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitObjectDelete(), EmitReferenceBindingToExpr(), GetAddressOfBaseClass(), and StartFunction().
| void CodeGenFunction::EmitTypeMetadataCodeForVCall | ( | const CXXRecordDecl * | RD, |
| llvm::Value * | VTable, | ||
| SourceLocation | Loc | ||
| ) |
If whole-program virtual table optimization is enabled, emit an assumption that VTable is a member of RD's type identifier.
Or, if vptr CFI is enabled, emit a check that VTable is a member of RD's type identifier.
Definition at line 2523 of file CGClass.cpp.
References Builder, CFITCK_VCall, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenModule::CreateMetadataIdentifierForType(), EmitVTablePtrCheckForCall(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::TypeDecl::getTypeForDecl(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenModule::HasHiddenLTOVisibility(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and SanOpts.
| LValue CodeGenFunction::EmitUnaryOpLValue | ( | const UnaryOperator * | E | ) |
Definition at line 2400 of file CGExpr.cpp.
References clang::Qualifiers::addQualifiers(), clang::Type::castAs(), clang::CodeGen::LValue::getAddress(), clang::QualType::getAddressSpace(), clang::CodeGen::LValue::getBaseInfo(), clang::QualType::getCanonicalType(), clang::CodeGen::Address::getElementType(), clang::UnaryOperator::getOpcode(), clang::Type::getPointeeType(), clang::CodeGen::LValue::getQuals(), clang::UnaryOperator::getSubExpr(), clang::Expr::getType(), clang::CodeGen::LValue::getType(), clang::Type::isAnyComplexType(), clang::Type::isArithmeticType(), clang::QualType::isNull(), clang::Expr::isOBJCGCCandidate(), clang::CodeGen::LValue::isSimple(), and clang::LangOptions::NonGC.
EmitUnsupportedLValue - Emit a dummy l-value using the type of E and issue an ErrorUnsupported style diagnostic (using the provided Name).
Definition at line 1015 of file CGExpr.cpp.
References clang::Expr::getType(), and clang::CharUnits::One().
EmitUnsupportedRValue - Emit a dummy r-value using the type of E and issue an ErrorUnsupported style diagnostic (using the provided Name).
Definition at line 1009 of file CGExpr.cpp.
References clang::Expr::getType().
Generate code to get an argument from the passed in pointer and update it accordingly.
| VE | The VAArgExpr for which to generate code. |
| VAListAddr | Receives a reference to the va_list as emitted by either EmitVAListRef or EmitMSVAListRef. |
Definition at line 4370 of file CGCall.cpp.
References clang::VAArgExpr::getSubExpr(), clang::Expr::getType(), and clang::VAArgExpr::isMicrosoftABI().
Definition at line 4219 of file CGExpr.cpp.
Definition at line 1986 of file CodeGenFunction.cpp.
References EmitLValue(), EmitPointerWithAlignment(), clang::CodeGen::LValue::getAddress(), and getContext().
| void CodeGenFunction::EmitVarAnnotations | ( | const VarDecl * | D, |
| llvm::Value * | V | ||
| ) |
Emit local annotations for the local variable V, declared by D.
Definition at line 2044 of file CodeGenFunction.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitAnnotationCall(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::Decl::getLocation(), clang::Decl::hasAttr(), I, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and clang::Decl::specific_attrs().
Referenced by EmitAutoVarAlloca(), and EmitParmDecl().
| void CodeGenFunction::EmitVarDecl | ( | const VarDecl & | D | ) |
EmitVarDecl - Emit a local variable declaration.
EmitVarDecl - This method handles emission of any variable declaration inside a function, including static vars etc.
This function can be called with a null (unreachable) insert point.
Definition at line 155 of file CGDecl.cpp.
References CGM, EmitAutoVarDecl(), EmitStaticVarDecl(), clang::CodeGen::CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(), clang::QualType::getAddressSpace(), clang::CodeGen::CodeGenModule::getLLVMLinkageVarDefinition(), clang::CodeGen::CodeGenModule::getOpenCLRuntime(), clang::VarDecl::getStorageDuration(), clang::ValueDecl::getType(), clang::VarDecl::hasExternalStorage(), clang::VarDecl::hasLocalStorage(), clang::LangAS::opencl_local, and clang::SD_Automatic.
Referenced by EmitDecl(), EmitOMPHelperVar(), EmitOMPLinearClauseInit(), and EmitOMPSimdDirective().
| void CodeGenFunction::EmitVariablyModifiedType | ( | QualType | Ty | ) |
EmitVLASize - Capture all the sizes for the VLA expressions in the given variably-modified type and store them in the VLASizeMap.
This function can be called with a null (unreachable) insert point.
Definition at line 1841 of file CodeGenFunction.cpp.
References clang::Auto, Builder, EmitCheck(), EmitCheckSourceLocation(), EmitCheckTypeDescriptor(), EmitIgnoredExpr(), EmitScalarExpr(), EnsureInsertPoint(), getContext(), clang::ArrayType::getElementType(), clang::QualType::getSingleStepDesugaredType(), clang::VariableArrayType::getSizeExpr(), clang::QualType::getTypePtr(), clang::SanitizerSet::has(), clang::Type::isVariablyModifiedType(), Paren, SanOpts, and clang::CodeGen::CodeGenTypeCache::SizeTy.
Referenced by clang::CodeGen::ReductionCodeGen::emitAggregateType(), EmitAutoVarAlloca(), EmitDecl(), clang::CodeGen::CodeGenModule::EmitExplicitCastExprType(), EmitStaticVarDecl(), and StartFunction().
| Value * CodeGenFunction::EmitVAStartEnd | ( | llvm::Value * | ArgValue, |
| bool | IsStart | ||
| ) |
Emits a call to an LLVM variable-argument intrinsic, either llvm.va_start or llvm.va_end.
| ArgValue | A reference to the va_list as emitted by either EmitVAListRef or EmitMSVAListRef. |
| IsStart | If true, emits a call to llvm.va_start; otherwise, calls llvm.va_end. |
Definition at line 397 of file CGBuiltin.cpp.
References Builder, ID, and clang::CodeGen::Type.
Emit assumption that vptr load == global vtable.
Definition at line 2172 of file CGClass.cpp.
References ApplyNonVirtualAndVirtualOffset(), clang::CodeGen::CodeGenFunction::VPtr::Base, Builder, CGM, clang::BaseSubobject::getBaseOffset(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::Address::getType(), clang::CodeGen::CGCXXABI::getVTableAddressPoint(), GetVTablePtr(), clang::CharUnits::isZero(), clang::CodeGen::CodeGenFunction::VPtr::NearestVBase, and clang::CodeGen::CodeGenFunction::VPtr::VTableClass.
Referenced by EmitVTableAssumptionLoads().
| void CodeGenFunction::EmitVTableAssumptionLoads | ( | const CXXRecordDecl * | ClassDecl, |
| Address | This | ||
| ) |
Emit assumption load for all bases.
Requires to be be called only on most-derived class and not under construction of the object.
Definition at line 2193 of file CGClass.cpp.
References CGM, clang::CodeGen::CGCXXABI::doStructorsInitializeVPtrs(), EmitVTableAssumptionLoad(), clang::CodeGen::CodeGenModule::getCXXABI(), and getVTablePointers().
Referenced by EmitCXXConstructorCall().
| void CodeGenFunction::EmitVTablePtrCheck | ( | const CXXRecordDecl * | RD, |
| llvm::Value * | VTable, | ||
| CFITypeCheckKind | TCK, | ||
| SourceLocation | Loc | ||
| ) |
EmitVTablePtrCheck - Emit a check that VTable is a valid virtual table for RD using llvm.type.test.
Definition at line 2599 of file CGClass.cpp.
References Builder, CFITCK_DerivedCast, CFITCK_ICall, CFITCK_NVCall, CFITCK_UnrelatedCast, CFITCK_VCall, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenModule::CreateCrossDsoCfiTypeId(), clang::CodeGen::CodeGenModule::CreateMetadataIdentifierForType(), EmitCfiSlowPathCheck(), EmitCheck(), EmitCheckSourceLocation(), EmitCheckTypeDescriptor(), EmitSanitizerStatReport(), EmitTrapCheck(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenModule::getLLVMContext(), getLLVMContext(), clang::NamedDecl::getQualifiedNameAsString(), clang::TypeDecl::getTypeForDecl(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenModule::HasHiddenLTOVisibility(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, and clang::CodeGenOptions::SanitizeTrap.
Referenced by EmitVTablePtrCheckForCall(), and EmitVTablePtrCheckForCast().
| void CodeGenFunction::EmitVTablePtrCheckForCall | ( | const CXXRecordDecl * | RD, |
| llvm::Value * | VTable, | ||
| CFITypeCheckKind | TCK, | ||
| SourceLocation | Loc | ||
| ) |
EmitVTablePtrCheckForCall - Virtual method MD is being called via VTable.
If vptr CFI is enabled, emit a check that VTable is valid.
Definition at line 2544 of file CGClass.cpp.
References EmitVTablePtrCheck(), clang::SanitizerSet::has(), LeastDerivedClassWithSameLayout(), and SanOpts.
Referenced by EmitCXXMemberOrOperatorMemberCallExpr(), and EmitTypeMetadataCodeForVCall().
| void CodeGenFunction::EmitVTablePtrCheckForCast | ( | QualType | T, |
| llvm::Value * | Derived, | ||
| bool | MayBeNull, | ||
| CFITypeCheckKind | TCK, | ||
| SourceLocation | Loc | ||
| ) |
Derived is the presumed address of an object of type T after a cast.
If T is a polymorphic class type, emit a check that the virtual table for Derived belongs to a class derived from T.
Definition at line 2554 of file CGClass.cpp.
References Builder, clang::frontend::CPlusPlus, createBasicBlock(), EmitBlock(), EmitVTablePtrCheck(), clang::Type::getAs(), getLangOpts(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), GetVTablePtr(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::TagDecl::isCompleteDefinition(), clang::CXXRecordDecl::isDynamicClass(), LeastDerivedClassWithSameLayout(), and SanOpts.
| llvm::Value * CodeGenFunction::EmitVTableTypeCheckedLoad | ( | const CXXRecordDecl * | RD, |
| llvm::Value * | VTable, | ||
| uint64_t | VTableByteOffset | ||
| ) |
Emit a type checked load from the given vtable.
Definition at line 2694 of file CGClass.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenModule::CreateMetadataIdentifierForType(), EmitCheck(), EmitSanitizerStatReport(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::TypeDecl::getTypeForDecl(), clang::CodeGen::CodeGenTypeCache::Int32Ty, and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Definition at line 9290 of file CGBuiltin.cpp.
References Builder, CGM, ConvertType(), EmitScalarExpr(), clang::CallExpr::getArg(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::Expr::getType(), and clang::CodeGen::Type.
Referenced by EmitTargetArchBuiltinExpr().
Definition at line 686 of file CGStmt.cpp.
References Builder, CGM, createBasicBlock(), EmitAutoVarDecl(), EmitBlock(), EmitBranch(), EmitBranchThroughCleanup(), EmitStmt(), EmitStopPoint(), EvaluateExprAsBool(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::WhileStmt::getBody(), clang::WhileStmt::getCond(), clang::WhileStmt::getConditionVariable(), clang::CodeGen::CodeGenModule::getContext(), getJumpDestInCurrentScope(), getProfileCount(), clang::Stmt::getSourceRange(), incrementProfileCounter(), LoopStack, clang::CodeGen::LoopInfoStack::pop(), clang::CodeGen::LoopInfoStack::push(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups(), SimplifyForwardingBlocks(), and SourceLocToDebugLoc().
Referenced by EmitAttributedStmt(), and EmitStmt().
Definition at line 7251 of file CGBuiltin.cpp.
References Builder, BuildVector(), CGM, ConvertType(), clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateDefaultAlignedStore(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateMemSet(), CreateMemTemp(), clang::CodeGen::CodeGenModule::CreateRuntimeVariable(), clang::CodeGen::CGBuilderTy::CreateStore(), EmitMSVCBuiltinExpr(), EmitPointerWithAlignment(), EmitScalarExpr(), EmitTrapCall(), EmitX86MaskedCompare(), EmitX86MaskedLoad(), EmitX86MaskedStore(), EmitX86MinMax(), EmitX86Select(), EmitX86SExtMask(), EmitX86SubVectorBroadcast(), clang::CharUnits::fromQuantity(), clang::ASTContext::GE_None, clang::CallExpr::getArg(), clang::ASTContext::GetBuiltinType(), getContext(), clang::CodeGen::CodeGenModule::getIntrinsic(), getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), clang::CallExpr::getNumArgs(), clang::CodeGen::Address::getPointer(), clang::Expr::getType(), clang::ASTContext::getTypeAlignInChars(), ID, clang::Expr::IgnoreParenCasts(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int64Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, INTRINSIC_X86_XSAVE_ID, clang::Expr::isIntegerConstantExpr(), Node, prefetch(), clang::CodeGen::CodeGenTypeCache::SizeTy, clang::frontend::System, clang::CodeGen::Type, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitTargetArchBuiltinExpr().
|
inline |
Definition at line 1445 of file CodeGenFunction.h.
|
inline |
EnsureInsertPoint - Ensure that an insertion point is defined so that emitted IR has a place to go.
Note that by definition, if this function creates a block then that block is unreachable; callers may do better to detect when no insertion point is defined and simply skip IR generation.
Definition at line 1885 of file CodeGenFunction.h.
References createBasicBlock(), EmitBlock(), and HaveInsertPoint().
Referenced by EmitAutoVarAlloca(), EmitAutoVarInit(), EmitCompoundStmtWithoutScope(), EmitStmt(), EmitVariablyModifiedType(), and clang::CodeGen::CodeGenFunction::StmtExprEvaluation::~StmtExprEvaluation().
| void CodeGenFunction::enterByrefCleanup | ( | const AutoVarEmission & | emission | ) |
Enter a cleanup to destroy a __block variable.
Note that this cleanup should be a no-op if the variable hasn't left the stack yet; if a cleanup is required for the variable itself, that needs to be done externally.
Definition at line 2410 of file CGBlocks.cpp.
References CGM, EHStack, clang::LangOptions::GCOnly, clang::CodeGen::CodeGenModule::getLangOpts(), clang::CodeGen::Address::getPointer(), and clang::CodeGen::NormalAndEHCleanup.
Referenced by EmitAutoVarCleanups().
| void CodeGenFunction::EnterCXXTryStmt | ( | const CXXTryStmt & | S, |
| bool | IsFnTryBlock = false |
||
| ) |
Definition at line 549 of file CGException.cpp.
References CGM, createBasicBlock(), EHStack, clang::CodeGen::CGCXXABI::getAddrOfCXXCatchHandlerType(), clang::CodeGen::CGCXXABI::getCatchAllTypeInfo(), clang::CXXCatchStmt::getCaughtType(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::CGObjCRuntime::GetEHType(), clang::CXXCatchStmt::getExceptionDecl(), clang::CXXTryStmt::getHandler(), clang::QualType::getNonReferenceType(), clang::CXXTryStmt::getNumHandlers(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::ASTContext::getUnqualifiedArrayType(), I, clang::Type::isObjCObjectPointerType(), clang::CodeGen::EHScopeStack::pushCatch(), and clang::CodeGen::EHCatchScope::setHandler().
Referenced by EmitConstructorBody(), EmitCoroutineBody(), EmitCXXTryStmt(), and EmitDestructorBody().
| void CodeGenFunction::EnterDtorCleanups | ( | const CXXDestructorDecl * | DD, |
| CXXDtorType | DtorType | ||
| ) |
EnterDtorCleanups - Enter the cleanups necessary to complete the given phase of destruction for a destructor.
Emit all code that comes at the end of class's destructor.
The end result should call destructors on members and base classes in reverse order of their construction.
This is to call destructors on members and base classes in reverse order of their construction.
Definition at line 1708 of file CGClass.cpp.
References clang::CXXRecordDecl::bases(), CGM, clang::Dtor_Base, clang::Dtor_Complete, clang::Dtor_Deleting, clang::CodeGen::EHCleanup, EHStack, clang::RecordDecl::fields(), clang::Type::getAsUnionType(), getCleanupKind(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::RecordType::getDecl(), getDestroyer(), clang::CXXRecordDecl::getNumVBases(), clang::CXXDestructorDecl::getOperatorDelete(), clang::CXXMethodDecl::getParent(), clang::ValueDecl::getType(), clang::SanitizerSet::has(), clang::Decl::hasAttr(), clang::CXXRecordDecl::hasTrivialDestructor(), clang::RecordDecl::isAnonymousStructOrUnion(), clang::QualType::isDestructedType(), clang::CXXRecordDecl::isPolymorphic(), clang::FunctionDecl::isTrivial(), clang::TagDecl::isUnion(), clang::CodeGen::NormalAndEHCleanup, SanOpts, clang::ast_matchers::type, and clang::CXXRecordDecl::vbases().
Referenced by EmitDestructorBody().
|
inline |
Definition at line 3521 of file CodeGenFunction.h.
References enterNonTrivialFullExpression(), and clang::ExprWithCleanups::getNumObjects().
Referenced by EmitARCRetainAutoreleaseScalarExpr(), EmitARCRetainScalarExpr(), EmitARCUnsafeUnretainedScalarExpr(), EmitOMPAtomicDirective(), EmitReturnStmt(), and EmitScalarInit().
| void CodeGenFunction::enterNonTrivialFullExpression | ( | const ExprWithCleanups * | E | ) |
Enter a full-expression with a non-trivial number of objects to clean up.
This is in this file because, at the moment, the only kind of cleanup object is a BlockDecl*.
Definition at line 663 of file CGBlocks.cpp.
References enterBlockScope(), clang::ExprWithCleanups::getNumObjects(), and clang::ExprWithCleanups::getObjects().
Referenced by enterFullExpression().
| void CodeGenFunction::EnterSEHTryStmt | ( | const SEHTryStmt & | S | ) |
Definition at line 1780 of file CGException.cpp.
References createBasicBlock(), CreateMemTemp(), EHStack, clang::CodeGen::CodeGenModule::EmitConstantExpr(), GenerateSEHFilterFunction(), GenerateSEHFinallyFunction(), getContext(), clang::SEHTryStmt::getExceptHandler(), clang::SEHExceptStmt::getFilterExpr(), clang::SEHTryStmt::getFinallyHandler(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTriple(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::IntTy, clang::ASTContext::IntTy, clang::CodeGen::NormalAndEHCleanup, clang::CodeGen::EHScopeStack::pushCatch(), SEHCodeSlotStack, clang::CodeGen::EHCatchScope::setCatchAllHandler(), and clang::CodeGen::EHCatchScope::setHandler().
Referenced by EmitSEHTryStmt().
| void CodeGenFunction::ErrorUnsupported | ( | const Stmt * | S, |
| const char * | Type | ||
| ) |
ErrorUnsupported - Print out an error that codegen doesn't support the specified stmt yet.
Definition at line 1560 of file CodeGenFunction.cpp.
References CGM, and clang::CodeGen::CodeGenModule::ErrorUnsupported().
| llvm::Value * CodeGenFunction::EvaluateExprAsBool | ( | const Expr * | E | ) |
EvaluateExprAsBool - Perform the usual unary conversions on the specified expression and compare the result against zero, returning an Int1Ty value.
Definition at line 139 of file CGExpr.cpp.
References clang::ASTContext::BoolTy, CGM, EmitComplexExpr(), EmitComplexToScalarConversion(), clang::CodeGen::CGCXXABI::EmitMemberPointerIsNotNull(), EmitScalarConversion(), EmitScalarExpr(), clang::Type::getAs(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::Expr::getExprLoc(), clang::Expr::getType(), clang::Type::isAnyComplexType(), and clang::CodeGen::CodeGenPGO::setCurrentStmt().
Referenced by EmitBranchOnBoolExpr(), EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), clang::CodeGen::emitTaskLoopCall(), and EmitWhileStmt().
| void CodeGenFunction::ExitCXXTryStmt | ( | const CXXTryStmt & | S, |
| bool | IsFnTryBlock = false |
||
| ) |
Definition at line 1014 of file CGException.cpp.
References clang::CodeGen::EHCatchScope::begin(), clang::CodeGen::EHScopeStack::begin(), Builder, CGM, clang::CodeGen::EHCatchScope::clearHandlerBlocks(), createBasicBlock(), CurCodeDecl, CurrentFuncletPad, EHStack, clang::CodeGen::CGCXXABI::emitBeginCatch(), EmitBlock(), EmitBlockAfterUses(), emitCatchDispatchBlock(), clang::CodeGen::CGCXXABI::emitRethrow(), EmitStmt(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CXXTryStmt::getHandler(), clang::CXXCatchStmt::getHandlerBlock(), clang::CXXTryStmt::getNumHandlers(), clang::CodeGen::EHCatchScope::getNumHandlers(), clang::CodeGen::EHScope::hasEHBranches(), HaveInsertPoint(), I, incrementProfileCounter(), and clang::CodeGen::EHScopeStack::popCatch().
Referenced by EmitConstructorBody(), EmitCoroutineBody(), EmitCXXTryStmt(), and EmitDestructorBody().
| void CodeGenFunction::ExitSEHTryStmt | ( | const SEHTryStmt & | S | ) |
Definition at line 1819 of file CGException.cpp.
References clang::CodeGen::EHScopeStack::begin(), clang::CodeGen::EHCatchScope::Handler::Block, Builder, clang::CodeGen::EHCatchScope::clearHandlerBlocks(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateStore(), EHStack, EmitBlock(), EmitBlockAfterUses(), emitCatchDispatchBlock(), EmitStmt(), clang::SEHExceptStmt::getBlock(), clang::SEHTryStmt::getExceptHandler(), clang::SEHTryStmt::getFinallyHandler(), clang::CodeGen::EHCatchScope::getHandler(), clang::CodeGen::CodeGenModule::getIntrinsic(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTriple(), clang::CodeGen::EHScope::hasEHBranches(), HaveInsertPoint(), clang::CodeGen::EHScopeStack::popCatch(), PopCleanupBlock(), and SEHCodeSlotStack.
Referenced by EmitSEHTryStmt().
| void CodeGenFunction::FinishFunction | ( | SourceLocation | EndLoc = SourceLocation() | ) |
FinishFunction - Complete IR generation of the current function.
It is legal to call this function even if there is no current insertion point.
Definition at line 300 of file CodeGenFunction.cpp.
References AllocaInsertPt, Builder, CGM, clang::CodeGen::EHScopeStack::containsOnlyLifetimeMarkers(), CurCodeDecl, CurFn, CurFnInfo, E, EHResumeBlock, EHStack, EmitBlock(), EmitEndEHSpec(), EmitFunctionEpilog(), EmitFunctionInstrumentation(), EmitIfUsed(), EmitReturnBlock(), clang::CodeGen::EHScopeStack::empty(), clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getDebugInfo(), clang::CodeGen::CodeGenModule::getModule(), I, PopCleanupBlocks(), PrologueCleanupDepth, ReturnBlock, ShouldInstrumentFunction(), and clang::CodeGen::EHScopeStack::stable_begin().
Referenced by createAtExitStub(), createOffloadingBinaryDescriptorFunction(), emitCombinerOrInitializer(), emitCopyprivateCopyFunction(), emitCopyToScratchpad(), emitDestructorsFunction(), emitInterWarpCopyFunction(), EmitMustTailThunk(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceFiniFunction(), emitReduceInitFunction(), emitReduceScratchpadFunction(), emitShuffleAndReduceFunction(), emitTaskDupFunction(), emitTaskPrivateMappingFunction(), clang::CodeGen::emitThreadPrivateVarDefinition(), FinishThunk(), GenerateBlockFunction(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCapturedStmtFunction(), GenerateCode(), GenerateCopyHelperFunction(), GenerateCXXGlobalDtorsFunc(), GenerateCXXGlobalInitFunc(), GenerateCXXGlobalVarDeclInitFunc(), generateDestroyHelper(), GenerateDestroyHelperFunction(), GenerateObjCAtomicGetterCopyHelperFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), GenerateObjCCtorDtorMethod(), GenerateObjCGetter(), GenerateObjCMethod(), GenerateObjCSetter(), GenerateOpenMPCapturedStmtFunction(), GenerateSEHFilterFunction(), and GenerateSEHFinallyFunction().
| void CodeGenFunction::FinishThunk | ( | ) |
Definition at line 246 of file CGVTables.cpp.
References CurCodeDecl, CurFuncDecl, and FinishFunction().
Referenced by EmitCallAndReturnForThunk().
| llvm::Function * CodeGenFunction::GenerateBlockFunction | ( | GlobalDecl | GD, |
| const CGBlockInfo & | Info, | ||
| const DeclMapTy & | ldm, | ||
| bool | IsLambdaConversionToBlock | ||
| ) |
Definition at line 1225 of file CGBlocks.cpp.
References clang::CodeGen::CodeGenTypes::arrangeBlockFunctionDeclaration(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), BlockInfo, BlockPointer, Builder, clang::BlockDecl::captures(), clang::BlockDecl::capturesCXXThis(), CGM, clang::Create(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), CreateTempAlloca(), CurGD, clang::CodeGen::CGBlockInfo::CXXThisIndex, clang::CodeGen::CGBlockInfo::CXXThisOffset, EmitLambdaBlockInvokeBody(), EmitStmt(), FinishFunction(), clang::IdentifierTable::get(), clang::CodeGen::CGBlockInfo::getBlockDecl(), clang::CodeGen::CGBlockInfo::getBlockExpr(), clang::CodeGen::CodeGenModule::getBlockMangledName(), clang::BlockDecl::getBody(), clang::BlockExpr::getBody(), clang::CodeGen::CGBlockInfo::getCapture(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CGBlockInfo::Capture::getConstant(), clang::CodeGen::CodeGenModule::getContext(), getContext(), getDebugInfo(), clang::ASTContext::getDeclAlign(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::BlockExpr::getFunctionType(), getLangOpts(), clang::Decl::getLocation(), clang::BlockExpr::getLocEnd(), clang::Stmt::getLocStart(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::ASTContext::getPointerType(), clang::FunctionType::getReturnType(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ASTContext::Idents, incrementProfileCounter(), clang::InternalLinkage, clang::CodeGen::CGBlockInfo::Capture::isConstant(), clang::codegenoptions::LimitedDebugInfo, LoadBlockStruct(), clang::ImplicitParamDecl::ObjCSelf, clang::frontend::OpenCL, clang::LangAS::opencl_generic, clang::BlockDecl::param_begin(), clang::BlockDecl::param_end(), clang::CodeGen::CodeGenModule::ReturnSlotInterferesWithArgs(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), StartFunction(), clang::CodeGen::CGBlockInfo::UsesStret, clang::ASTContext::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by clang::CodeGen::CodeGenModule::GetAddrOfGlobalBlock().
| Address CodeGenFunction::GenerateCapturedStmtArgument | ( | const CapturedStmt & | S | ) |
Definition at line 2265 of file CGStmt.cpp.
References clang::CodeGen::LValue::getAddress(), and InitCapturedStruct().
Referenced by EmitOMPTaskDirective(), and EmitOMPTaskLoopBasedDirective().
| llvm::Function * CodeGenFunction::GenerateCapturedStmtFunction | ( | const CapturedStmt & | S | ) |
Creates the outlined function for a CapturedStmt.
Definition at line 2272 of file CGStmt.cpp.
References clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), Builder, CapturedStmtInfo, CGM, clang::Create(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody(), EmitLoadOfLValue(), EmitLValueForField(), clang::RecordDecl::fields(), FinishFunction(), GetAddrOfLocalVar(), clang::CapturedDecl::getBody(), clang::Decl::getBodyRBrace(), clang::CapturedStmt::getCapturedDecl(), clang::CapturedStmt::getCapturedRecordDecl(), clang::CodeGen::CodeGenModule::getContext(), clang::CapturedDecl::getContextParam(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getContextValue(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getHelperName(), clang::Decl::getLocation(), clang::Stmt::getLocStart(), clang::CapturedStmt::getLocStart(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::RValue::getScalarVal(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getThisFieldDecl(), clang::CodeGen::CodeGenModule::getTypes(), clang::Decl::hasBody(), clang::InternalLinkage, clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::isCXXThisExprCaptured(), clang::CapturedDecl::isNothrow(), MakeNaturalAlignAddrLValue(), clang::CapturedDecl::param_begin(), clang::CapturedDecl::param_end(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::setContextValue(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), and StartFunction().
Referenced by EmitCapturedStmt().
| void CodeGenFunction::GenerateCode | ( | GlobalDecl | GD, |
| llvm::Function * | Fn, | ||
| const CGFunctionInfo & | FnInfo | ||
| ) |
Definition at line 1134 of file CodeGenFunction.cpp.
References clang::CodeGen::CodeGenPGO::assignRegionCounters(), Builder, BuildFunctionArgList(), Bypasses, CGM, clang::frontend::CPlusPlus, CurFn, CurGD, EmitCheck(), EmitCheckSourceLocation(), EmitConstructorBody(), EmitDestructorBody(), clang::CodeGen::CGCUDARuntime::emitDeviceStub(), EmitFunctionBody(), emitImplicitAssignmentOperatorBody(), EmitLambdaStaticInvokeFunction(), EmitLambdaToBlockPointerBody(), EmitTrapCall(), FinishFunction(), clang::SourceRange::getBegin(), clang::FunctionDecl::getBody(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getCUDARuntime(), clang::GlobalDecl::getDecl(), clang::SourceRange::getEnd(), getLangOpts(), clang::Decl::getLocation(), clang::FunctionDecl::getReturnType(), clang::FunctionDecl::getTemplateInstantiationPattern(), clang::SanitizerSet::has(), clang::Decl::hasAttr(), clang::FunctionDecl::hasImplicitReturnZero(), clang::CodeGen::VarBypassDetector::Init(), clang::FunctionDecl::isDefaulted(), clang::Type::isVoidType(), clang::None, SanOpts, SawAsmBlock, shouldUseUndefinedBehaviorReturnOptimization(), StartFunction(), and TryMarkNoThrow().
Referenced by clang::CodeGen::CodeGenModule::codegenCXXStructor().
| llvm::Constant * CodeGenFunction::GenerateCopyHelperFunction | ( | const CGBlockInfo & | blockInfo | ) |
Generate the copy-helper function for a block closure object: static void block_copy_helper(block_t *dst, block_t *src); The runtime will have previously initialized 'dst' by doing a bit-copy of 'src'.
Note that this copies an entire block closure object to the heap; it should not be confused with a 'byref copy helper', which moves the contents of an individual __block variable to the heap.
Definition at line 1497 of file CGBlocks.cpp.
References clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::CodeGen::CGBlockInfo::BlockAlign, Builder, CGM, computeCopyInfoForBlockCapture(), clang::FunctionDecl::Create(), clang::Create(), clang::CodeGen::ApplyDebugLocation::CreateArtificial(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), EmitARCCopyWeak(), EmitARCRetainNonBlock(), EmitARCStoreStrongCall(), EmitNounwindRuntimeCall(), EmitRuntimeCallOrInvoke(), EmitSynthesizedCXXCopyCtor(), findBlockCapturedManagedEntities(), FinishFunction(), clang::IdentifierTable::get(), GetAddrOfLocalVar(), clang::CodeGen::BlockFieldFlags::getBitMask(), clang::CodeGen::CodeGenModule::getBlockObjectAssign(), clang::ASTContext::getBlockVarCopyInits(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::BlockDecl::Capture::getCopyExpr(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CGBlockInfo::Capture::getIndex(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CGBlockInfo::Capture::getOffset(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getTranslationUnitDecl(), clang::CodeGen::CodeGenModule::getTypes(), clang::BlockDecl::Capture::getVariable(), clang::ASTContext::Idents, clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::InternalLinkage, clang::BlockDecl::Capture::isByRef(), clang::ImplicitParamDecl::Other, clang::SC_Static, clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), StartFunction(), clang::CodeGen::CGBlockInfo::StructureType, clang::CodeGen::Type, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, clang::ASTContext::VoidPtrTy, and clang::ASTContext::VoidTy.
Referenced by buildCopyHelper().
| void CodeGenFunction::GenerateCXXGlobalDtorsFunc | ( | llvm::Function * | Fn, |
| const std::vector< std::pair< llvm::WeakTrackingVH, llvm::Constant * >> & | DtorsAndObjects | ||
| ) |
GenerateCXXGlobalDtorsFunc - Generates code for destroying global variables.
Definition at line 574 of file CGDeclCXX.cpp.
References Builder, clang::CodeGen::ApplyDebugLocation::CreateArtificial(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), FinishFunction(), getContext(), getTypes(), StartFunction(), and clang::CodeGen::CodeGenTypeCache::VoidTy.
| void CodeGenFunction::GenerateCXXGlobalInitFunc | ( | llvm::Function * | Fn, |
| ArrayRef< llvm::Function * > | CXXThreadLocals, | ||
| Address | Guard = Address::invalid() |
||
| ) |
GenerateCXXGlobalInitFunc - Generates code for initializing global variables.
Definition at line 523 of file CGDeclCXX.cpp.
References Builder, clang::frontend::CPlusPlus, clang::CodeGen::ApplyDebugLocation::CreateArtificial(), createBasicBlock(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStore(), EmitBlock(), EmitObjCAutoreleasePoolCleanup(), EmitObjCAutoreleasePoolPush(), EmitRuntimeCall(), FinishFunction(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), getContext(), getLangOpts(), getTypes(), clang::CodeGen::Address::isValid(), StartFunction(), and clang::CodeGen::CodeGenTypeCache::VoidTy.
| void CodeGenFunction::GenerateCXXGlobalVarDeclInitFunc | ( | llvm::Function * | Fn, |
| const VarDecl * | D, | ||
| llvm::GlobalVariable * | Addr, | ||
| bool | PerformInit | ||
| ) |
Emit the code necessary to initialize the given global variable.
Definition at line 495 of file CGDeclCXX.cpp.
References EmitCXXGlobalVarDeclInit(), EmitCXXGuardedInit(), FinishFunction(), getContext(), clang::Expr::getExprLoc(), clang::VarDecl::getInit(), clang::Decl::getLocation(), clang::DeclaratorDecl::getLocStart(), getTypes(), clang::Decl::hasAttr(), StartFunction(), and clang::CodeGen::CodeGenTypeCache::VoidTy.
| llvm::Function * CodeGenFunction::generateDestroyHelper | ( | Address | addr, |
| QualType | type, | ||
| Destroyer * | destroyer, | ||
| bool | useEHCleanupForArray, | ||
| const VarDecl * | VD | ||
| ) |
generateDestroyHelper - Generates a helper function which, when invoked, destroys the given object.
The address of the object should be in global memory.
Definition at line 602 of file CGDeclCXX.cpp.
References clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), CGM, clang::CodeGen::CodeGenModule::CreateGlobalInitOrDestructFunction(), emitDestroy(), FinishFunction(), getContext(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::Decl::getLocation(), clang::DeclaratorDecl::getLocStart(), clang::CodeGen::CodeGenModule::getTypes(), clang::ImplicitParamDecl::Other, StartFunction(), clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by EmitDeclDestroy(), and pushTemporaryCleanup().
| llvm::Constant * CodeGenFunction::GenerateDestroyHelperFunction | ( | const CGBlockInfo & | blockInfo | ) |
Generate the destroy-helper function for a block closure object: static void block_destroy_helper(block_t *theBlock);.
Note that this destroys a heap-allocated block closure object; it should not be confused with a 'byref destroy helper', which destroys the heap-allocated contents of an individual __block variable.
Definition at line 1674 of file CGBlocks.cpp.
References clang::CodeGen::ARCImpreciseLifetime, clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::CodeGen::CGBlockInfo::BlockAlign, BuildBlockRelease(), Builder, CGM, computeDestroyInfoForBlockCapture(), clang::FunctionDecl::Create(), clang::Create(), clang::CodeGen::ApplyDebugLocation::CreateArtificial(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), EmitARCDestroyStrong(), EmitARCDestroyWeak(), findBlockCapturedManagedEntities(), FinishFunction(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::ForceCleanup(), clang::IdentifierTable::get(), GetAddrOfLocalVar(), clang::Type::getAsCXXRecordDecl(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CXXRecordDecl::getDestructor(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CGBlockInfo::Capture::getIndex(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CGBlockInfo::Capture::getOffset(), clang::ASTContext::getTranslationUnitDecl(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::BlockDecl::Capture::getVariable(), clang::ASTContext::Idents, clang::InternalLinkage, clang::ImplicitParamDecl::Other, PushDestructorCleanup(), clang::SC_Static, clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), StartFunction(), clang::CodeGen::CGBlockInfo::StructureType, clang::CodeGen::Type, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, clang::ASTContext::VoidPtrTy, and clang::ASTContext::VoidTy.
Referenced by buildDisposeHelper().
| llvm::Constant * CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction | ( | const ObjCPropertyImplDecl * | PID | ) |
Definition at line 3295 of file CGObjC.cpp.
References clang::QualType::addConst(), clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::frontend::CPlusPlus, clang::CXXConstructExpr::Create(), clang::FunctionDecl::Create(), clang::Create(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), EmitAnyExpr(), FinishFunction(), clang::CodeGen::AggValueSlot::forAddr(), clang::IdentifierTable::get(), clang::CodeGen::CodeGenModule::getAtomicGetterHelperFnMap(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::ObjCPropertyImplDecl::getGetterCXXConstructor(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::Type::getPointeeType(), clang::ASTContext::getPointerType(), clang::ObjCPropertyDecl::getPropertyAttributes(), clang::ObjCPropertyImplDecl::getPropertyDecl(), clang::CodeGen::RValue::getScalarVal(), clang::ASTContext::getTranslationUnitDecl(), clang::Expr::getType(), clang::ObjCPropertyDecl::getType(), clang::ASTContext::getTypeAlignInChars(), clang::CodeGen::CodeGenModule::getTypes(), clang::ObjCRuntime::hasAtomicCopyHelper(), hasTrivialGetExpr(), clang::ASTContext::Idents, clang::InternalLinkage, clang::CodeGen::AggValueSlot::IsDestructed, clang::CodeGen::AggValueSlot::IsNotAliased, clang::Type::isRecordType(), clang::ObjCPropertyDecl::OBJC_PR_atomic, clang::OK_Ordinary, clang::ImplicitParamDecl::Other, clang::SC_Static, clang::CodeGen::CodeGenModule::setAtomicGetterHelperFnMap(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), StartFunction(), clang::VK_LValue, clang::VK_RValue, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::ASTContext::VoidTy.
Referenced by GenerateObjCGetter().
| llvm::Constant * CodeGenFunction::GenerateObjCAtomicSetterCopyHelperFunction | ( | const ObjCPropertyImplDecl * | PID | ) |
GenerateObjCAtomicSetterCopyHelperFunction - Given a c++ object type with non-trivial copy assignment function, produce following helper function.
static void copyHelper(Ty *dest, const Ty *source) { *dest = *source; }
Definition at line 3214 of file CGObjC.cpp.
References clang::QualType::addConst(), clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::frontend::CPlusPlus, clang::FunctionDecl::Create(), clang::Create(), EmitStmt(), FinishFunction(), clang::IdentifierTable::get(), clang::CodeGen::CodeGenModule::getAtomicSetterHelperFnMap(), clang::CallExpr::getCallee(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenTypes::GetFunctionType(), getLangOpts(), clang::CodeGen::CodeGenModule::getModule(), clang::Type::getPointeeType(), clang::ASTContext::getPointerType(), clang::ObjCPropertyDecl::getPropertyAttributes(), clang::ObjCPropertyImplDecl::getPropertyDecl(), clang::ObjCPropertyImplDecl::getPropertyIvarDecl(), clang::ObjCPropertyImplDecl::getSetterCXXAssignment(), clang::ASTContext::getTranslationUnitDecl(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ObjCRuntime::hasAtomicCopyHelper(), hasTrivialSetExpr(), clang::ASTContext::Idents, clang::InternalLinkage, clang::Type::isRecordType(), clang::ObjCPropertyDecl::OBJC_PR_atomic, clang::OK_Ordinary, clang::ImplicitParamDecl::Other, clang::SC_Static, clang::CodeGen::CodeGenModule::setAtomicSetterHelperFnMap(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), StartFunction(), clang::VK_LValue, clang::VK_RValue, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::ASTContext::VoidTy.
Referenced by GenerateObjCSetter().
| void CodeGenFunction::GenerateObjCCtorDtorMethod | ( | ObjCImplementationDecl * | IMP, |
| ObjCMethodDecl * | MD, | ||
| bool | ctor | ||
| ) |
Definition at line 1422 of file CGObjC.cpp.
References AutoreleaseResult, Builder, clang::CodeGen::CodeGenTypes::ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::ObjCMethodDecl::createImplicitParams(), clang::CodeGen::AggValueSlot::DoesNotNeedGCBarriers, EmitAggExpr(), emitCXXDestructMethod(), EmitLValueForIvar(), FinishFunction(), clang::CodeGen::AggValueSlot::forLValue(), clang::CodeGen::RValue::get(), clang::ObjCImplDecl::getClassInterface(), clang::CodeGen::CodeGenModule::getContext(), clang::ASTContext::getObjCIdType(), clang::CodeGen::CodeGenModule::getTypes(), clang::ObjCImplementationDecl::inits(), clang::CodeGen::AggValueSlot::IsDestructed, clang::CodeGen::AggValueSlot::IsNotAliased, LoadObjCSelf(), StartObjCMethod(), and TypeOfSelfObject().
| void CodeGenFunction::GenerateObjCGetter | ( | ObjCImplementationDecl * | IMP, |
| const ObjCPropertyImplDecl * | PID | ||
| ) |
GenerateObjCGetter - Synthesize an Objective-C property getter function.
Generate an Objective-C property getter function.
The given Decl must be an ObjCImplementationDecl. @synthesize is illegal within a category.
Definition at line 810 of file CGObjC.cpp.
References FinishFunction(), GenerateObjCAtomicGetterCopyHelperFunction(), generateObjCGetterBody(), clang::ObjCImplDecl::getClassInterface(), clang::ObjCPropertyDecl::getGetterMethodDecl(), clang::ObjCPropertyImplDecl::getPropertyDecl(), and StartObjCMethod().
| void CodeGenFunction::generateObjCGetterBody | ( | const ObjCImplementationDecl * | classImpl, |
| const ObjCPropertyImplDecl * | propImpl, | ||
| const ObjCMethodDecl * | GetterMothodDecl, | ||
| llvm::Constant * | AtomicHelperFn | ||
| ) |
Definition at line 879 of file CGObjC.cpp.
References clang::CodeGen::CallArgList::add(), AutoreleaseResult, clang::ASTContext::BoolTy, Builder, clang::CodeGen::CodeGenTypes::ConvertType(), ConvertType(), clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStore(), EmitAggregateCopy(), EmitARCLoadWeak(), emitARCRetainLoadOfScalar(), EmitCall(), emitCPPObjectAtomicGetterCall(), EmitIvarOffset(), EmitLoadOfComplex(), EmitLoadOfLValue(), EmitLValueForIvar(), EmitReturnStmt(), EmitStoreOfComplex(), emitStructGetterCall(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), GetAddrOfLocalVar(), clang::ObjCImplDecl::getClassInterface(), clang::ObjCMethodDecl::getCmdDecl(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), getEvaluationKind(), clang::ObjCPropertyImplDecl::getGetterCXXConstructor(), clang::ObjCPropertyDecl::getGetterMethodDecl(), getLangOpts(), getLLVMContext(), clang::Qualifiers::getObjCLifetime(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::Address::getPointer(), clang::ObjCPropertyImplDecl::getPropertyDecl(), clang::CodeGen::CGObjCRuntime::GetPropertyGetFunction(), clang::ObjCPropertyImplDecl::getPropertyIvarDecl(), clang::CodeGen::LValue::getQuals(), clang::ObjCMethodDecl::getReturnType(), clang::CodeGen::RValue::getScalarVal(), clang::ValueDecl::getType(), clang::ObjCPropertyDecl::getType(), getTypes(), hasTrivialGetExpr(), clang::Type::isReferenceType(), LoadObjCSelf(), MakeAddrLValue(), clang::Qualifiers::OCL_Weak, ReturnValue, clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, clang::CodeGen::TEK_Scalar, clang::ASTContext::toBits(), clang::CodeGen::Type, TypeOfSelfObject(), and clang::CodeGen::CodeGenTypeCache::VoidPtrTy.
Referenced by GenerateObjCGetter().
| void CodeGenFunction::GenerateObjCMethod | ( | const ObjCMethodDecl * | OMD | ) |
Generate an Objective-C method.
An Objective-C method is a C function with its pointer, name, and types registered in the class struture.
Definition at line 572 of file CGObjC.cpp.
References clang::CodeGen::CodeGenPGO::assignRegionCounters(), CurFn, EmitCompoundStmtWithoutScope(), FinishFunction(), clang::ObjCMethodDecl::getBody(), clang::Decl::getBodyRBrace(), clang::ObjCMethodDecl::getClassInterface(), incrementProfileCounter(), and StartObjCMethod().
Referenced by clang::CodeGen::CodeGenModule::EmitTopLevelDecl().
| void CodeGenFunction::GenerateObjCSetter | ( | ObjCImplementationDecl * | IMP, |
| const ObjCPropertyImplDecl * | PID | ||
| ) |
GenerateObjCSetter - Synthesize an Objective-C property setter function for the given property.
Generate an Objective-C property setter function.
The given Decl must be an ObjCImplementationDecl. @synthesize is illegal within a category.
Definition at line 1341 of file CGObjC.cpp.
References FinishFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), generateObjCSetterBody(), clang::ObjCImplDecl::getClassInterface(), clang::ObjCPropertyImplDecl::getPropertyDecl(), clang::ObjCPropertyDecl::getSetterMethodDecl(), and StartObjCMethod().
| void CodeGenFunction::generateObjCSetterBody | ( | const ObjCImplementationDecl * | classImpl, |
| const ObjCPropertyImplDecl * | propImpl, | ||
| llvm::Constant * | AtomicHelperFn | ||
| ) |
Definition at line 1163 of file CGObjC.cpp.
References clang::CodeGen::CallArgList::add(), clang::ASTContext::BoolTy, Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStore(), EmitCall(), emitCPPObjectAtomicSetterCall(), EmitIvarOffset(), EmitLValueForIvar(), EmitStmt(), emitStructSetterCall(), clang::CodeGen::CodeGenModule::ErrorUnsupported(), clang::CodeGen::CGCallee::forDirect(), clang::CodeGen::RValue::get(), GetAddrOfLocalVar(), clang::ObjCImplDecl::getClassInterface(), clang::ObjCMethodDecl::getCmdDecl(), getContext(), getLLVMContext(), clang::QualType::getNonReferenceType(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::CodeGen::CGObjCRuntime::GetOptimizedPropertySetFunction(), clang::ObjCPropertyImplDecl::getPropertyDecl(), clang::ObjCPropertyImplDecl::getPropertyIvarDecl(), clang::CodeGen::CGObjCRuntime::GetPropertySetFunction(), clang::ObjCMethodDecl::getSelfDecl(), clang::ObjCPropertyImplDecl::getSetterCXXAssignment(), clang::ObjCPropertyDecl::getSetterMethodDecl(), clang::Expr::getType(), clang::ValueDecl::getType(), getTypes(), clang::QualType::getUnqualifiedType(), clang::ASTContext::hasSameUnqualifiedType(), hasTrivialSetExpr(), LoadObjCSelf(), clang::OK_Ordinary, clang::ImplicitCastExpr::OnStack, clang::ObjCMethodDecl::param_begin(), clang::CodeGen::Type, TypeOfSelfObject(), UseOptimizedSetter(), clang::VK_LValue, clang::VK_RValue, clang::CodeGen::CodeGenTypeCache::VoidPtrTy, and clang::CodeGen::CodeGenTypeCache::VoidTy.
Referenced by GenerateObjCSetter().
| llvm::Function * CodeGenFunction::GenerateOpenMPCapturedStmtFunction | ( | const CapturedStmt & | S | ) |
Definition at line 419 of file CGStmtOpenMP.cpp.
References clang::CodeGen::CodeGenPGO::assignRegionCounters(), CapturedStmtInfo, clang::CodeGen::Decl, disableDebugInfo(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody(), EmitLoadOfScalar(), emitOutlinedFunctionPrologue(), FinishFunction(), GetAddrOfLocalVar(), clang::CapturedDecl::getBody(), clang::Decl::getBodyRBrace(), clang::CapturedStmt::getCapturedDecl(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getDebugInfo(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getHelperName(), clang::CodeGen::Address::getType(), I, clang::codegenoptions::LimitedDebugInfo, and MakeAddrLValue().
Referenced by emitOutlinedOrderedFunction().
| void CodeGenFunction::GenerateOpenMPCapturedVars | ( | const CapturedStmt & | S, |
| SmallVectorImpl< llvm::Value * > & | CapturedVars | ||
| ) |
Definition at line 159 of file CGStmtOpenMP.cpp.
References clang::CapturedStmt::capture_init_begin(), clang::CapturedStmt::capture_init_end(), clang::CapturedStmt::captures(), CreateMemTemp(), E, EmitLoadOfLValue(), EmitLValue(), EmitScalarConversion(), EmitStoreThroughLValue(), clang::RecordDecl::field_begin(), clang::CodeGen::RValue::get(), clang::CodeGen::LValue::getAddress(), clang::CapturedStmt::getCapturedRecordDecl(), getContext(), clang::CodeGen::Address::getPointer(), clang::CodeGen::RValue::getScalarVal(), I, MakeAddrLValue(), and MakeNaturalAlignAddrLValue().
Referenced by emitCommonOMPParallelDirective(), emitCommonOMPTargetDirective(), and emitCommonOMPTeamsDirective().
| llvm::Function * CodeGenFunction::GenerateSEHFilterFunction | ( | CodeGenFunction & | ParentCGF, |
| const SEHExceptStmt & | Except | ||
| ) |
Create a stub filter function that will ultimately hold the code of the filter expression.
The EH preparation passes in LLVM will outline the code from the main function body into this stub.
Definition at line 1690 of file CGException.cpp.
References Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateStore(), CurFn, EmitScalarExpr(), FinishFunction(), getContext(), clang::SEHExceptStmt::getFilterExpr(), clang::Stmt::getLocEnd(), clang::Expr::getType(), clang::Type::isSignedIntegerType(), ReturnValue, and startOutlinedSEHHelper().
Referenced by EnterSEHTryStmt().
| llvm::Function * CodeGenFunction::GenerateSEHFinallyFunction | ( | CodeGenFunction & | ParentCGF, |
| const SEHFinallyStmt & | Finally | ||
| ) |
Definition at line 1707 of file CGException.cpp.
References CurFn, EmitStmt(), FinishFunction(), clang::SEHFinallyStmt::getBlock(), clang::Stmt::getLocEnd(), and startOutlinedSEHHelper().
Referenced by EnterSEHTryStmt().
| void CodeGenFunction::generateThunk | ( | llvm::Function * | Fn, |
| const CGFunctionInfo & | FnInfo, | ||
| GlobalDecl | GD, | ||
| const ThunkInfo & | Thunk | ||
| ) |
Generate a thunk for the given method.
Definition at line 399 of file CGVTables.cpp.
References clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), CGM, clang::CodeGen::ApplyDebugLocation::CreateArtificial(), EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CodeGen::CodeGenModule::getTypes(), StartThunk(), and clang::CodeGen::Type.
| llvm::Function * CodeGenFunction::GenerateVarArgsThunk | ( | llvm::Function * | Fn, |
| const CGFunctionInfo & | FnInfo, | ||
| GlobalDecl | GD, | ||
| const ThunkInfo & | Thunk | ||
| ) |
Definition at line 142 of file CGVTables.cpp.
References Builder, CGM, CurFn, clang::CodeGen::RValue::get(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::Type::getAs(), clang::CodeGen::CodeGenModule::getClassPointerAlignment(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::GlobalDecl::getDecl(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::CXXMethodDecl::getParent(), clang::CodeGen::Address::getPointer(), clang::CodeGen::RValue::getScalarVal(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenModule::getTypes(), I, clang::ReturnAdjustment::isEmpty(), clang::CodeGen::CGFunctionInfo::isVariadic(), PerformReturnAdjustment(), clang::CodeGen::CGCXXABI::performThisAdjustment(), clang::ThunkInfo::Return, clang::CodeGen::CodeGenModule::ReturnTypeUsesSRet(), clang::ThunkInfo::This, and clang::CodeGen::Type.
getAccessedFieldNo - Given an encoded value and a result number, return the input field number being accessed.
Definition at line 553 of file CGExpr.cpp.
| Address CodeGenFunction::GetAddressOfBaseClass | ( | Address | Value, |
| const CXXRecordDecl * | Derived, | ||
| CastExpr::path_const_iterator | PathBegin, | ||
| CastExpr::path_const_iterator | PathEnd, | ||
| bool | NullCheckValue, | ||
| SourceLocation | Loc | ||
| ) |
GetAddressOfBaseClass - This function will add the necessary delta to the load of 'this' and returns address of the base class.
Definition at line 265 of file CGClass.cpp.
References ApplyNonVirtualAndVirtualOffset(), Builder, CGM, clang::CodeGen::CodeGenModule::computeNonVirtualBaseClassOffset(), ConvertType(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitBlock(), EmitTypeCheck(), clang::CodeGen::Address::getAlignment(), clang::ASTContext::getASTRecordLayout(), clang::CodeGen::CodeGenModule::getClassPointerAlignment(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::Address::getPointer(), clang::ASTContext::getRecordType(), clang::ASTRecordLayout::getVBaseClassOffset(), clang::CodeGen::CGCXXABI::GetVirtualBaseClassOffset(), clang::Decl::hasAttr(), clang::CharUnits::isZero(), sanitizePerformTypeCheck(), clang::SanitizerSet::set(), TCK_Upcast, TCK_UpcastToVirtualBase, and clang::CodeGen::Type.
Referenced by EmitMaterializeTemporaryExpr().
| Address CodeGenFunction::GetAddressOfDerivedClass | ( | Address | Value, |
| const CXXRecordDecl * | Derived, | ||
| CastExpr::path_const_iterator | PathBegin, | ||
| CastExpr::path_const_iterator | PathEnd, | ||
| bool | NullCheckValue | ||
| ) |
Definition at line 372 of file CGClass.cpp.
References Builder, CGM, ConvertType(), createBasicBlock(), clang::CodeGen::CGBuilderTy::CreateBitCast(), EmitBlock(), clang::ASTContext::getCanonicalType(), clang::CodeGen::CodeGenModule::getClassPointerAlignment(), getContext(), clang::CodeGen::CodeGenModule::GetNonVirtualBaseClassOffset(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::Int8PtrTy, and clang::CodeGen::Type.
| Address CodeGenFunction::GetAddressOfDirectBaseInCompleteClass | ( | Address | This, |
| const CXXRecordDecl * | Derived, | ||
| const CXXRecordDecl * | Base, | ||
| bool | BaseIsVirtual | ||
| ) |
GetAddressOfBaseOfCompleteClass - Convert the given pointer to a complete class to the given direct base.
Gets the address of a direct base class within a complete object.
This should only be used for (1) non-virtual bases or (2) virtual bases when the type is known to be complete (e.g. in complete destructors).
The object pointed to by 'This' is assumed to be non-null.
Definition at line 197 of file CGClass.cpp.
References Builder, ConvertType(), clang::CodeGen::CGBuilderTy::CreateConstInBoundsByteGEP(), clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::ASTContext::getASTRecordLayout(), clang::ASTRecordLayout::getBaseClassOffset(), getContext(), clang::CodeGen::Address::getElementType(), clang::ASTRecordLayout::getVBaseClassOffset(), and clang::CodeGen::CodeGenTypeCache::Int8Ty.
Referenced by EmitBaseInitializer().
Definition at line 1064 of file CGBlocks.cpp.
References BlockInfo, Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), emitBlockByrefAddress(), EmitLoadOfReference(), clang::CodeGen::CGBlockInfo::Capture::fieldType(), clang::Type::getAs(), getBlockByrefInfo(), clang::CodeGen::CGBlockInfo::getCapture(), clang::CodeGen::CGBlockInfo::Capture::getIndex(), clang::NamedDecl::getName(), clang::CodeGen::CGBlockInfo::Capture::getOffset(), clang::CodeGen::CGBlockInfo::Capture::isConstant(), and LoadBlockStruct().
Referenced by EmitLambdaBlockInvokeBody().
| llvm::BlockAddress * CodeGenFunction::GetAddrOfLabel | ( | const LabelDecl * | L | ) |
Definition at line 1691 of file CodeGenFunction.cpp.
References CurFn, clang::CodeGen::CodeGenFunction::JumpDest::getBlock(), GetIndirectGotoBlock(), and getJumpDestForLabel().
GetAddrOfLocalVar - Return the address of a local variable.
Definition at line 2090 of file CodeGenFunction.h.
Referenced by emitCombinerOrInitializer(), emitCopyprivateCopyFunction(), emitCopyToScratchpad(), EmitCoroutineBody(), emitDestructorsFunction(), clang::CodeGen::CGObjCRuntime::EmitInitOfCatchParam(), emitInterWarpCopyFunction(), EmitMemberInitializer(), EmitMustTailThunk(), EmitObjCMessageExpr(), EmitOMPAggregateReduction(), EmitOMPFirstprivateClause(), EmitOMPLastprivateClauseFinal(), EmitOMPLastprivateClauseInit(), EmitOMPPrivateClause(), EmitOMPReductionClauseInit(), EmitOMPUseDevicePtrClause(), emitOutlinedFunctionPrologue(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceFiniFunction(), emitReduceInitFunction(), emitReduceScratchpadFunction(), emitShuffleAndReduceFunction(), emitTaskDupFunction(), emitTaskPrivateMappingFunction(), clang::CodeGen::CGCXXABI::EmitThisParam(), clang::CodeGen::emitThreadPrivateVarDefinition(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCapturedStmtFunction(), GenerateCopyHelperFunction(), GenerateDestroyHelperFunction(), generateObjCGetterBody(), generateObjCSetterBody(), GenerateOpenMPCapturedStmtFunction(), mapParam(), and tryRemoveRetainOfSelf().
|
inline |
Retrieves the default cleanup kind for an ARC cleanup.
Except under -fobjc-arc-eh, ARC cleanups are normal-only.
Definition at line 3352 of file CodeGenFunction.h.
References CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::NormalAndEHCleanup, and clang::CodeGen::NormalCleanup.
Referenced by emitAutoVarTypeCleanup(), EmitAutoVarWithLifetime(), EmitObjCConsumeObject(), EmitParmDecl(), pushTemporaryCleanup(), and StartObjCMethod().
|
inline |
Get the index of the current ArrayInitLoopExpr, if any.
Definition at line 2120 of file CodeGenFunction.h.
| const BlockByrefInfo & CodeGenFunction::getBlockByrefInfo | ( | const VarDecl * | D | ) |
BuildByrefInfo - This routine changes a __block variable declared as T x into:
struct { void *__isa; void *__forwarding; int32_t __flags; int32_t __size; void *__copy_helper; // only if needed void *__destroy_helper; // only if needed void *__byref_variable_layout;// only if needed char padding[X]; // only if needed T x; } x
void *__copy_helper;
void *__destroy_helper;
void *__byref_variable_layout;
Definition at line 2189 of file CGBlocks.cpp.
References clang::CharUnits::alignTo(), clang::ASTContext::BlockRequiresCopying(), clang::CodeGen::BlockByrefInfo::ByrefAlignment, CGM, ConvertTypeForMem(), clang::serialized_diags::create(), clang::CodeGen::BlockByrefInfo::FieldIndex, clang::CodeGen::BlockByrefInfo::FieldOffset, clang::CharUnits::fromQuantity(), getContext(), clang::CodeGen::CodeGenModule::getDataLayout(), clang::ASTContext::getDeclAlign(), getLLVMContext(), clang::NamedDecl::getNameAsString(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::CodeGen::CodeGenTypeCache::getPointerSize(), clang::CharUnits::getQuantity(), clang::ValueDecl::getType(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::CodeGenTypeCache::Int8Ty, max(), clang::CodeGen::CodeGenTypeCache::PointerSizeInBytes, clang::CodeGen::Type, and clang::CodeGen::BlockByrefInfo::Type.
Referenced by EmitAutoVarAlloca(), emitBlockByrefAddress(), and GetAddrOfBlockDecl().
|
inline |
Definition at line 1545 of file CodeGenFunction.h.
References needsEHCleanup(), clang::CodeGen::NormalAndEHCleanup, and clang::CodeGen::NormalCleanup.
Referenced by emitCXXDestructMethod(), EnterDtorCleanups(), and pushDestroy().
|
inline |
Definition at line 1438 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getContext().
Referenced by AddDirectArgument(), BuildFunctionArgList(), clang::CodeGen::CGCXXABI::buildThisParam(), CanSkipVTablePointerInitialization(), castToBase(), castValueFromUintptr(), CheckAggExprForMemSetUse(), commonEmitCXXMemberOrOperatorCall(), ConstantFoldsToSimpleInteger(), ConvertType(), CreateIRTemp(), CreateMemTemp(), createReferenceTemporary(), CreateTempAlloca(), EmitAArch64BuiltinExpr(), EmitAArch64TblBuiltinExpr(), emitAddrOfFieldStorage(), emitAddrOfImagComponent(), emitAddrOfVarFromArray(), EmitAggregateCopy(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), emitAlignedClause(), EmitARMBuiltinExpr(), EmitArrayDelete(), emitArrayLength(), emitArraySubscriptGEP(), EmitAsanPrologueOrEpilogue(), EmitAsmStmt(), EmitAtomicExpr(), EmitAtomicStore(), EmitAutoVarAlloca(), EmitAutoVarInit(), EmitBaseInitializer(), EmitBinaryAtomicPost(), EmitBlockCallExpr(), EmitBlockCopyAndAutorelease(), EmitBuiltinNewDeleteCall(), emitByrefStructureInit(), EmitCallAndReturnForThunk(), EmitCallArgs(), EmitCapturedFieldLValue(), EmitCaseStmt(), EmitCaseStmtRange(), EmitCoawaitLValue(), EmitCommonNeonBuiltinExpr(), EmitCompoundStmt(), EmitCoroutineBody(), EmitCoyieldLValue(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), EmitCXXAggrConstructorCall(), EmitCXXConstructExpr(), EmitCXXConstructorCall(), EmitCXXDeleteExpr(), EmitCXXGlobalVarDeclInit(), EmitCXXMemberCallExpr(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitCXXNewAllocSize(), EmitCXXNewExpr(), EmitCXXTypeidExpr(), EmitDeclInvariant(), EmitDeleteCall(), emitDestroy(), emitDispatchForLoopBounds(), EmitEndEHSpec(), clang::CodeGen::emitForNext(), EmitFunctionDeclLValue(), EmitGlobalVarDeclLValue(), EmitInheritedCXXConstructorCall(), clang::CodeGen::ReductionCodeGen::emitInitialization(), EmitLambdaBlockInvokeBody(), EmitLambdaDelegatingInvokeBody(), EmitMemberInitializer(), EmitNewArrayInitializer(), emitNonZeroVLAInit(), EmitNullabilityCheck(), EmitNullBaseClassInitialization(), EmitNullInitialization(), EmitObjCBoxedExpr(), EmitObjCForCollectionStmt(), EmitObjCMRRAutoreleasePoolPop(), EmitObjCMRRAutoreleasePoolPush(), emitOffloadingArrays(), EmitOMPAggregateAssign(), EmitOMPAggregateInit(), EmitOMPAggregateReduction(), EmitOMPCopyinClause(), EmitOMPReductionClauseInit(), EmitOMPTaskDirective(), EmitOMPTaskLoopBasedDirective(), EmitOMPUseDevicePtrClause(), EmitParmDecl(), emitPartialArrayDestroy(), emitPointerArithmetic(), emitPrivatesInit(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitReturnStmt(), EmitSEHExceptionCodeSave(), EmitStartEHSpec(), EmitStaticVarDecl(), emitStructGetterCall(), emitStructSetterCall(), EmitSwitchStmt(), EmitSynthesizedCXXCopyCtor(), EmitSynthesizedCXXCopyCtorCall(), EmitTargetBuiltinExpr(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitThreadIDAddress(), EmitTypeCheck(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), EmitVAListRef(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), EmitVariablyModifiedType(), EmitVTablePtrCheck(), EmitX86_64VAArgFromMemory(), EmitX86BuiltinExpr(), EnterSEHTryStmt(), clang::CodeGen::CGCXXABI::ErrorUnsupportedABI(), EvaluateExprAsBool(), forConstantArrayExpansion(), GenerateBlockFunction(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCode(), GenerateCopyHelperFunction(), GenerateCXXGlobalDtorsFunc(), GenerateCXXGlobalInitFunc(), GenerateCXXGlobalVarDeclInitFunc(), generateDestroyHelper(), GenerateDestroyHelperFunction(), GenerateObjCAtomicGetterCopyHelperFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), generateObjCGetterBody(), generateObjCSetterBody(), GenerateOpenMPCapturedVars(), GenerateSEHFilterFunction(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), GetAddressOfDirectBaseInCompleteClass(), getBlockByrefInfo(), getItaniumDynamicCastFn(), getNaturalTypeAlignment(), GetNumNonZeroBytesInInit(), getRangeForType(), getTypeSize(), getVLASize(), getVTablePointers(), GetVTTParameter(), InitCapturedStruct(), isCheapEnoughToEvaluateUnconditionally(), loadToBegin(), LookupNeonLLVMIntrinsic(), LValueIsSuitableForInlineAtomic(), MakeAddrLValue(), MakeAtomicCmpXchgValue(), MakeBinaryAtomicValue(), MakeNaturalAlignAddrLValue(), performTypeAdjustment(), setBlockContextParameter(), ShouldEmitVTableTypeCheckedLoad(), StartFunction(), startOutlinedSEHHelper(), StartThunk(), and TypeOfSelfObject().
|
inline |
Get the profiler's current count.
This is generally the count for the most recently incremented counter.
Definition at line 1204 of file CodeGenFunction.h.
Referenced by EmitBlockWithFallThrough(), EmitBranchOnBoolExpr(), EmitDoStmt(), and EmitObjCForCollectionStmt().
|
inline |
Definition at line 1439 of file CodeGenFunction.h.
Referenced by clang::CodeGen::ApplyDebugLocation::ApplyDebugLocation(), clang::CodeGen::ApplyInlineDebugLocation::ApplyInlineDebugLocation(), EmitAutoVarAlloca(), EmitDecl(), EmitDeclRefExprDbgValue(), EmitObjCAutoreleasePoolStmt(), EmitObjCForCollectionStmt(), EmitParmDecl(), EmitStaticVarDecl(), EmitStopPoint(), FinishFunction(), GenerateBlockFunction(), GenerateOpenMPCapturedStmtFunction(), clang::CodeGen::CodeGenFunction::LexicalScope::LexicalScope(), setBlockContextParameter(), SourceLocToDebugLoc(), StartFunction(), clang::CodeGen::ApplyInlineDebugLocation::~ApplyInlineDebugLocation(), and clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope().
| CodeGenFunction::Destroyer * CodeGenFunction::getDestroyer | ( | QualType::DestructionKind | destructionKind | ) |
Definition at line 1451 of file CGDecl.cpp.
References destroyARCStrongPrecise, destroyARCWeak, destroyCXXObject, clang::QualType::DK_cxx_destructor, clang::QualType::DK_none, clang::QualType::DK_objc_strong_lifetime, and clang::QualType::DK_objc_weak_lifetime.
Referenced by EmitArrayDelete(), emitAutoVarTypeCleanup(), emitCXXDestructMethod(), EmitDeclDestroy(), EmitNewArrayInitializer(), clang::CodeGen::emitThreadPrivateVarDefinition(), enterBlockScope(), EnterDtorCleanups(), pushDestroy(), and pushEHDestroy().
| llvm::BasicBlock * CodeGenFunction::getEHDispatchBlock | ( | EHScopeStack::stable_iterator | scope | ) |
Definition at line 583 of file CGException.cpp.
References clang::CodeGen::EHCatchScope::Handler::Block, clang::CodeGen::EHScope::Catch, clang::CodeGen::EHScope::Cleanup, createBasicBlock(), EHStack, clang::CodeGen::EHScope::Filter, clang::CodeGen::EHScopeStack::find(), clang::CodeGen::EHPersonality::get(), clang::CodeGen::EHScope::getCachedEHDispatchBlock(), getEHResumeBlock(), clang::CodeGen::EHCatchScope::getHandler(), clang::CodeGen::EHScope::getKind(), getMSVCDispatchBlock(), clang::CodeGen::EHCatchScope::getNumHandlers(), getTerminateHandler(), clang::CodeGen::EHCatchScope::Handler::isCatchAll(), clang::CodeGen::EHScope::PadEnd, clang::CodeGen::EHScope::setCachedEHDispatchBlock(), clang::CodeGen::EHScopeStack::stable_end(), clang::CodeGen::EHScope::Terminate, and clang::CodeGen::EHPersonality::usesFuncletPads().
Referenced by emitCatchDispatchBlock(), emitCatchPadBlock(), EmitLandingPad(), and getInvokeDestImpl().
| llvm::BasicBlock * CodeGenFunction::getEHResumeBlock | ( | bool | isCleanup | ) |
Definition at line 1364 of file CGException.cpp.
References Builder, clang::CodeGen::EHPersonality::CatchallRethrowFn, CGM, createBasicBlock(), EHResumeBlock, EmitRuntimeCall(), clang::CodeGen::EHPersonality::get(), getCatchallRethrowFn(), getExceptionFromSlot(), getSelectorFromSlot(), and clang::CodeGen::Type.
Referenced by emitFilterDispatchBlock(), and getEHDispatchBlock().
| Address CodeGenFunction::getEHSelectorSlot | ( | ) |
Definition at line 396 of file CGException.cpp.
References CreateTempAlloca(), EHSelectorSlot, clang::CharUnits::fromQuantity(), and clang::CodeGen::CodeGenTypeCache::Int32Ty.
Referenced by EmitLandingPad(), and getSelectorFromSlot().
|
static |
hasAggregateLLVMType - Return true if the specified AST type will map into an aggregate LLVM type or is void.
Definition at line 195 of file CodeGenFunction.cpp.
References clang::Auto, clang::QualType::getCanonicalType(), clang::Type::getTypeClass(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, clang::CodeGen::TEK_Scalar, and clang::ast_matchers::type.
Referenced by convertToComplexValue(), convertToType(), EmitAnyExpr(), EmitAnyExprToMem(), EmitDeclInit(), EmitExprAsInit(), EmitInitializerForField(), emitInitWithReductionInitializer(), EmitMaterializeTemporaryExpr(), emitOMPSimpleStore(), EmitReturnStmt(), generateObjCGetterBody(), hasAggregateEvaluationKind(), hasScalarEvaluationKind(), InitCatchParam(), and StoreAnyExprIntoOneUnit().
| llvm::Value * CodeGenFunction::getExceptionFromSlot | ( | ) |
Returns the contents of the function's exception object and selector slots.
Definition at line 402 of file CGException.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateLoad(), and getExceptionSlot().
Referenced by emitFilterDispatchBlock(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), getEHResumeBlock(), getTerminateHandler(), and InitCatchParam().
| Address CodeGenFunction::getExceptionSlot | ( | ) |
Returns a pointer to the function's exception object and selector slot, which is assigned in every landing pad.
Definition at line 390 of file CGException.cpp.
References CreateTempAlloca(), ExceptionSlot, clang::CodeGen::CodeGenTypeCache::getPointerAlign(), and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by EmitLandingPad(), and getExceptionFromSlot().
| llvm::BasicBlock * CodeGenFunction::GetIndirectGotoBlock | ( | ) |
Definition at line 1703 of file CodeGenFunction.cpp.
References createBasicBlock(), and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by EmitIndirectGotoStmt(), and GetAddrOfLabel().
|
inline |
Definition at line 1473 of file CodeGenFunction.h.
References EHStack, getInvokeDestImpl(), and clang::CodeGen::EHScopeStack::requiresLandingPad().
| llvm::BasicBlock * CodeGenFunction::getInvokeDestImpl | ( | ) |
Definition at line 692 of file CGException.cpp.
References clang::CodeGen::EHScopeStack::begin(), CGM, CurFn, currentFunctionUsesSEHTry(), EHStack, EmitLandingPad(), clang::CodeGen::EHScopeStack::empty(), clang::CodeGen::EHPersonality::get(), clang::CodeGen::EHScope::getCachedLandingPad(), getEHDispatchBlock(), clang::CodeGen::EHScopeStack::getInnermostEHScope(), clang::CodeGen::CodeGenModule::getLangOpts(), getOpaquePersonalityFn(), isNonEHScope(), clang::CodeGen::EHScopeStack::requiresLandingPad(), and clang::CodeGen::EHPersonality::usesFuncletPads().
Referenced by getInvokeDest().
| CodeGenFunction::JumpDest CodeGenFunction::getJumpDestForLabel | ( | const LabelDecl * | S | ) |
getBasicBlockForLabel - Return the LLVM basicblock that the specified label maps to.
Definition at line 491 of file CGStmt.cpp.
References createBasicBlock(), clang::NamedDecl::getName(), clang::CodeGen::EHScopeStack::stable_iterator::invalid(), clang::CodeGen::CodeGenFunction::JumpDest::isValid(), and NextCleanupDestIndex.
Referenced by EmitGotoStmt(), EmitIndirectGotoStmt(), and GetAddrOfLabel().
|
inline |
The given basic block lies in the current EH scope, but may be a target of a potentially scope-crossing jump; get a stable handle to which we can perform this jump later.
Definition at line 805 of file CodeGenFunction.h.
References EHStack, clang::CodeGen::EHScopeStack::getInnermostNormalCleanup(), and NextCleanupDestIndex.
Referenced by EmitCoroutineBody(), EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), EmitLabel(), EmitObjCForCollectionStmt(), EmitOMPInnerLoop(), EmitOMPLoopBody(), EmitSEHTryStmt(), EmitSwitchStmt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitWhileStmt(), clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), getJumpDestInCurrentScope(), and StartFunction().
|
inline |
The given basic block lies in the current EH scope, but may be a target of a potentially scope-crossing jump; get a stable handle to which we can perform this jump later.
Definition at line 814 of file CodeGenFunction.h.
References createBasicBlock(), getJumpDestInCurrentScope(), and Name.
|
inline |
Definition at line 1451 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getLangOpts().
Referenced by AddInitializerToStaticVarDecl(), CheckAggExprForMemSetUse(), EmitAggregateCopy(), EmitAsmStmt(), clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitAutoVarInit(), EmitBlockCallExpr(), EmitCXXAggrConstructorCall(), EmitCXXConstructExpr(), EmitCXXGlobalVarDeclInit(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitDestructorBody(), EmitGlobalVarDeclLValue(), EmitNullInitialization(), emitNumTeamsForTargetDirective(), emitNumThreadsForTargetDirective(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), EmitObjCMessageExpr(), EmitObjCThrowOperand(), EmitOMPCopyinClause(), emitPointerArithmetic(), EmitReturnStmt(), EmitStaticVarDecl(), EmitVTablePtrCheckForCast(), GenerateBlockFunction(), GenerateCode(), GenerateCopyHelperFunction(), GenerateCXXGlobalInitFunc(), GenerateDestroyHelperFunction(), GenerateObjCAtomicGetterCopyHelperFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), generateObjCGetterBody(), getNaturalTypeAlignment(), getRangeForType(), getTerminateHandler(), getTerminateLandingPad(), needsEHCleanup(), pushTemporaryCleanup(), setBlockContextParameter(), StartFunction(), tryEmitARCRetainLoadOfScalar(), and ~CodeGenFunction().
|
inline |
Definition at line 1481 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getLLVMContext().
Referenced by AddDirectArgument(), createBasicBlock(), EmitAArch64BuiltinExpr(), EmitARMBuiltinExpr(), EmitAsmStmt(), emitAutoreleasedReturnValueMarker(), EmitAutoVarInit(), EmitBinaryAtomicPost(), EmitBranchOnBoolExpr(), EmitCastToVoidPtr(), emitCatchPadBlock(), EmitCheckedInBoundsGEP(), emitCheckHandlerCall(), EmitCommonNeonBuiltinExpr(), EmitCoroutineIntrinsic(), EmitObjCCollectionLiteral(), emitRangedBuiltin(), EmitSwitchStmt(), EmitTypeCheck(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), EmitVTablePtrCheck(), EmitX86BuiltinExpr(), EmitX86MaskedCompare(), generateObjCGetterBody(), generateObjCSetterBody(), getAsmSrcLocInfo(), getBlockByrefInfo(), getItaniumDynamicCastFn(), getUnreachableBlock(), MakeAtomicCmpXchgValue(), MakeBinaryAtomicValue(), and StartFunction().
| llvm::BasicBlock * CodeGenFunction::getMSVCDispatchBlock | ( | EHScopeStack::stable_iterator | scope | ) |
Definition at line 633 of file CGException.cpp.
References Builder, clang::CodeGen::EHScope::Catch, clang::CodeGen::EHScope::Cleanup, createBasicBlock(), EHStack, clang::CodeGen::EHScope::Filter, clang::CodeGen::EHScopeStack::find(), clang::CodeGen::EHScope::getCachedEHDispatchBlock(), clang::CodeGen::EHScope::getKind(), getTerminateHandler(), clang::CodeGen::EHScope::PadEnd, clang::CodeGen::EHScope::setCachedEHDispatchBlock(), clang::CodeGen::EHScopeStack::stable_end(), and clang::CodeGen::EHScope::Terminate.
Referenced by getEHDispatchBlock().
| CharUnits CodeGenFunction::getNaturalPointeeTypeAlignment | ( | QualType | T, |
| LValueBaseInfo * | BaseInfo = nullptr |
||
| ) |
Definition at line 120 of file CodeGenFunction.cpp.
References getNaturalTypeAlignment(), and clang::Type::getPointeeType().
Referenced by EmitNVPTXBuiltinExpr().
| CharUnits CodeGenFunction::getNaturalTypeAlignment | ( | QualType | T, |
| LValueBaseInfo * | BaseInfo = nullptr, |
||
| bool | forPointeeType = false |
||
| ) |
Definition at line 126 of file CodeGenFunction.cpp.
References clang::CodeGen::AttributedType, CGM, clang::CharUnits::fromQuantity(), clang::Type::getAs(), clang::Type::getAsCXXRecordDecl(), clang::CodeGen::CodeGenModule::getClassPointerAlignment(), getContext(), getLangOpts(), clang::QualType::getQualifiers(), clang::CharUnits::getQuantity(), clang::ASTContext::getTypeAlignInChars(), clang::Qualifiers::hasUnaligned(), clang::ASTContext::isAlignmentRequired(), clang::Type::isIncompleteType(), clang::CharUnits::One(), clang::ASTContext::toCharUnitsFromBits(), and clang::CodeGen::Type.
Referenced by EmitCXXConstructorCall(), EmitCXXMemberDataPointerAddress(), emitOMPArraySectionBase(), EmitOMPLastprivateClauseFinal(), emitTaskDupFunction(), clang::CodeGen::emitTaskInit(), getNaturalPointeeTypeAlignment(), MakeNaturalAlignAddrLValue(), MakeNaturalAlignPointeeAddrLValue(), and StartFunction().
| Address CodeGenFunction::getNormalCleanupDestSlot | ( | ) |
Definition at line 1252 of file CGCleanup.cpp.
References Builder, and clang::CharUnits::fromQuantity().
Referenced by ResolveAllBranchFixups(), and TransitionToCleanupSwitch().
| CodeGenFunction::JumpDest CodeGenFunction::getOMPCancelDestination | ( | OpenMPDirectiveKind | Kind | ) |
Definition at line 3733 of file CGStmtOpenMP.cpp.
References ReturnBlock.
Referenced by clang::CodeGen::emitBarrierCall(), and clang::CodeGen::emitCancellationPointCall().
|
inline |
getOpaqueLValueMapping - Given an opaque value expression (which must be mapped to an l-value), return its mapping.
Definition at line 2099 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::OpaqueValueMapping::shouldBindAsLValue().
|
inline |
getOpaqueRValueMapping - Given an opaque value expression (which must be mapped to an r-value), return its mapping.
Definition at line 2110 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::OpaqueValueMapping::shouldBindAsLValue().
|
inline |
Get the profiler's count for the given statement.
Definition at line 1190 of file CodeGenFunction.h.
Referenced by EmitBranchOnBoolExpr(), EmitCaseStmt(), EmitCaseStmtRange(), EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), EmitIfStmt(), EmitObjCForCollectionStmt(), EmitOMPInnerLoop(), EmitOMPSimdDirective(), EmitSwitchStmt(), and EmitWhileStmt().
| llvm::Value * CodeGenFunction::getSelectorFromSlot | ( | ) |
Definition at line 406 of file CGException.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateLoad(), and getEHSelectorSlot().
Referenced by emitCatchDispatchBlock(), emitFilterDispatchBlock(), and getEHResumeBlock().
|
inline |
Definition at line 1480 of file CodeGenFunction.h.
References Target.
Referenced by canEmitDelegateCallArgs(), createReferenceTemporary(), deactivateArgCleanupsBeforeCall(), EmitARMBuiltinExpr(), EmitAsmStmt(), EmitAtomicExpr(), EmitAutoVarAlloca(), EmitCommonNeonBuiltinExpr(), EmitDestructorBody(), EmitEndEHSpec(), emitGlobalDtorWithCXAAtExit(), EmitNVPTXDevicePrintfCallExpr(), EmitParmDecl(), EmitPPCBuiltinExpr(), EmitSignBit(), EmitStartEHSpec(), EmitTargetBuiltinExpr(), getAsmSrcLocInfo(), GetNumNonZeroBytesInInit(), and StartFunction().
|
inline |
Definition at line 1482 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getTargetCodeGenInfo().
Referenced by createReferenceTemporary(), CreateTempAlloca(), and EmitAsmStmt().
| llvm::BasicBlock * CodeGenFunction::getTerminateHandler | ( | ) |
getTerminateHandler - Return a handler (not a landing pad, just a catch handler) that just calls terminate.
This is used when a terminate scope encloses a try.
Definition at line 1331 of file CGException.cpp.
References Builder, CGM, clang::frontend::CPlusPlus, createBasicBlock(), CurrentFuncletPad, clang::CodeGen::CGCXXABI::emitTerminateForUnexpectedException(), clang::CodeGen::EHPersonality::get(), clang::CodeGen::CodeGenModule::getCXXABI(), getExceptionFromSlot(), getLangOpts(), clang::CodeGen::CodeGenModule::getLLVMContext(), and clang::CodeGen::EHPersonality::usesFuncletPads().
Referenced by getEHDispatchBlock(), and getMSVCDispatchBlock().
| llvm::BasicBlock * CodeGenFunction::getTerminateLandingPad | ( | ) |
getTerminateLandingPad - Return a landing pad that just calls terminate.
Definition at line 1297 of file CGException.cpp.
References Builder, CGM, clang::frontend::CPlusPlus, createBasicBlock(), CurFn, clang::CodeGen::CGCXXABI::emitTerminateForUnexpectedException(), clang::CodeGen::EHPersonality::get(), getCatchAllValue(), clang::CodeGen::CodeGenModule::getCXXABI(), getLangOpts(), getOpaquePersonalityFn(), clang::CodeGen::CodeGenTypeCache::Int32Ty, and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by EmitLandingPad().
|
inline |
Definition at line 1437 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getTypes().
Referenced by BuildFunctionArgList(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), EmitCXXConstructorCall(), EmitDeclDestroy(), EmitGlobalVarDeclLValue(), EmitLambdaDelegatingInvokeBody(), emitStructGetterCall(), emitStructSetterCall(), GenerateCXXGlobalDtorsFunc(), GenerateCXXGlobalInitFunc(), GenerateCXXGlobalVarDeclInitFunc(), generateObjCGetterBody(), generateObjCSetterBody(), GetNumNonZeroBytesInInit(), and isSimpleZero().
| llvm::Value * CodeGenFunction::getTypeSize | ( | QualType | Ty | ) |
Returns calculated size of the specified type.
Definition at line 139 of file CGStmtOpenMP.cpp.
References Builder, CGM, getContext(), clang::CodeGen::CodeGenModule::getSize(), getVLASize(), and clang::CodeGen::CodeGenTypeCache::SizeTy.
Referenced by EmitAArch64BuiltinExpr(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), EmitARMBuiltinExpr(), EmitAsmStmt(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), clang::CodeGen::emitTaskCall(), clang::CodeGen::emitTaskInit(), clang::CodeGen::getAddrOfArtificialThreadPrivate(), and LValueIsSuitableForInlineAtomic().
GetUndefRValue - Get an appropriate 'undef' rvalue for the given type.
Definition at line 983 of file CGExpr.cpp.
References clang::Type::castAs(), clang::ComplexType::getElementType(), clang::Type::isVoidType(), clang::CodeGen::TEK_Aggregate, clang::CodeGen::TEK_Complex, and clang::CodeGen::TEK_Scalar.
|
inline |
Definition at line 1465 of file CodeGenFunction.h.
References createBasicBlock(), and getLLVMContext().
Referenced by destroyOptimisticNormalEntry(), and clang::CodeGen::CodeGenFunction::FinallyInfo::enter().
| std::pair< llvm::Value *, QualType > CodeGenFunction::getVLASize | ( | const VariableArrayType * | vla | ) |
getVLASize - Returns an LLVM value that corresponds to the size, in non-variably-sized elements, of a variable length array type, plus that largest non-variably-sized element type.
Assumes that the type has already been emitted with EmitVariablyModifiedType.
Definition at line 1818 of file CodeGenFunction.cpp.
References Builder, getContext(), clang::ArrayType::getElementType(), clang::VariableArrayType::getSizeExpr(), and clang::CodeGen::CodeGenTypeCache::SizeTy.
Referenced by emitArrayLength(), EmitAutoVarAlloca(), EmitNullInitialization(), emitPointerArithmetic(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), getArrayIndexingBound(), getTypeSize(), and getVLASize().
| std::pair< llvm::Value *, QualType > CodeGenFunction::getVLASize | ( | QualType | vla | ) |
Definition at line 1811 of file CodeGenFunction.cpp.
References clang::ASTContext::getAsVariableArrayType(), getContext(), and getVLASize().
| CodeGenFunction::VPtrsVector CodeGenFunction::getVTablePointers | ( | const CXXRecordDecl * | VTableClass | ) |
Definition at line 2392 of file CGClass.cpp.
References clang::CharUnits::Zero().
Referenced by EmitVTableAssumptionLoads(), getVTablePointers(), and InitializeVTablePointers().
| void CodeGenFunction::getVTablePointers | ( | BaseSubobject | Base, |
| const CXXRecordDecl * | NearestVBase, | ||
| CharUnits | OffsetFromNearestVBase, | ||
| bool | BaseIsNonVirtualPrimaryBase, | ||
| const CXXRecordDecl * | VTableClass, | ||
| VisitedVirtualBasesSetTy & | VBases, | ||
| VPtrsVector & | vptrs | ||
| ) |
Definition at line 2403 of file CGClass.cpp.
References clang::CodeGen::Base, clang::CXXRecordDecl::bases(), clang::ASTContext::getASTRecordLayout(), clang::BaseSubobject::getBase(), clang::ASTRecordLayout::getBaseClassOffset(), clang::BaseSubobject::getBaseOffset(), getContext(), clang::ASTRecordLayout::getPrimaryBase(), clang::ASTRecordLayout::getVBaseClassOffset(), getVTablePointers(), I, clang::CXXRecordDecl::isDynamicClass(), and clang::CharUnits::Zero().
| llvm::Value * CodeGenFunction::GetVTablePtr | ( | Address | This, |
| llvm::Type * | VTableTy, | ||
| const CXXRecordDecl * | VTableClass | ||
| ) |
GetVTablePtr - Return the Value of the vtable pointer member pointed to by This.
Definition at line 2474 of file CGClass.cpp.
References Builder, CGM, clang::CodeGen::CGBuilderTy::CreateElementBitCast(), clang::CodeGen::CGBuilderTy::CreateLoad(), clang::CodeGen::CodeGenModule::DecorateInstructionWithInvariantGroup(), clang::CodeGen::CodeGenModule::DecorateInstructionWithTBAA(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), and clang::CodeGen::CodeGenModule::getTBAAInfoForVTablePtr().
Referenced by EmitCXXMemberOrOperatorMemberCallExpr(), EmitVTableAssumptionLoad(), and EmitVTablePtrCheckForCast().
| llvm::Value * CodeGenFunction::GetVTTParameter | ( | GlobalDecl | GD, |
| bool | ForVirtualBase, | ||
| bool | Delegating | ||
| ) |
GetVTTParameter - Return the VTT parameter that should be passed to a base constructor/destructor with virtual bases.
FIXME: VTTs are Itanium ABI-specific, so the definition should move to ItaniumCXXABI.cpp together with all the references to VTT.
Definition at line 429 of file CGClass.cpp.
References Builder, CGM, CurCodeDecl, CurGD, clang::CodeGen::CodeGenVTables::GetAddrOfVTT(), clang::ASTContext::getASTRecordLayout(), clang::ASTRecordLayout::getBaseClassOffset(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::GlobalDecl::getDecl(), clang::CodeGen::CodeGenVTables::getSubVTTIndex(), clang::ASTRecordLayout::getVBaseClassOffset(), clang::CodeGen::CodeGenModule::getVTables(), LoadCXXVTT(), and clang::CodeGen::CGCXXABI::NeedsVTTParameter().
Definition at line 1827 of file CodeGenFunction.h.
References getEvaluationKind(), and clang::CodeGen::TEK_Aggregate.
Referenced by EmitAggExpr(), EmitAggExprToLValue(), EmitAnyExprToTemp(), EmitCompoundStmtWithoutScope(), and clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::shouldBindAsLValue().
|
inline |
Return true if a label was seen in the current scope.
Definition at line 238 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::LexicalScope::hasLabels().
Referenced by EmitAutoVarAlloca().
Definition at line 1823 of file CodeGenFunction.h.
References getEvaluationKind(), and clang::CodeGen::TEK_Scalar.
Referenced by convertToScalarValue(), EmitAsmStmt(), EmitCallAndReturnForThunk(), EmitComplexToScalarConversion(), EmitForwardingCallToLambda(), EmitParmDecl(), EmitScalarConversion(), EmitScalarExpr(), isAggregateTypeForABI(), and StartFunction().
hasVolatileMember - returns true if aggregate type has a volatile member.
Definition at line 2056 of file CodeGenFunction.h.
References clang::Type::getAs(), and clang::RecordDecl::hasVolatileMember().
Referenced by EmitAggregateAssign(), and LValueIsSuitableForInlineAtomic().
|
inline |
HaveInsertPoint - True if an insertion point is defined.
If not, this indicates that the current code being emitted is unreachable.
Definition at line 1877 of file CodeGenFunction.h.
References Builder.
Referenced by AddInitializerToStaticVarDecl(), CleanupTy::Emit(), emitAlignedClause(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitAutoVarInit(), clang::CodeGen::emitBarrierCall(), EmitBlockWithFallThrough(), EmitBreakStmt(), clang::CodeGen::emitCancelCall(), clang::CodeGen::emitCancellationPointCall(), EmitCleanup(), EmitContinueStmt(), clang::CodeGen::emitCriticalRegion(), EmitDeclStmt(), clang::CodeGen::emitDoacrossInit(), clang::CodeGen::emitForDispatchInit(), clang::CodeGen::emitForOrderedIterationEnd(), clang::CodeGen::emitForStaticFinish(), emitForStaticInitCall(), EmitGotoStmt(), clang::CodeGen::emitInlinedDirective(), clang::CodeGen::emitMasterRegion(), EmitOMPCopyinClause(), EmitOMPFirstprivateClause(), EmitOMPLastprivateClauseFinal(), EmitOMPLastprivateClauseInit(), EmitOMPLinearClauseFinal(), EmitOMPLinearClauseInit(), EmitOMPPrivateClause(), EmitOMPPrivateLoopCounters(), EmitOMPReductionClauseFinal(), EmitOMPReductionClauseInit(), clang::CodeGen::emitOrderedRegion(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitParallelCall(), emitPostUpdateForReductionClause(), emitPreCond(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitSEHLeaveStmt(), emitSimdlenSafelenClause(), EmitStmt(), clang::CodeGen::emitTargetDataCalls(), clang::CodeGen::emitTargetDataStandAloneCall(), clang::CodeGen::emitTaskCall(), clang::CodeGen::emitTaskgroupRegion(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitTaskwaitCall(), clang::CodeGen::emitTaskyieldCall(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(), EnsureInsertPoint(), enterBlockScope(), ExitCXXTryStmt(), ExitSEHTryStmt(), and protectFromPeepholes().
|
inline |
Increment the profiler's counter for the given statement by StepV.
If StepV is null, the default increment is 1.
Definition at line 1183 of file CodeGenFunction.h.
References Builder, CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), and clang::CodeGenOptions::hasProfileClangInstr().
Referenced by EmitBlockWithFallThrough(), clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody(), EmitBranchOnBoolExpr(), EmitConstructorBody(), EmitCXXForRangeStmt(), EmitDestructorBody(), EmitForStmt(), EmitFunctionBody(), EmitIfStmt(), emitImplicitAssignmentOperatorBody(), EmitLabel(), EmitObjCForCollectionStmt(), EmitOMPInnerLoop(), EmitOMPSimdDirective(), EmitSwitchStmt(), EmitWhileStmt(), ExitCXXTryStmt(), GenerateBlockFunction(), and GenerateObjCMethod().
| LValue CodeGenFunction::InitCapturedStruct | ( | const CapturedStmt & | S | ) |
Definition at line 2223 of file CGStmt.cpp.
References clang::CapturedStmt::capture_init_begin(), clang::CapturedStmt::capture_init_end(), CreateMemTemp(), E, EmitInitializerForField(), EmitLValueForFieldInitialization(), EmitStoreThroughLValue(), clang::RecordDecl::field_begin(), clang::CodeGen::RValue::get(), clang::CapturedStmt::getCapturedRecordDecl(), getContext(), clang::ASTContext::getRecordType(), I, and MakeAddrLValue().
Referenced by EmitCapturedStmt(), and GenerateCapturedStmtArgument().
| void CodeGenFunction::initFullExprCleanup | ( | ) |
Set up the last cleaup that was pushed as a conditional full-expression cleanup.
Definition at line 284 of file CGCleanup.cpp.
References clang::CodeGen::EHScopeStack::begin(), Builder, clang::format::cleanup(), clang::CodeGen::CGBuilderTy::CreateStore(), CreateTempAlloca(), EHStack, clang::CodeGen::EHCleanupScope::hasActiveFlag(), clang::CodeGen::EHCleanupScope::isEHCleanup(), clang::CodeGen::EHCleanupScope::isNormalCleanup(), clang::CharUnits::One(), clang::CodeGen::EHCleanupScope::setActiveFlag(), setBeforeOutermostConditional(), clang::CodeGen::EHCleanupScope::setTestFlagInEHCleanup(), and clang::CodeGen::EHCleanupScope::setTestFlagInNormalCleanup().
Referenced by EnterNewDeleteCleanup(), pushCleanupAfterFullExpr(), and pushFullExprCleanup().
| void CodeGenFunction::InitializeVTablePointer | ( | const VPtr & | vptr | ) |
Initialize the vtable pointer of the given subobject.
Definition at line 2342 of file CGClass.cpp.
References ApplyNonVirtualAndVirtualOffset(), clang::CodeGen::CodeGenFunction::VPtr::Base, Builder, CGM, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CodeGenModule::DecorateInstructionWithInvariantGroup(), clang::CodeGen::CodeGenModule::DecorateInstructionWithTBAA(), clang::BaseSubobject::getBaseOffset(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::CodeGenModule::getTBAAInfoForVTablePtr(), clang::CodeGen::CGCXXABI::GetVirtualBaseClassOffset(), clang::CodeGen::CGCXXABI::getVTableAddressPointInStructor(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CGCXXABI::isVirtualOffsetNeededForVTableField(), clang::CharUnits::isZero(), LoadCXXThisAddress(), clang::CodeGen::CodeGenFunction::VPtr::NearestVBase, clang::CodeGen::CodeGenFunction::VPtr::OffsetFromNearestVBase, clang::CodeGen::Type, clang::CodeGen::CodeGenFunction::VPtr::VTableClass, and clang::CharUnits::Zero().
Referenced by InitializeVTablePointers().
| void CodeGenFunction::InitializeVTablePointers | ( | const CXXRecordDecl * | ClassDecl | ) |
Definition at line 2460 of file CGClass.cpp.
References CGM, clang::CodeGen::CGCXXABI::doStructorsInitializeVPtrs(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CXXRecordDecl::getNumVBases(), getVTablePointers(), clang::CodeGen::CGCXXABI::initializeHiddenVirtualInheritanceMembers(), InitializeVTablePointer(), and clang::CXXRecordDecl::isDynamicClass().
Referenced by EmitBaseInitializer(), EmitCtorPrologue(), and EmitDestructorBody().
| void CodeGenFunction::InitTempAlloca | ( | Address | Alloca, |
| llvm::Value * | Value | ||
| ) |
InitTempAlloca - Provide an initial value for the given alloca which will be observable at all locations in the function.
The address should be something that was returned from one of the CreateTempAlloca or CreateMemTemp routines, and the initializer must be valid in the entry block (i.e. it must either be a constant or an argument value).
Definition at line 110 of file CGExpr.cpp.
References AllocaInsertPt, clang::CodeGen::Address::getAlignment(), clang::CodeGen::Address::getPointer(), and clang::CharUnits::getQuantity().
Referenced by clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(), and StartFunction().
| void CodeGenFunction::InsertHelper | ( | llvm::Instruction * | I, |
| const llvm::Twine & | Name, | ||
| llvm::BasicBlock * | BB, | ||
| llvm::BasicBlock::iterator | InsertPt | ||
| ) | const |
CGBuilder insert helper.
This function is called after an instruction is created using Builder.
Definition at line 2087 of file CodeGenFunction.cpp.
References CGM, clang::CodeGen::SanitizerMetadata::disableSanitizerForInstruction(), clang::CodeGen::CodeGenModule::getSanitizerMetadata(), clang::CodeGen::LoopInfoStack::InsertHelper(), IsSanitizerScope, and LoopStack.
|
inline |
Returns true while emitting a cleanuppad.
Definition at line 495 of file CodeGenFunction.h.
References CurrentFuncletPad.
|
static |
Checks whether the given constructor is a valid subject for the complete-to-base constructor delegation optimization, i.e.
emitting the complete constructor as a simple call to the base constructor.
Definition at line 692 of file CGClass.cpp.
References clang::Type::getAs(), clang::CXXRecordDecl::getNumVBases(), clang::CXXMethodDecl::getParent(), clang::ValueDecl::getType(), and clang::CXXConstructorDecl::isDelegatingConstructor().
Referenced by clang::CodeGen::CodeGenPGO::assignRegionCounters(), and EmitConstructorBody().
|
inline |
isInConditionalBranch - Return true if we're currently emitting one branch or the other of a conditional expression.
Definition at line 866 of file CodeGenFunction.h.
Referenced by EnterNewDeleteCleanup(), pushCleanupAfterFullExpr(), pushFullExprCleanup(), pushLifetimeExtendedDestroy(), setBeforeOutermostConditional(), and SetupCleanupBlockActivation().
|
inlinestatic |
Definition at line 3722 of file CodeGenFunction.h.
References clang::Decl::getDeclContext().
Referenced by EmitCallArgs().
|
inlinestatic |
Definition at line 3736 of file CodeGenFunction.h.
isObviouslyBranchWithoutCleanups - Return true if a branch to the specified destination obviously has no cleanups to run.
'false' is always a conservatively correct answer for this method.
Definition at line 1009 of file CGCleanup.cpp.
References clang::CodeGen::EHScopeStack::stable_iterator::encloses(), and clang::CodeGen::CodeGenFunction::JumpDest::getScopeDepth().
Referenced by EmitCaseStmt().
|
inline |
Returns true inside SEH __try blocks.
Definition at line 492 of file CodeGenFunction.h.
References SEHTryEpilogueStack.
Referenced by EmitSEHLeaveStmt().
Determine whether the given initializer is trivial in the sense that it requires no code to be generated.
Definition at line 1187 of file CGDecl.cpp.
Referenced by AllTrivialInitializers(), checkInitIsRequired(), EmitAutoVarInit(), clang::CodeGen::ReductionCodeGen::emitInitialization(), EmitOMPFirstprivateClause(), and emitPrivatesInit().
Check if E is a C++ "this" pointer wrapped in value-preserving casts.
Definition at line 1023 of file CGExpr.cpp.
Referenced by EmitCXXMemberOrOperatorMemberCallExpr().
| Address CodeGenFunction::LoadBlockStruct | ( | ) |
Definition at line 1218 of file CGBlocks.cpp.
References clang::CodeGen::CGBlockInfo::BlockAlign, BlockInfo, and BlockPointer.
Referenced by GenerateBlockFunction(), and GetAddrOfBlockDecl().
|
inline |
LoadCXXThis - Load the value of 'this'.
This function is only valid while generating code for an C++ member function.
Definition at line 2176 of file CodeGenFunction.h.
Referenced by EmitAsanPrologueOrEpilogue(), EmitCallAndReturnForThunk(), EmitCtorPrologue(), EmitDestructorBody(), EmitMemberInitializer(), and LoadCXXThisAddress().
| Address CodeGenFunction::LoadCXXThisAddress | ( | ) |
Definition at line 109 of file CGClass.cpp.
References CGM, CurFuncDecl, clang::CodeGen::CodeGenModule::getClassPointerAlignment(), clang::CharUnits::isZero(), and LoadCXXThis().
Referenced by EmitBaseInitializer(), EmitCallAndReturnForThunk(), EmitCtorPrologue(), EmitDelegateCXXConstructorCall(), EmitDelegatingCXXConstructorCall(), EmitDestructorBody(), and InitializeVTablePointer().
|
inline |
LoadCXXVTT - Load the VTT parameter to base constructors/destructors have virtual bases.
Definition at line 2186 of file CodeGenFunction.h.
Referenced by GetVTTParameter().
| llvm::Value * CodeGenFunction::LoadObjCSelf | ( | ) |
LoadObjCSelf - Load the value of self.
This function is only valid while generating code for an Objective-C method.
Definition at line 1457 of file CGObjC.cpp.
References CurCodeDecl, CurFuncDecl, EmitDeclRefLValue(), EmitLoadOfScalar(), clang::ValueDecl::getType(), and clang::VK_LValue.
Referenced by emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), emitCXXDestructMethod(), EmitObjCMessageExpr(), emitStructGetterCall(), emitStructSetterCall(), GenerateObjCCtorDtorMethod(), generateObjCGetterBody(), and generateObjCSetterBody().
| Function * CodeGenFunction::LookupNeonLLVMIntrinsic | ( | unsigned | IntrinsicID, |
| unsigned | Modifier, | ||
| llvm::Type * | ArgTy, | ||
| const CallExpr * | E | ||
| ) |
Definition at line 3684 of file CGBuiltin.cpp.
References Add1ArgType, Add2ArgTypes, AddRetType, CGM, ConvertType(), clang::CodeGen::CodeGenTypeCache::FloatTy, clang::CallExpr::getCallReturnType(), getContext(), clang::CodeGen::CodeGenModule::getIntrinsic(), InventFloatType, clang::CodeGen::Type, Use128BitVectors, Use64BitVectors, VectorizeArgTypes, and VectorizeRetType.
Referenced by EmitCommonNeonBuiltinExpr(), and EmitCommonNeonSISDBuiltinExpr().
An LValue is a candidate for having its loads and stores be made atomic if we are operating under /volatile:ms and the LValue itself is volatile and performing such an operation can be performed without a libcall.
Definition at line 1271 of file CGAtomic.cpp.
References CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::LValue::getType(), clang::ASTContext::getTypeSize(), getTypeSize(), hasVolatileMember(), and clang::CodeGen::LValue::isVolatile().
|
inline |
Definition at line 1898 of file CodeGenFunction.h.
References CGM, getContext(), clang::CodeGen::CodeGenModule::getTBAAInfo(), and clang::CodeGen::LValue::MakeAddr().
Referenced by castValueFromUintptr(), createSectionLVal(), EmitAggExprToLValue(), EmitAnyExprToMem(), EmitAsmStmt(), emitAtomicCmpXchg(), EmitAtomicExpr(), EmitAtomicUpdateValue(), EmitAutoVarInit(), EmitDeclInit(), clang::CodeGen::emitDoacrossInit(), EmitFunctionDeclLValue(), EmitGlobalVarDeclLValue(), clang::CodeGen::ReductionCodeGen::emitInitialization(), EmitLambdaExpr(), EmitMaterializeTemporaryExpr(), EmitObjCCollectionLiteral(), EmitObjCIsaExpr(), EmitOMPLinearClauseInit(), emitOutlinedFunctionPrologue(), EmitParmDecl(), emitPrivatesInit(), emitProxyTaskFunction(), emitPseudoObjectExpr(), emitReduceInitFunction(), EmitReturnStmt(), clang::CodeGen::emitTaskCall(), emitTaskPrivateMappingFunction(), clang::CodeGen::emitThreadIDAddress(), EmitThreadPrivateVarDeclLValue(), emitWritebackArg(), generateObjCGetterBody(), GenerateOpenMPCapturedStmtFunction(), GenerateOpenMPCapturedVars(), InitCapturedStruct(), InitCatchParam(), loadToBegin(), MakeNaturalAlignPointeeAddrLValue(), and StoreAnyExprIntoOneUnit().
|
inline |
Definition at line 1905 of file CodeGenFunction.h.
References CGM, getContext(), clang::CodeGen::CodeGenModule::getTBAAInfo(), and clang::CodeGen::LValue::MakeAddr().
| LValue CodeGenFunction::MakeNaturalAlignAddrLValue | ( | llvm::Value * | V, |
| QualType | T | ||
| ) |
Definition at line 170 of file CodeGenFunction.cpp.
References CGM, getContext(), getNaturalTypeAlignment(), clang::CodeGen::CodeGenModule::getTBAAInfo(), and clang::CodeGen::LValue::MakeAddr().
Referenced by castValueFromUintptr(), EmitCapturedFieldLValue(), EmitCXXMemberOrOperatorMemberCallExpr(), emitInitWithReductionInitializer(), EmitMemberInitializer(), EmitNontemporalLoad(), EmitNontemporalStore(), EmitObjCCollectionLiteral(), emitReduceInitFunction(), clang::CodeGen::emitTaskInit(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), GenerateCapturedStmtFunction(), GenerateOpenMPCapturedVars(), clang::CodeGen::CodeGenFunction::ConstantEmission::getReferenceLValue(), and InitCatchParam().
| LValue CodeGenFunction::MakeNaturalAlignPointeeAddrLValue | ( | llvm::Value * | V, |
| QualType | T | ||
| ) |
Given a value of type T* that may not be to a complete object, construct an l-value with the natural pointee alignment of T.
Definition at line 180 of file CodeGenFunction.cpp.
References getNaturalTypeAlignment(), and MakeAddrLValue().
Determine if the given statement might introduce a declaration into the current scope, by being a (possibly-labelled) DeclStmt.
Definition at line 1301 of file CodeGenFunction.cpp.
References clang::Stmt::children().
Referenced by CollectStatementsForCase().
|
inline |
Determines whether an EH cleanup is required to destroy a type with the given destruction kind.
Definition at line 1531 of file CodeGenFunction.h.
References CGM, clang::QualType::DK_cxx_destructor, clang::QualType::DK_none, clang::QualType::DK_objc_strong_lifetime, clang::QualType::DK_objc_weak_lifetime, clang::CodeGen::CodeGenModule::getCodeGenOpts(), and getLangOpts().
Referenced by EmitArrayDelete(), EmitDeclDestroy(), EmitInitializerForField(), EmitMemberInitializer(), EmitNewArrayInitializer(), clang::CodeGen::emitThreadPrivateVarDefinition(), enterBlockScope(), getCleanupKind(), and pushEHDestroy().
| void CodeGenFunction::popCatchScope | ( | ) |
popCatchScope - Pops the catch scope at the top of the EHScope stack, emitting any required code (other than the catch handlers themselves).
Definition at line 1007 of file CGException.cpp.
References clang::CodeGen::EHScopeStack::begin(), EHStack, emitCatchDispatchBlock(), clang::CodeGen::EHScope::hasEHBranches(), and clang::CodeGen::EHScopeStack::popCatch().
Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), and clang::CodeGen::CodeGenFunction::FinallyInfo::exit().
PopCleanupBlock - Will pop the cleanup entry on the stack and process all branch fixups.
Pops a cleanup block.
If the block includes a normal cleanup, the current insertion point is threaded through the cleanup, as are any branch fixups on the cleanup.
Definition at line 640 of file CGCleanup.cpp.
References Builder, clang::Create(), createLoadInstBefore(), CreateNormalEntry(), createStoreInstBefore(), clang::LangAS::Default, clang::CodeGen::BranchFixup::Destination, clang::CodeGen::BranchFixup::DestinationIndex, destroyOptimisticNormalEntry(), E, EmitCleanup(), ForwardPrebranchedFallthrough(), clang::CodeGen::EHPersonality::get(), clang::CodeGen::EHCleanupScope::getActiveFlag(), clang::CodeGen::EHCleanupScope::getBranchAfterBlock(), clang::CodeGen::EHCleanupScope::getBranchAfterIndex(), clang::CodeGen::EHScope::getCachedEHDispatchBlock(), clang::CodeGen::EHCleanupScope::getCleanupBuffer(), clang::CodeGen::EHCleanupScope::getCleanupSize(), clang::CodeGen::EHScope::getEnclosingEHScope(), clang::CodeGen::EHCleanupScope::getEnclosingNormalCleanup(), clang::CodeGen::EHCleanupScope::getFixupDepth(), clang::CodeGen::EHCleanupScope::getNormalBlock(), clang::CodeGen::EHCleanupScope::getNumBranchAfters(), clang::CodeGen::EHCleanupScope::hasBranches(), clang::CodeGen::EHCleanupScope::hasBranchThroughs(), clang::CodeGen::EHScope::hasEHBranches(), I, clang::CodeGen::BranchFixup::InitialBranch, clang::CodeGen::Address::invalid(), clang::CodeGen::EHCleanupScope::isActive(), clang::CodeGen::EHCleanupScope::isEHCleanup(), clang::CodeGen::EHCleanupScope::isNormalCleanup(), clang::CodeGen::Address::isValid(), clang::CodeGen::BranchFixup::OptimisticBranchBlock, ResolveAllBranchFixups(), S, clang::CodeGen::EHScopeStack::Cleanup::Flags::setIsEHCleanupKind(), clang::CodeGen::EHScopeStack::Cleanup::Flags::setIsForEHCleanup(), clang::CodeGen::EHScopeStack::Cleanup::Flags::setIsNormalCleanupKind(), clang::CodeGen::EHCleanupScope::shouldTestFlagInEHCleanup(), clang::CodeGen::EHCleanupScope::shouldTestFlagInNormalCleanup(), SimplifyCleanupEntry(), and clang::CodeGen::EHPersonality::usesFuncletPads().
Referenced by EmitArrayDelete(), emitArrayDestroy(), EmitDestructorBody(), EmitObjectDelete(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), ExitSEHTryStmt(), and pushCleanupAfterFullExpr().
| void CodeGenFunction::PopCleanupBlocks | ( | EHScopeStack::stable_iterator | OldCleanupStackSize, |
| std::initializer_list< llvm::Value ** > | ValuesToReload = {} |
||
| ) |
Takes the old cleanup stack size and emits the cleanup blocks that have been added.
Pops cleanup blocks until the given savepoint is reached.
Definition at line 420 of file CGCleanup.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::EHCleanupScope::getEnclosingNormalCleanup(), clang::CodeGen::EHCleanupScope::hasBranches(), clang::CodeGen::EHScopeStack::stable_iterator::isValid(), and clang::CodeGen::EHScopeStack::stable_iterator::strictlyEncloses().
Referenced by FinishFunction().
| void CodeGenFunction::PopCleanupBlocks | ( | EHScopeStack::stable_iterator | Old, |
| size_t | OldLifetimeExtendedSize, | ||
| std::initializer_list< llvm::Value ** > | ValuesToReload = {} |
||
| ) |
Takes the old cleanup stack size and emits the cleanup blocks that have been added, then adds all lifetime-extended cleanups from the given position to the stack.
Pops cleanup blocks until the given savepoint is reached, then add the cleanups from the given savepoint in the lifetime-extended cleanups stack.
Definition at line 476 of file CGCleanup.cpp.
References E, clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupHeader::getKind(), clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupHeader::getSize(), and I.
| CodeGenFunction::PeepholeProtection CodeGenFunction::protectFromPeepholes | ( | RValue | rvalue | ) |
protectFromPeepholes - Protect a value that we're intending to store to the side, but which will probably be used later, from aggressive peepholing optimizations that might delete it.
Pass the result to unprotectFromPeepholes to declare that protection is no longer required.
There's no particular reason why this shouldn't apply to l-values, it's just that no existing peepholes work on pointers.
Definition at line 2005 of file CodeGenFunction.cpp.
References Builder, clang::CodeGen::RValue::getScalarVal(), HaveInsertPoint(), and clang::CodeGen::RValue::isScalar().
Referenced by clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::bind().
| void CodeGenFunction::pushCallObjectDeleteCleanup | ( | const FunctionDecl * | OperatorDelete, |
| llvm::Value * | CompletePtr, | ||
| QualType | ElementType | ||
| ) |
Definition at line 1782 of file CGExprCXX.cpp.
References EHStack, and clang::CodeGen::NormalAndEHCleanup.
|
inline |
Queue a cleanup to be pushed after finishing the current full-expression.
Definition at line 521 of file CodeGenFunction.h.
References ActivateCleanupBlock(), Buffer, DeactivateCleanupBlock(), initFullExprCleanup(), isInConditionalBranch(), LifetimeExtendedCleanupStack, PopCleanupBlock(), PushDestructorCleanup(), and clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupHeader::Size.
| void CodeGenFunction::pushDestroy | ( | QualType::DestructionKind | dtorKind, |
| Address | addr, | ||
| QualType | type | ||
| ) |
pushDestroy - Push the standard destructor for the given type as at least a normal cleanup.
Definition at line 1476 of file CGDecl.cpp.
References clang::CodeGen::EHCleanup, getCleanupKind(), and getDestroyer().
Referenced by EmitAutoVarWithLifetime(), clang::CodeGen::ReductionCodeGen::emitCleanups(), emitDestructorsFunction(), EmitParmDecl(), enterBlockScope(), pushEHDestroy(), and pushTemporaryCleanup().
| void CodeGenFunction::pushDestroy | ( | CleanupKind | kind, |
| Address | addr, | ||
| QualType | type, | ||
| Destroyer * | destroyer, | ||
| bool | useEHCleanupForArray | ||
| ) |
Definition at line 1485 of file CGDecl.cpp.
References clang::ast_matchers::type.
PushDestructorCleanup - Push a cleanup to call the complete-object destructor of an object of the given type at the given address.
Does nothing if T is not a C++ class type with a non-trivial destructor.
Definition at line 2332 of file CGClass.cpp.
References clang::Type::getAsCXXRecordDecl(), clang::CXXRecordDecl::getDestructor(), clang::CXXRecordDecl::hasTrivialDestructor(), and clang::Decl::isUsed().
Referenced by GenerateDestroyHelperFunction(), and pushCleanupAfterFullExpr().
| void CodeGenFunction::PushDestructorCleanup | ( | const CXXDestructorDecl * | Dtor, |
| Address | Addr | ||
| ) |
PushDestructorCleanup - Push a cleanup to call the complete-object variant of the given destructor on the object at the given address.
Definition at line 2327 of file CGClass.cpp.
References EHStack, and clang::CodeGen::NormalAndEHCleanup.
| void CodeGenFunction::pushEHDestroy | ( | QualType::DestructionKind | dtorKind, |
| Address | addr, | ||
| QualType | type | ||
| ) |
pushEHDestroy - Push the standard destructor for the given type as an EH-only cleanup.
Definition at line 1466 of file CGDecl.cpp.
References clang::CodeGen::EHCleanup, getDestroyer(), needsEHCleanup(), and pushDestroy().
Referenced by EmitInitializerForField(), and EmitMemberInitializer().
|
inline |
pushFullExprCleanup - Push a cleanup to be run at the end of the current full-expression.
Safe against the possibility that we're currently inside a conditionally-evaluated expression.
Definition at line 503 of file CodeGenFunction.h.
References EHStack, initFullExprCleanup(), isInConditionalBranch(), clang::CodeGen::EHScopeStack::pushCleanupTuple(), and saveValueInCond().
| void CodeGenFunction::pushIrregularPartialArrayCleanup | ( | llvm::Value * | arrayBegin, |
| Address | arrayEndPointer, | ||
| QualType | elementType, | ||
| CharUnits | elementAlign, | ||
| Destroyer * | destroyer | ||
| ) |
pushIrregularPartialArrayCleanup - Push an EH cleanup to destroy already-constructed elements of the given array.
The cleanup may be popped with DeactivateCleanupBlock or PopCleanupBlock.
| elementType | - the immediate element type of the array; possibly still an array type |
Definition at line 1704 of file CGDecl.cpp.
References clang::CodeGen::EHCleanup.
Referenced by EmitNewArrayInitializer().
| void CodeGenFunction::pushLifetimeExtendedDestroy | ( | CleanupKind | kind, |
| Address | addr, | ||
| QualType | type, | ||
| Destroyer * | destroyer, | ||
| bool | useEHCleanupForArray | ||
| ) |
Definition at line 1496 of file CGDecl.cpp.
References clang::CodeGen::EHCleanup, EHStack, isInConditionalBranch(), clang::CodeGen::NormalCleanup, and clang::ast_matchers::type.
Referenced by pushTemporaryCleanup().
| void CodeGenFunction::pushRegularPartialArrayCleanup | ( | llvm::Value * | arrayBegin, |
| llvm::Value * | arrayEnd, | ||
| QualType | elementType, | ||
| CharUnits | elementAlign, | ||
| Destroyer * | destroyer | ||
| ) |
pushRegularPartialArrayCleanup - Push an EH cleanup to destroy already-constructed elements of the given array.
The cleanup may be popped with DeactivateCleanupBlock or PopCleanupBlock.
| elementType | - the immediate element type of the array; possibly still an array type |
Definition at line 1721 of file CGDecl.cpp.
References clang::CodeGen::EHCleanup.
Referenced by emitArrayDestroy(), EmitCXXAggrConstructorCall(), and EmitNewArrayInitializer().
| void CodeGenFunction::pushStackRestore | ( | CleanupKind | kind, |
| Address | SPMem | ||
| ) |
| Address CodeGenFunction::recoverAddrOfEscapedLocal | ( | CodeGenFunction & | ParentCGF, |
| Address | ParentVar, | ||
| llvm::Value * | ParentFP | ||
| ) |
Recovers the address of a local in a parent function.
ParentVar is the address of the variable used in the immediate parent function. It can either be an alloca or a call to llvm.localrecover if there are nested outlined functions. ParentFP is the frame pointer of the outermost parent frame.
Definition at line 1507 of file CGException.cpp.
References AllocaInsertPt, Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), CurFn, clang::CodeGen::Address::getAlignment(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::Address::getName(), clang::CodeGen::Address::getPointer(), clang::CodeGen::Address::getType(), clang::CodeGen::CodeGenTypeCache::Int32Ty, and clang::CodeGen::CodeGenTypeCache::Int8PtrTy.
Referenced by EmitCapturedLocals(), and EmitSEHExceptionCodeSave().
| void CodeGenFunction::registerGlobalDtorWithAtExit | ( | const VarDecl & | D, |
| llvm::Constant * | fn, | ||
| llvm::Constant * | addr | ||
| ) |
Call atexit() with a function that passes the given argument to the given function.
Register a global destructor using the C atexit runtime function.
Definition at line 229 of file CGDeclCXX.cpp.
References CGM, createAtExitStub(), clang::CodeGen::CodeGenModule::CreateRuntimeFunction(), EmitNounwindRuntimeCall(), and clang::CodeGen::CodeGenTypeCache::IntTy.
| void CodeGenFunction::ResolveBranchFixups | ( | llvm::BasicBlock * | Target | ) |
Definition at line 381 of file CGCleanup.cpp.
References Builder, clang::CodeGen::BranchFixup::Destination, clang::CodeGen::BranchFixup::DestinationIndex, E, I, clang::CodeGen::BranchFixup::OptimisticBranchBlock, and TransitionToCleanupSwitch().
Referenced by EmitLabel().
| bool CodeGenFunction::sanitizePerformTypeCheck | ( | ) | const |
Whether any type-checking sanitizers are enabled.
If false, calls to EmitTypeCheck can be skipped.
Definition at line 571 of file CGExpr.cpp.
References clang::SanitizerSet::has(), and SanOpts.
Referenced by EmitReferenceBindingToExpr(), EmitTypeCheck(), and GetAddressOfBaseClass().
|
inline |
Definition at line 459 of file CodeGenFunction.h.
References clang::CodeGen::InvariantValue< T >::save().
Referenced by pushFullExprCleanup().
|
inline |
Definition at line 868 of file CodeGenFunction.h.
References clang::CodeGen::Address::getAlignment(), clang::CodeGen::Address::getPointer(), clang::CharUnits::getQuantity(), clang::CodeGen::CodeGenFunction::ConditionalEvaluation::getStartingBlock(), and isInConditionalBranch().
Referenced by initFullExprCleanup(), and SetupCleanupBlockActivation().
| void CodeGenFunction::setBlockContextParameter | ( | const ImplicitParamDecl * | D, |
| unsigned | argNum, | ||
| llvm::Value * | ptr | ||
| ) |
Definition at line 1182 of file CGBlocks.cpp.
References BlockInfo, BlockPointer, Builder, CGM, clang::CodeGen::CGBuilderTy::CreateLoad(), CreateMemTemp(), clang::CodeGen::CGBuilderTy::CreateStore(), clang::CodeGen::CGBlockInfo::getBlockExpr(), clang::BlockExpr::getBody(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), getDebugInfo(), getLangOpts(), clang::Decl::getLocation(), clang::Stmt::getLocStart(), clang::NamedDecl::getName(), clang::ValueDecl::getType(), clang::codegenoptions::LimitedDebugInfo, clang::frontend::OpenCL, clang::LangAS::opencl_generic, and clang::CodeGen::CGBlockInfo::StructureType.
Referenced by EmitParmDecl().
|
inline |
Set the profiler's current count.
Definition at line 1198 of file CodeGenFunction.h.
Referenced by EmitBlockWithFallThrough(), and EmitBranchOnBoolExpr().
| void CodeGenFunction::SetFPAccuracy | ( | llvm::Value * | Val, |
| float | Accuracy | ||
| ) |
SetFPAccuracy - Set the minimum required accuracy of the given floating point operation, expressed as the maximum relative error in ulp.
Definition at line 4545 of file CGExpr.cpp.
References Node.
| bool CodeGenFunction::ShouldEmitVTableTypeCheckedLoad | ( | const CXXRecordDecl * | RD | ) |
Returns whether we should perform a type checked load when loading a virtual function for virtual calls to members of RD.
This is generally true when both vcall CFI and whole-program-vtables are enabled.
Definition at line 2683 of file CGClass.cpp.
References CGM, clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::NamedDecl::getQualifiedNameAsString(), clang::ASTContext::getSanitizerBlacklist(), clang::SanitizerSet::has(), clang::CodeGen::CodeGenModule::HasHiddenLTOVisibility(), clang::SanitizerBlacklist::isBlacklistedType(), clang::CodeGenOptions::SanitizeTrap, and SanOpts.
| bool CodeGenFunction::ShouldInstrumentFunction | ( | ) |
ShouldInstrumentFunction - Return true if the current function should be instrumented with __cyg_profile_func_* calls.
Definition at line 418 of file CodeGenFunction.cpp.
References CGM, CurFuncDecl, clang::CodeGen::CodeGenModule::getCodeGenOpts(), and clang::Decl::hasAttr().
Referenced by FinishFunction(), and StartFunction().
Definition at line 1512 of file CGExprScalar.cpp.
References clang::CastExpr::getCastKind(), clang::CastExpr::getSubExpr(), clang::Expr::IgnoreParens(), and clang::VK_RValue.
|
inline |
Definition at line 1447 of file CodeGenFunction.h.
References CGM, and clang::CodeGen::CodeGenModule::getCodeGenOpts().
Referenced by EmitARCStoreStrong(), and emitAutoreleaseOfResult().
| bool CodeGenFunction::ShouldXRayInstrumentFunction | ( | ) | const |
ShouldXRayInstrument - Return true if the current function should be instrumented with XRay nop sleds.
Definition at line 428 of file CodeGenFunction.cpp.
References CGM, and clang::CodeGen::CodeGenModule::getCodeGenOpts().
Referenced by StartFunction().
| void CodeGenFunction::SimplifyForwardingBlocks | ( | llvm::BasicBlock * | BB | ) |
SimplifyForwardingBlocks - If the given basic block is only a branch to another basic block, simplify it.
This assumes that no other code could potentially reference the basic block.
Definition at line 414 of file CGStmt.cpp.
References EHStack, and clang::CodeGen::EHScopeStack::empty().
Referenced by EmitDoStmt(), and EmitWhileStmt().
| llvm::DebugLoc CodeGenFunction::SourceLocToDebugLoc | ( | SourceLocation | Location | ) |
Converts Location to a DebugLoc, if debug information is enabled.
Definition at line 2190 of file CodeGenFunction.cpp.
References getDebugInfo().
Referenced by EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), EmitOMPInnerLoop(), and EmitWhileStmt().
| void CodeGenFunction::StartFunction | ( | GlobalDecl | GD, |
| QualType | RetTy, | ||
| llvm::Function * | Fn, | ||
| const CGFunctionInfo & | FnInfo, | ||
| const FunctionArgList & | Args, | ||
| SourceLocation | Loc = SourceLocation(), |
||
| SourceLocation | StartLoc = SourceLocation() |
||
| ) |
Emit code for the start of a function.
| Loc | The location to be associated with the function. |
| StartLoc | The location of the function body. |
Definition at line 724 of file CodeGenFunction.cpp.
References AllocaInsertPt, AutoreleaseResult, Builder, clang::CC_C, CGM, clang::SanitizerSet::clear(), clang::CodeGen::CGBuilderTy::CreateAlignedLoad(), createBasicBlock(), CreateDefaultAlignTempAlloca(), CreateIRTemp(), clang::CodeGen::CGBuilderTy::CreateStructGEP(), CurCodeDecl, CurFn, CurFnInfo, CurFuncDecl, CurSEHParent, EHStack, EmitFunctionInstrumentation(), EmitFunctionProlog(), clang::CodeGen::CGCXXABI::EmitInstanceFunctionProlog(), EmitLoadOfLValue(), EmitLValueForLambdaField(), EmitStartEHSpec(), EmitTypeCheck(), EmitVariablyModifiedType(), endsWithReturn(), clang::RecordDecl::fields(), FnRetTy, clang::CodeGen::LValue::getAddress(), clang::CodeGen::CodeGenModule::GetAddrOfRTTIDescriptor(), clang::Type::getAs(), clang::Decl::getAttr(), clang::CXXRecordDecl::getCaptureFields(), clang::CodeGen::CodeGenModule::getCodeGenOpts(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), getDebugInfo(), clang::GlobalDecl::getDecl(), clang::ASTContext::getFunctionType(), clang::NamedDecl::getIdentifier(), clang::CodeGen::ABIArgInfo::getInAllocaFieldIndex(), clang::CodeGen::ABIArgInfo::getIndirectAlign(), getJumpDestInCurrentScope(), clang::CodeGen::ABIArgInfo::getKind(), clang::CodeGen::CodeGenModule::getLangOpts(), getLangOpts(), getLLVMContext(), getNaturalTypeAlignment(), clang::Decl::getNonClosureContext(), clang::Type::getNullability(), clang::CodeGen::CodeGenModule::getOpenMPRuntime(), clang::FunctionDecl::getOverloadedOperator(), clang::CXXMethodDecl::getParent(), clang::Type::getPointeeType(), clang::CodeGen::Address::getPointer(), clang::CodeGen::CodeGenTypeCache::getPointerAlign(), clang::CodeGen::CGFunctionInfo::getReturnInfo(), clang::CodeGen::CGFunctionInfo::getReturnType(), clang::CodeGen::RValue::getScalarVal(), getTarget(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::CXXMethodDecl::getThisType(), clang::ValueDecl::getType(), clang::CodeGen::TargetCodeGenInfo::getUBSanFunctionSignature(), clang::SanitizerSet::has(), clang::Decl::hasAttr(), clang::SanitizerSet::hasOneOf(), hasScalarEvaluationKind(), clang::CodeGen::CodeGenModule::imbueXRayAttrs(), clang::CodeGen::ABIArgInfo::InAlloca, clang::CodeGen::ABIArgInfo::Indirect, InitTempAlloca(), clang::CodeGen::CodeGenTypeCache::Int32Ty, clang::CodeGen::CodeGenTypeCache::Int8PtrTy, clang::CodeGen::Address::invalid(), clang::CodeGen::CodeGenModule::isInSanitizerBlacklist(), clang::CXXRecordDecl::isLambda(), clang::isLambdaCallOperator(), clang::FunctionDecl::isMain(), clang::Type::isObjCRetainableType(), clang::Type::isPointerType(), clang::CodeGen::CGFunctionInfo::isReturnsRetained(), clang::CodeGen::ABIArgInfo::isSRetAfterThis(), clang::IdentifierInfo::isStr(), clang::Type::isVariablyModifiedType(), clang::Type::isVoidType(), LambdaCaptureFields, LambdaThisCaptureField, clang::LCD_None, markAsIgnoreThreadCheckingAtRuntime(), clang::SanitizerSet::Mask, clang::NonNull, clang::OMF_dealloc, clang::OMF_initialize, PrologueCleanupDepth, ReturnBlock, ReturnValue, SanOpts, clang::SanitizerSet::set(), ShouldInstrumentFunction(), ShouldXRayInstrumentFunction(), clang::Decl::specific_attrs(), clang::CodeGen::EHScopeStack::stable_begin(), TCK_ConstructorCall, TCK_MemberCall, and clang::FunctionDecl::usesSEHTry().
Referenced by createAtExitStub(), createOffloadingBinaryDescriptorFunction(), emitCombinerOrInitializer(), emitCopyprivateCopyFunction(), emitCopyToScratchpad(), emitDestructorsFunction(), emitInterWarpCopyFunction(), emitOutlinedFunctionPrologue(), emitProxyTaskFunction(), emitReduceCombFunction(), emitReduceFiniFunction(), emitReduceInitFunction(), emitReduceScratchpadFunction(), emitShuffleAndReduceFunction(), emitTaskDupFunction(), emitTaskPrivateMappingFunction(), clang::CodeGen::emitThreadPrivateVarDefinition(), GenerateBlockFunction(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCapturedStmtFunction(), GenerateCode(), GenerateCopyHelperFunction(), GenerateCXXGlobalDtorsFunc(), GenerateCXXGlobalInitFunc(), GenerateCXXGlobalVarDeclInitFunc(), generateDestroyHelper(), GenerateDestroyHelperFunction(), GenerateObjCAtomicGetterCopyHelperFunction(), GenerateObjCAtomicSetterCopyHelperFunction(), StartObjCMethod(), startOutlinedSEHHelper(), and StartThunk().
| void CodeGenFunction::StartObjCMethod | ( | const ObjCMethodDecl * | OMD, |
| const ObjCContainerDecl * | CD | ||
| ) |
StartObjCMethod - Begin emission of an ObjCMethod.
This generates the LLVM function and sets the other context used by CodeGenFunction.
Definition at line 532 of file CGObjC.cpp.
References clang::CodeGen::CodeGenTypes::arrangeObjCMethodDeclaration(), CGM, CurGD, EHStack, clang::CodeGen::CGObjCRuntime::GenerateMethod(), getARCCleanupKind(), clang::ObjCMethodDecl::getCmdDecl(), clang::Selector::getIdentifierInfoForSlot(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::Decl::getLocation(), clang::ObjCMethodDecl::getLocEnd(), clang::ObjCMethodDecl::getLocStart(), clang::CodeGen::CodeGenModule::getObjCRuntime(), clang::ObjCMethodDecl::getReturnType(), clang::ObjCMethodDecl::getSelector(), clang::ObjCMethodDecl::getSelfDecl(), clang::CodeGen::CodeGenModule::getTypes(), clang::Decl::hasAttr(), clang::ObjCMethodDecl::isInstanceMethod(), clang::IdentifierInfo::isStr(), clang::Selector::isUnarySelector(), clang::ObjCMethodDecl::param_begin(), clang::ObjCMethodDecl::param_end(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), and StartFunction().
Referenced by GenerateObjCCtorDtorMethod(), GenerateObjCGetter(), GenerateObjCMethod(), and GenerateObjCSetter().
| void CodeGenFunction::startOutlinedSEHHelper | ( | CodeGenFunction & | ParentCGF, |
| bool | IsFilter, | ||
| const Stmt * | OutlinedStmt | ||
| ) |
Arrange a function prototype that can be called by Windows exception handling personalities.
On Win64, the prototype looks like: RetTy func(void *EHPtrs, void *ParentFP);
Definition at line 1628 of file CGException.cpp.
References clang::CodeGen::CodeGenTypes::arrangeBuiltinFunctionDeclaration(), clang::ImplicitParamDecl::Create(), clang::Create(), CurFn, CurSEHParent, EmitCapturedLocals(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::CodeGen::CodeGenTypes::GetFunctionType(), clang::Stmt::getLocStart(), clang::CodeGen::CGCXXABI::getMangleContext(), clang::CodeGen::CodeGenModule::getModule(), clang::CodeGen::CodeGenModule::getTarget(), clang::TargetInfo::getTriple(), clang::CodeGen::CodeGenModule::getTypes(), clang::InternalLinkage, IsOutlinedSEHHelper, clang::ASTContext::LongTy, clang::MangleContext::mangleSEHFilterExpression(), clang::MangleContext::mangleSEHFinallyBlock(), Name, clang::ImplicitParamDecl::Other, clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(), StartFunction(), clang::ASTContext::UnsignedCharTy, clang::ASTContext::VoidPtrTy, and clang::ASTContext::VoidTy.
Referenced by GenerateSEHFilterFunction(), and GenerateSEHFinallyFunction().
| void CodeGenFunction::StartThunk | ( | llvm::Function * | Fn, |
| GlobalDecl | GD, | ||
| const CGFunctionInfo & | FnInfo | ||
| ) |
Definition at line 206 of file CGVTables.cpp.
References clang::CodeGen::CGCXXABI::addImplicitStructorParams(), clang::CodeGen::CGCXXABI::buildThisParam(), CGM, clang::CodeGen::ApplyDebugLocation::CreateArtificial(), clang::CodeGen::ApplyDebugLocation::CreateEmpty(), CurCodeDecl, CurFuncDecl, CurFuncIsThunk, CurGD, clang::CodeGen::CGCXXABI::EmitInstanceFunctionProlog(), clang::Type::getAs(), clang::CodeGen::CodeGenModule::getContext(), getContext(), clang::CodeGen::CodeGenModule::getCXXABI(), clang::GlobalDecl::getDecl(), clang::Decl::getLocation(), clang::FunctionType::getReturnType(), clang::CXXMethodDecl::getThisType(), clang::ValueDecl::getType(), clang::CodeGen::CGCXXABI::hasMostDerivedReturn(), clang::CodeGen::CGCXXABI::HasThisReturn(), clang::FunctionDecl::param_begin(), clang::FunctionDecl::param_end(), StartFunction(), and clang::ASTContext::VoidPtrTy.
Referenced by generateThunk().
| CodeGenFunction::ConstantEmission CodeGenFunction::tryEmitAsConstant | ( | DeclRefExpr * | refExpr | ) |
Try to emit a reference to the given value without producing it as an l-value.
This is actually more than an optimization: we can't produce an l-value for variables that we never actually captured in a block or lambda, which means const int variables or constexpr literals or similar.
Definition at line 1264 of file CGExpr.cpp.
References CEK_AsReferenceOnly, CEK_AsValueOnly, CEK_None, checkVarTypeForConstantEmission(), clang::Expr::EvaluateAsLValue(), clang::Expr::EvaluateAsRValue(), clang::DeclRefExpr::getDecl(), clang::Expr::getType(), clang::ValueDecl::getType(), clang::Expr::EvalStatus::HasSideEffects, and clang::Expr::EvalResult::Val.
| QualType CodeGenFunction::TypeOfSelfObject | ( | ) |
TypeOfSelfObject - Return type of object that this self represents.
Definition at line 1464 of file CGObjC.cpp.
References CurFuncDecl, clang::ASTContext::getCanonicalType(), getContext(), clang::ObjCObjectPointerType::getPointeeType(), and clang::ObjCMethodDecl::getSelfDecl().
Referenced by emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), emitStructGetterCall(), emitStructSetterCall(), GenerateObjCCtorDtorMethod(), generateObjCGetterBody(), and generateObjCSetterBody().
| void CodeGenFunction::unprotectFromPeepholes | ( | PeepholeProtection | protection | ) |
Definition at line 2024 of file CodeGenFunction.cpp.
Referenced by clang::CodeGen::CodeGenFunction::OpaqueValueMappingData::unbind().
| Value * CodeGenFunction::vectorWrapScalar16 | ( | llvm::Value * | Op | ) |
Definition at line 5292 of file CGBuiltin.cpp.
References Builder, clang::CodeGen::CGBuilderTy::CreateBitCast(), clang::CodeGen::CodeGenTypeCache::Int16Ty, clang::CodeGen::CodeGenTypeCache::SizeTy, and clang::CodeGen::Type.
Referenced by EmitAArch64BuiltinExpr().
|
friend |
Definition at line 141 of file CodeGenFunction.h.
| llvm::AssertingVH<llvm::Instruction> clang::CodeGen::CodeGenFunction::AllocaInsertPt |
AllocaInsertPoint - This is an instruction in the entry block before which we prefer to insert allocas.
Definition at line 246 of file CodeGenFunction.h.
Referenced by CreateTempAlloca(), EmitCapturedLocals(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), FinishFunction(), clang::CodeGen::CGOpenMPRuntime::getThreadID(), InitTempAlloca(), recoverAddrOfEscapedLocal(), and StartFunction().
| bool clang::CodeGen::CodeGenFunction::AutoreleaseResult |
In ARC, whether we should autorelease the return value.
Definition at line 374 of file CodeGenFunction.h.
Referenced by EmitCallAndReturnForThunk(), GenerateObjCCtorDtorMethod(), generateObjCGetterBody(), and StartFunction().
| const CodeGen::CGBlockInfo* clang::CodeGen::CodeGenFunction::BlockInfo |
Definition at line 386 of file CodeGenFunction.h.
Referenced by EmitLambdaBlockInvokeBody(), EmitParmDecl(), GenerateBlockFunction(), GetAddrOfBlockDecl(), getCaptureFieldType(), LoadBlockStruct(), and setBlockContextParameter().
| llvm::Value* clang::CodeGen::CodeGenFunction::BlockPointer |
Definition at line 387 of file CodeGenFunction.h.
Referenced by GenerateBlockFunction(), LoadBlockStruct(), and setBlockContextParameter().
| CGBuilderTy clang::CodeGen::CodeGenFunction::Builder |
Definition at line 173 of file CodeGenFunction.h.
Referenced by AddDirectArgument(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), AdjustObjCObjectType(), clang::CodeGen::ReductionCodeGen::adjustPrivateAddress(), clang::CodeGen::CallArgList::allocateArgumentMemory(), clang::CodeGen::ApplyDebugLocation::ApplyDebugLocation(), clang::CodeGen::ApplyInlineDebugLocation::ApplyInlineDebugLocation(), ApplyNonVirtualAndVirtualOffset(), BuildAggStore(), BuildAppleKextVirtualCall(), BuildBlockRelease(), BuildVector(), castToBase(), CheckAggExprForMemSetUse(), CodeGenFunction(), CoerceIntOrPtrToIntOrPtr(), createAtExitStub(), CreateCoercedLoad(), CreateCoercedStore(), createIdentFieldGEP(), clang::CodeGen::CodeGenModule::createOpenCLIntToSamplerConversion(), createPlaceholderSlot(), createRuntimeShuffleFunction(), CreateTempAlloca(), EmitAArch64BuiltinExpr(), EmitAArch64CompareBuiltinExpr(), EmitAArch64TblBuiltinExpr(), emitAddressAtOffset(), emitAddrOfFieldStorage(), emitAddrOfImagComponent(), emitAddrOfRealComponent(), emitAddrOfVarFromArray(), EmitAggregateCopy(), clang::CodeGen::ReductionCodeGen::emitAggregateType(), EmitAlignmentAssumption(), EmitAMDGPUBuiltinExpr(), EmitAnnotationCall(), EmitAnyExprToExn(), emitARCCopyOperation(), EmitARCDestroyStrong(), EmitARCDestroyWeak(), EmitARCInitWeak(), emitARCLoadOperation(), emitARCOperationAfterCall(), EmitARCRelease(), EmitARCRetainAutorelease(), EmitARCRetainBlock(), emitARCStoreOperation(), EmitARCStoreStrongCall(), emitARCValueOperation(), emitArgumentDemotion(), EmitARMBuiltinExpr(), EmitArrayDelete(), emitArrayDestroy(), emitArrayLength(), emitArraySubscriptGEP(), EmitAsanPrologueOrEpilogue(), EmitAsmStmt(), emitAtomicCmpXchg(), emitAtomicCmpXchgFailureSet(), EmitAtomicExpr(), EmitAtomicOp(), EmitAtomicStore(), clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), emitAutoreleasedReturnValueMarker(), EmitAutoVarAlloca(), EmitAutoVarInit(), clang::CodeGen::emitBarrierCall(), EmitBinaryAtomicPost(), emitBinaryBuiltin(), EmitBitCastOfLValueToProperType(), EmitBlock(), EmitBlockAfterUses(), emitBlockByrefAddress(), EmitBlockCallExpr(), emitBodyAndFallthrough(), EmitBranch(), EmitBranchOnBoolExpr(), EmitBuiltinAvailable(), emitByrefStructureInit(), clang::CodeGen::emitCancellationPointCall(), EmitCapturedLocals(), EmitCaseStmt(), EmitCaseStmtRange(), EmitCastToVoidPtr(), emitCatchDispatchBlock(), emitCatchPadBlock(), EmitCheckedInBoundsGEP(), emitCheckHandlerCall(), EmitCleanup(), clang::CodeGen::ReductionCodeGen::emitCleanups(), EmitCommonNeonBuiltinExpr(), EmitCommonNeonSISDBuiltinExpr(), emitCopyprivateCopyFunction(), emitCopyToScratchpad(), EmitCoroutineBody(), EmitCoroutineIntrinsic(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), clang::CodeGen::emitCriticalRegion(), EmitCtorPrologue(), EmitCXXAggrConstructorCall(), EmitCXXDeleteExpr(), EmitCXXForRangeStmt(), EmitCXXNewAllocSize(), EmitCXXNewExpr(), EmitCXXPseudoDestructorExpr(), EmitCXXTypeidExpr(), EmitDeclInvariant(), EmitDeleteCall(), emitDestroy(), EmitDestructorBody(), emitDispatchForLoopBounds(), emitDistributeParallelForDistributeInnerBoundParams(), clang::CodeGen::emitDoacrossInit(), EmitDoStmt(), EmitDynamicCast(), EmitExtendGCLifetime(), EmitFAbs(), EmitFieldAnnotations(), emitFilterDispatchBlock(), clang::CodeGen::emitForDispatchInit(), emitForStaticInitCall(), EmitForStmt(), emitFPIntBuiltin(), EmitFromInt(), EmitFunctionInstrumentation(), EmitIndirectGotoStmt(), clang::CodeGen::ReductionCodeGen::emitInitialization(), clang::CodeGen::CGObjCRuntime::EmitInitOfCatchParam(), emitInterWarpCopyFunction(), EmitLandingPad(), EmitLifetimeEnd(), EmitLifetimeStart(), EmitMemberInitializer(), clang::CodeGen::CGCXXABI::EmitMemberPointerComparison(), clang::CodeGen::CGCXXABI::EmitMemberPointerIsNotNull(), emitMergePHI(), EmitMustTailThunk(), EmitNeonCall(), EmitNeonRShiftImm(), EmitNeonSplat(), EmitNewArrayInitializer(), EmitNontemporalStore(), emitNonZeroVLAInit(), EmitNullabilityCheck(), EmitNullBaseClassInitialization(), EmitNullInitialization(), emitNumTeamsForTargetDirective(), emitNumThreadsForTargetDirective(), EmitNVPTXBuiltinExpr(), EmitNVPTXDevicePrintfCallExpr(), EmitObjCAutoreleasePoolPop(), EmitObjCAutoreleasePoolStmt(), EmitObjCBoxedExpr(), EmitObjCCollectionLiteral(), EmitObjCForCollectionStmt(), EmitObjCIsaExpr(), EmitObjCMessageExpr(), emitOffloadingArrays(), emitOffloadingArraysArgument(), EmitOMPAggregateAssign(), EmitOMPAggregateInit(), EmitOMPAggregateReduction(), emitOMPArraySectionBase(), emitOMPAtomicRMW(), EmitOMPCopyinClause(), EmitOMPLastprivateClauseFinal(), EmitOMPLinearClauseFinal(), EmitOMPReductionClauseInit(), EmitOMPUseDevicePtrClause(), EmitOMPWorksharingLoop(), EmitOverflowIntrinsic(), EmitParmDecl(), emitPartialArrayDestroy(), emitPointerArithmetic(), emitPostUpdateForReductionClause(), EmitPPCBuiltinExpr(), emitPrivatesInit(), emitProxyTaskFunction(), emitRangedBuiltin(), emitReduceCombFunction(), emitReduceScratchpadFunction(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitReduction(), EmitReturnBlock(), EmitReturnStmt(), emitRoundPointerUpToAlignment(), EmitSanitizerStatReport(), EmitSEHAbnormalTermination(), EmitSEHExceptionCode(), EmitSEHExceptionCodeSave(), EmitSEHLeaveStmt(), emitShuffleAndReduceFunction(), EmitSignBit(), EmitSpecialRegisterBuiltin(), EmitStmt(), EmitStopPoint(), emitStructGetterCall(), emitStructSetterCall(), emitSuspendExpression(), EmitSwitchStmt(), EmitSynthesizedCXXCopyCtorCall(), EmitSystemZBuiltinExpr(), EmitSystemZIntrinsicWithCC(), clang::CodeGen::emitTaskCall(), clang::CodeGen::emitTaskInit(), clang::CodeGen::emitTaskLoopCall(), clang::CodeGen::emitTaskReductionFixups(), clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(), emitTernaryBuiltin(), clang::CodeGen::CGCXXABI::EmitThisParam(), EmitThreadPrivateVarDeclLValue(), clang::CodeGen::emitThreadPrivateVarDefinition(), clang::CodeGen::emitThreadPrivateVarInit(), EmitToInt(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), EmitTypeCheck(), EmitTypeidFromVTable(), EmitTypeMetadataCodeForVCall(), emitUnaryBuiltin(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), EmitVarAnnotations(), EmitVariablyModifiedType(), emitVoidPtrDirectVAArg(), emitVoidPtrVAArg(), EmitVTableAssumptionLoad(), EmitVTablePtrCheck(), EmitVTablePtrCheckForCast(), EmitVTableTypeCheckedLoad(), EmitWebAssemblyBuiltinExpr(), EmitWhileStmt(), emitWriteback(), emitWritebackArg(), EmitX86_64VAArgFromMemory(), EmitX86BuiltinExpr(), EmitX86MaskedCompare(), EmitX86MaskedLoad(), EmitX86MaskedStore(), EmitX86MinMax(), EmitX86Select(), EmitX86SExtMask(), EmitX86SubVectorBroadcast(), clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), enterBlockScope(), EnterStructPointerForCoercedAccess(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), ExitCXXTryStmt(), ExitSEHTryStmt(), findDominatingStoreToReturnValue(), FinishFunction(), forConstantArrayExpansion(), clang::CodeGen::CallArgList::freeArgumentMemory(), GenerateBlockFunction(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCapturedStmtFunction(), GenerateCode(), GenerateCopyHelperFunction(), GenerateCXXGlobalDtorsFunc(), GenerateCXXGlobalInitFunc(), GenerateDestroyHelperFunction(), GenerateObjCCtorDtorMethod(), generateObjCGetterBody(), generateObjCSetterBody(), GenerateSEHFilterFunction(), GenerateVarArgsThunk(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), GetAddressOfDirectBaseInCompleteClass(), clang::CodeGen::getAddrOfArtificialThreadPrivate(), GetAddrOfBlockDecl(), clang::CodeGen::getAddrOfThreadPrivate(), getArrayIndexingBound(), getEHResumeBlock(), getExceptionFromSlot(), getMaskVecValue(), getMasterThreadID(), getMSVCDispatchBlock(), getNVPTXBarrier(), getNVPTXCTABarrier(), getNVPTXLaneID(), getNVPTXNumThreads(), getNVPTXThreadID(), getNVPTXWarpID(), getNVPTXWarpSize(), getSelectorFromSlot(), clang::CodeGen::getTaskReductionItem(), getTerminateHandler(), getTerminateLandingPad(), clang::CodeGen::CGOpenMPRuntime::getThreadID(), getThreadLimit(), getTypeSize(), getVLASize(), GetVTablePtr(), GetVTTParameter(), HaveInsertPoint(), incrementProfileCounter(), InitCatchParam(), initFullExprCleanup(), InitializeVTablePointer(), clang::CodeGen::CodeGenFunction::LexicalScope::LexicalScope(), loadToBegin(), MakeAtomicCmpXchgValue(), MakeBinaryAtomicValue(), packTBLDVectorList(), clang::CodeGen::TargetCodeGenInfo::performAddrSpaceCast(), PerformReturnAdjustment(), performTypeAdjustment(), PPC64_initDwarfEHRegSizeTable(), protectFromPeepholes(), clang::CodeGen::CGCXXABI::ReadArrayCookie(), recoverAddrOfEscapedLocal(), ResolveAllBranchFixups(), clang::CodeGen::DominatingLLVMValue::restore(), clang::CodeGen::DominatingLLVMValue::save(), setBlockContextParameter(), SetupCleanupBlockActivation(), SimplifyCleanupEntry(), StartFunction(), tryEmitARCCopyWeakInit(), tryEmitFusedAutoreleaseOfResult(), tryRemoveRetainOfSelf(), vectorWrapScalar16(), clang::CodeGen::ApplyDebugLocation::~ApplyDebugLocation(), clang::CodeGen::ApplyInlineDebugLocation::~ApplyInlineDebugLocation(), and clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope().
| VarBypassDetector clang::CodeGen::CodeGenFunction::Bypasses |
Definition at line 177 of file CodeGenFunction.h.
Referenced by EmitAutoVarAlloca(), and GenerateCode().
| CGCapturedStmtInfo* clang::CodeGen::CodeGenFunction::CapturedStmtInfo |
Definition at line 314 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::CGCapturedStmtRAII::CGCapturedStmtRAII(), clang::CodeGen::emitBarrierCall(), clang::CodeGen::emitCancelCall(), clang::CodeGen::emitCancellationPointCall(), EmitCapturedStmt(), clang::CodeGen::emitInlinedDirective(), EmitOMPCopyinClause(), EmitOMPFirstprivateClause(), EmitOMPLastprivateClauseInit(), EmitOMPLinearClauseFinal(), EmitOMPLinearClauseInit(), EmitOMPPrivateLoopCounters(), emitOutlinedOrderedFunction(), clang::CodeGen::emitTaskwaitCall(), clang::CodeGen::emitTaskyieldCall(), clang::CodeGen::emitThreadIDAddress(), GenerateCapturedStmtFunction(), GenerateOpenMPCapturedStmtFunction(), clang::CodeGen::CGOpenMPRuntime::getThreadID(), and clang::CodeGen::CodeGenFunction::CGCapturedStmtRAII::~CGCapturedStmtRAII().
| CodeGenModule& clang::CodeGen::CodeGenFunction::CGM |
Definition at line 168 of file CodeGenFunction.h.
Referenced by AddInitializerToStaticVarDecl(), clang::CodeGen::CallArgList::allocateArgumentMemory(), ApplyNonVirtualAndVirtualOffset(), BuildAggStore(), BuildAppleKextVirtualCall(), BuildAppleKextVirtualDestructorCall(), BuildBlockRelease(), buildFMulAdd(), BuildFunctionArgList(), CalculateCookiePadding(), CallBeginCatch(), canEmitDelegateCallArgs(), checkTargetFeatures(), CodeGenFunction(), CoerceIntOrPtrToIntOrPtr(), commonEmitCXXMemberOrOperatorCall(), ConvertType(), ConvertTypeForMem(), createAtExitStub(), CreateCoercedLoad(), CreateCoercedStore(), createCoroData(), CreateDefaultAlignTempAlloca(), createReferenceTemporary(), createRuntimeShuffleFunction(), CreateTempAlloca(), CreateTempAllocaForCoercion(), EmitAArch64BuiltinExpr(), EmitAArch64TblBuiltinExpr(), emitAddrOfFieldStorage(), EmitAggregateCopy(), EmitAlignmentAssumption(), EmitAMDGPUBuiltinExpr(), EmitAnnotationCall(), emitARCCopyOperation(), emitARCLoadOperation(), emitARCStoreOperation(), emitARCValueOperation(), EmitARMBuiltinExpr(), EmitArrayDelete(), EmitAsanPrologueOrEpilogue(), EmitAsmStmt(), EmitAtomicExpr(), emitAtomicLibcall(), EmitAtomicStore(), emitAutoreleasedReturnValueMarker(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), EmitAutoVarInit(), EmitBaseInitializer(), emitBinaryBuiltin(), EmitBlockCallExpr(), EmitBlockLiteral(), EmitBlockWithFallThrough(), EmitBranchOnBoolExpr(), emitByrefStructureInit(), EmitCallAndReturnForThunk(), EmitCapturedStmt(), EmitCaseStmt(), emitCatchDispatchBlock(), EmitCheckedInBoundsGEP(), emitCheckHandlerCall(), EmitCommonNeonBuiltinExpr(), emitCommonOMPParallelDirective(), emitCommonOMPTargetDirective(), emitCommonOMPTeamsDirective(), EmitConstructorBody(), EmitCoroutineBody(), EmitCoroutineIntrinsic(), emitCPPObjectAtomicGetterCall(), emitCPPObjectAtomicSetterCall(), EmitCtorPrologue(), EmitCUDAKernelCallExpr(), EmitCXXConstructorCall(), EmitCXXDestructorCall(), EmitCXXForRangeStmt(), EmitCXXGlobalVarDeclInit(), EmitCXXGuardedInit(), EmitCXXMemberCallExpr(), EmitCXXMemberDataPointerAddress(), EmitCXXMemberOrOperatorCall(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitCXXMemberPointerCallExpr(), EmitCXXNewAllocSize(), EmitCXXNewExpr(), EmitCXXThrowExpr(), EmitCXXTypeidExpr(), EmitDecl(), EmitDeclDestroy(), EmitDeclInit(), EmitDeclInvariant(), EmitDeclRefExprDbgValue(), EmitDelegateCXXConstructorCall(), EmitDelegatingCXXConstructorCall(), EmitDestructorBody(), EmitDirectCallee(), EmitDoStmt(), EmitDynamicCast(), EmitDynamicCastToNull(), EmitEndEHSpec(), EmitFAbs(), EmitFieldAnnotations(), emitFilterDispatchBlock(), EmitForStmt(), EmitForwardingCallToLambda(), emitFPIntBuiltin(), EmitFunctionDeclLValue(), EmitFunctionInstrumentation(), emitGlobalDtorWithCXAAtExit(), emitGlobalDtorWithTLRegDtor(), EmitGlobalVarDeclLValue(), EmitInheritedCXXConstructorCall(), emitInitWithReductionInitializer(), EmitInlinedInheritingCXXConstructorCall(), EmitLambdaStaticInvokeFunction(), EmitLambdaToBlockPointerBody(), EmitLifetimeEnd(), EmitLifetimeStart(), EmitMaterializeTemporaryExpr(), EmitMemberInitializer(), EmitMustTailThunk(), EmitNewArrayInitializer(), EmitNewDeleteCall(), EmitNullBaseClassInitialization(), EmitNullInitialization(), EmitNVPTXBuiltinExpr(), EmitNVPTXDevicePrintfCallExpr(), EmitObjCBoxedExpr(), EmitObjCCollectionLiteral(), EmitObjCMessageExpr(), EmitObjCProtocolExpr(), EmitObjCSelectorExpr(), EmitObjCStringLiteral(), EmitObjectDelete(), emitOffloadingArrays(), emitOffloadingArraysArgument(), EmitOMPAtomicCaptureExpr(), EmitOMPAtomicReadExpr(), emitOMPAtomicRMW(), EmitOMPAtomicUpdateExpr(), EmitOMPAtomicWriteExpr(), EmitOMPParallelDirective(), EmitOMPTaskLoopBasedDirective(), EmitOMPWorksharingLoop(), emitOutlinedFunctionPrologue(), EmitOverflowIntrinsic(), EmitParmDecl(), emitPointerArithmetic(), EmitPPCBuiltinExpr(), emitRangedBuiltin(), emitReductionCombiner(), EmitReturnStmt(), emitRTtypeidCall(), EmitSanitizerStatReport(), EmitScalarInit(), EmitSignBit(), EmitSpecialRegisterBuiltin(), EmitStartEHSpec(), EmitStaticVarDecl(), emitStructGetterCall(), emitStructSetterCall(), emitSuspendExpression(), EmitSwitchStmt(), EmitSynthesizedCXXCopyCtorCall(), EmitSystemZBuiltinExpr(), EmitSystemZIntrinsicWithCC(), clang::CodeGen::CGCXXABI::emitTerminateForUnexpectedException(), emitTernaryBuiltin(), EmitThreadPrivateVarDeclLValue(), EmitTypeCheck(), EmitTypeidFromVTable(), EmitTypeMetadataCodeForVCall(), emitUnaryBuiltin(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), EmitVarAnnotations(), EmitVarDecl(), emitVoidPtrDirectVAArg(), EmitVTableAssumptionLoad(), EmitVTableAssumptionLoads(), EmitVTablePtrCheck(), EmitVTableTypeCheckedLoad(), EmitWebAssemblyBuiltinExpr(), EmitWhileStmt(), emitWritebackArg(), EmitX86BuiltinExpr(), enterBlockScope(), enterByrefCleanup(), EnterCXXTryStmt(), EnterDtorCleanups(), EnterStructPointerForCoercedAccess(), ErrorUnsupported(), clang::CodeGen::CGCXXABI::ErrorUnsupportedABI(), EvaluateExprAsBool(), ExitCXXTryStmt(), FinishFunction(), clang::CodeGen::CallArgList::freeArgumentMemory(), GenerateBlockFunction(), generateByrefCopyHelper(), generateByrefDisposeHelper(), GenerateCapturedStmtFunction(), GenerateCode(), GenerateCopyHelperFunction(), generateDestroyHelper(), GenerateDestroyHelperFunction(), generateThunk(), GenerateVarArgsThunk(), clang::CodeGen::EHPersonality::get(), GetAddressOfBaseClass(), GetAddressOfDerivedClass(), getARCCleanupKind(), getAsmSrcLocInfo(), getBadCastFn(), getBadTypeidFn(), getBlockByrefInfo(), getContext(), getEHResumeBlock(), getInvokeDestImpl(), getItaniumDynamicCastFn(), getLangOpts(), getLLVMContext(), getNaturalTypeAlignment(), getNVPTXBarrier(), getNVPTXCTABarrier(), getNVPTXNumThreads(), getNVPTXThreadID(), getNVPTXWarpSize(), getTargetHooks(), getTerminateHandler(), getTerminateLandingPad(), getTypes(), getTypeSize(), GetVTablePtr(), GetVTTParameter(), incrementProfileCounter(), InitCatchParam(), InitializeVTablePointer(), InitializeVTablePointers(), InsertHelper(), LoadCXXThisAddress(), LookupNeonLLVMIntrinsic(), LValueIsSuitableForInlineAtomic(), MakeAddrLValue(), MakeNaturalAlignAddrLValue(), needsEHCleanup(), packTBLDVectorList(), clang::CodeGen::TargetCodeGenInfo::performAddrSpaceCast(), PerformReturnAdjustment(), pushTemporaryCleanup(), registerGlobalDtorWithAtExit(), clang::CodeGen::DominatingLLVMValue::save(), setBlockContextParameter(), ShouldEmitVTableTypeCheckedLoad(), ShouldInstrumentFunction(), shouldUseFusedARCCalls(), ShouldXRayInstrumentFunction(), StartFunction(), StartObjCMethod(), StartThunk(), tryEmitFusedAutoreleaseOfResult(), tryRemoveRetainOfSelf(), and ~CodeGenFunction().
| const Decl* clang::CodeGen::CodeGenFunction::CurCodeDecl |
CurCodeDecl - This is the inner-most code context, which includes blocks.
Definition at line 208 of file CodeGenFunction.h.
Referenced by EmitInheritedCXXConstructorCall(), EmitLambdaToBlockPointerBody(), EmitObjCMessageExpr(), EmitParmDecl(), clang::CodeGen::CGCXXABI::ErrorUnsupportedABI(), ExitCXXTryStmt(), FinishFunction(), FinishThunk(), clang::CodeGen::EHPersonality::get(), GetVTTParameter(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), LoadObjCSelf(), StartFunction(), StartThunk(), and tryRemoveRetainOfSelf().
| CGCoroInfo clang::CodeGen::CodeGenFunction::CurCoro |
Definition at line 221 of file CodeGenFunction.h.
Referenced by EmitCoawaitExpr(), EmitCoawaitLValue(), EmitCoreturnStmt(), EmitCoroutineBody(), EmitCoroutineIntrinsic(), EmitCoyieldExpr(), and EmitCoyieldLValue().
| llvm::Function* clang::CodeGen::CodeGenFunction::CurFn |
Definition at line 211 of file CodeGenFunction.h.
Referenced by emitAtomicCmpXchg(), emitAtomicCmpXchgFailureSet(), EmitAtomicExpr(), EmitAtomicOp(), EmitBlock(), EmitBlockAfterUses(), EmitBlockLiteral(), EmitCapturedLocals(), EmitCaseStmtRange(), EmitDestructorBody(), EmitFunctionInstrumentation(), EmitIfUsed(), EmitMustTailThunk(), EmitSEHAbnormalTermination(), EmitSEHExceptionCodeSave(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), clang::CodeGen::emitUserDefinedReduction(), enterBlockScope(), FinishFunction(), clang::CodeGen::functionFinished(), GenerateCode(), GenerateObjCMethod(), GenerateSEHFilterFunction(), GenerateSEHFinallyFunction(), GenerateVarArgsThunk(), GetAddrOfLabel(), getInvokeDestImpl(), getTerminateLandingPad(), clang::CodeGen::CGOpenMPRuntime::getThreadID(), recoverAddrOfEscapedLocal(), StartFunction(), startOutlinedSEHHelper(), and ~CodeGenFunction().
| const CGFunctionInfo* clang::CodeGen::CodeGenFunction::CurFnInfo |
Definition at line 209 of file CodeGenFunction.h.
Referenced by EmitAsmStmt(), EmitCallAndReturnForThunk(), EmitMustTailThunk(), FinishFunction(), and StartFunction().
| const Decl* clang::CodeGen::CodeGenFunction::CurFuncDecl |
CurFuncDecl - Holds the Decl for the current outermost non-closure context.
Definition at line 206 of file CodeGenFunction.h.
Referenced by checkTargetFeatures(), computeBlockInfo(), emitCommonOMPTargetDirective(), EmitObjCMessageExpr(), clang::CodeGen::CGOpenMPRuntime::emitUpdateLocation(), FinishThunk(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), LoadCXXThisAddress(), LoadObjCSelf(), ShouldInstrumentFunction(), StartFunction(), StartThunk(), and TypeOfSelfObject().
| bool clang::CodeGen::CodeGenFunction::CurFuncIsThunk |
In C++, whether we are code generating a thunk.
This controls whether we should emit cleanups.
Definition at line 371 of file CodeGenFunction.h.
Referenced by EmitParmDecl(), and StartThunk().
| GlobalDecl clang::CodeGen::CodeGenFunction::CurGD |
CurGD - The GlobalDecl for the current function being compiled.
Definition at line 224 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CGCXXABI::buildThisParam(), EmitAsanPrologueOrEpilogue(), EmitCallAndReturnForThunk(), EmitConstructorBody(), EmitCXXConstructExpr(), EmitDelegateCXXConstructorCall(), EmitDelegatingCXXConstructorCall(), EmitDestructorBody(), emitImplicitAssignmentOperatorBody(), EmitInlinedInheritingCXXConstructorCall(), EmitLambdaToBlockPointerBody(), EmitParmDecl(), GenerateBlockFunction(), GenerateCode(), GetVTTParameter(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), StartObjCMethod(), and StartThunk().
| llvm::Instruction* clang::CodeGen::CodeGenFunction::CurrentFuncletPad = nullptr |
Definition at line 400 of file CodeGenFunction.h.
Referenced by emitCatchPadBlock(), ExitCXXTryStmt(), getBundlesForCoroEnd(), getTerminateHandler(), and isCleanupPadScope().
| const FunctionDecl* clang::CodeGen::CodeGenFunction::CurSEHParent = nullptr |
Definition at line 380 of file CodeGenFunction.h.
Referenced by currentFunctionUsesSEHTry(), StartFunction(), and startOutlinedSEHHelper().
|
static |
Definition at line 3402 of file CodeGenFunction.h.
Referenced by emitAutoVarTypeCleanup(), EmitAutoVarWithLifetime(), enterBlockScope(), and pushTemporaryCleanup().
|
static |
Definition at line 3403 of file CodeGenFunction.h.
Referenced by EmitAutoVarWithLifetime(), getDestroyer(), and pushTemporaryCleanup().
|
static |
Definition at line 3404 of file CodeGenFunction.h.
Referenced by EmitAutoVarWithLifetime(), getDestroyer(), and pushTemporaryCleanup().
|
static |
Definition at line 2282 of file CodeGenFunction.h.
Referenced by EmitCXXAggrConstructorCall(), getDestroyer(), and pushTemporaryCleanup().
| llvm::BasicBlock* clang::CodeGen::CodeGenFunction::EHResumeBlock |
EHResumeBlock - Unified block containing a call to llvm.eh.resume.
Definition at line 435 of file CodeGenFunction.h.
Referenced by FinishFunction(), and getEHResumeBlock().
| llvm::AllocaInst* clang::CodeGen::CodeGenFunction::EHSelectorSlot |
The selector slot.
Under the MandatoryCleanup model, all landing pads write the current selector value into this alloca.
Definition at line 443 of file CodeGenFunction.h.
Referenced by getEHSelectorSlot().
| EHScopeStack clang::CodeGen::CodeGenFunction::EHStack |
Definition at line 396 of file CodeGenFunction.h.
Referenced by CallBeginCatch(), EmitAnyExprToExn(), EmitArrayDelete(), clang::CodeGen::CGObjCRuntime::EmitAtSynchronizedStmt(), EmitAutoVarAlloca(), EmitAutoVarCleanups(), emitAutoVarTypeCleanup(), EmitBaseInitializer(), EmitCoroutineBody(), emitCXXDestructMethod(), EmitCXXNewExpr(), EmitDelegatingCXXConstructorCall(), clang::CodeGen::emitDoacrossInit(), EmitEndEHSpec(), EmitLabel(), EmitLandingPad(), EmitNewArrayInitializer(), EmitObjCAutoreleasePoolCleanup(), EmitObjCAutoreleasePoolStmt(), EmitObjectDelete(), EmitParmDecl(), EmitStartEHSpec(), clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), enterBlockScope(), enterByrefCleanup(), EnterCXXTryStmt(), EnterDtorCleanups(), EnterNewDeleteCleanup(), EnterSEHTryStmt(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), ExitCXXTryStmt(), ExitSEHTryStmt(), FinishFunction(), getEHDispatchBlock(), getInvokeDest(), getInvokeDestImpl(), getJumpDestInCurrentScope(), getMSVCDispatchBlock(), InitCatchParam(), initFullExprCleanup(), clang::CodeGen::RegionCodeGenTy::operator()(), popCatchScope(), pushCallObjectDeleteCleanup(), PushDestructorCleanup(), pushFullExprCleanup(), pushLifetimeExtendedDestroy(), pushStackRestore(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::requiresCleanups(), clang::CodeGen::CodeGenFunction::LexicalScope::rescopeLabels(), ResolveAllBranchFixups(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::RunCleanupsScope(), SetupCleanupBlockActivation(), SimplifyForwardingBlocks(), StartFunction(), and StartObjCMethod().
|
static |
Definition at line 3405 of file CodeGenFunction.h.
Referenced by enterBlockScope().
| llvm::Value* clang::CodeGen::CodeGenFunction::ExceptionSlot |
The exception slot.
All landing pads write the current exception pointer into this alloca.
Definition at line 439 of file CodeGenFunction.h.
Referenced by getExceptionSlot().
| CGBlockInfo* clang::CodeGen::CodeGenFunction::FirstBlockInfo |
FirstBlockInfo - The head of a singly-linked-list of block layouts.
Definition at line 432 of file CodeGenFunction.h.
Referenced by EmitBlockLiteral(), enterBlockScope(), and ~CodeGenFunction().
| QualType clang::CodeGen::CodeGenFunction::FnRetTy |
Definition at line 210 of file CodeGenFunction.h.
Referenced by EmitAsmStmt(), EmitInlinedInheritingCXXConstructorCall(), EmitReturnStmt(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), and StartFunction().
| bool clang::CodeGen::CodeGenFunction::IsOutlinedSEHHelper |
True if the current function is an outlined SEH helper.
This can be a finally block or filter expression.
Definition at line 384 of file CodeGenFunction.h.
Referenced by EmitReturnStmt(), and startOutlinedSEHHelper().
| bool clang::CodeGen::CodeGenFunction::IsSanitizerScope |
True if CodeGen currently emits code implementing sanitizer checks.
Definition at line 359 of file CodeGenFunction.h.
Referenced by InsertHelper(), and clang::CodeGen::CodeGenFunction::SanitizerScope::SanitizerScope().
Definition at line 389 of file CodeGenFunction.h.
Referenced by getCaptureFieldType(), and StartFunction().
| FieldDecl* clang::CodeGen::CodeGenFunction::LambdaThisCaptureField |
Definition at line 390 of file CodeGenFunction.h.
Referenced by StartFunction().
| llvm::SmallVector<char, 256> clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupStack |
Definition at line 397 of file CodeGenFunction.h.
Referenced by pushCleanupAfterFullExpr(), clang::CodeGen::CodeGenFunction::RunCleanupsScope::RunCleanupsScope(), and ~CodeGenFunction().
| LoopInfoStack clang::CodeGen::CodeGenFunction::LoopStack |
Definition at line 172 of file CodeGenFunction.h.
Referenced by EmitCXXForRangeStmt(), EmitDoStmt(), EmitForStmt(), EmitOMPInnerLoop(), emitSimdlenSafelenClause(), EmitWhileStmt(), and InsertHelper().
| unsigned clang::CodeGen::CodeGenFunction::NextCleanupDestIndex |
Definition at line 429 of file CodeGenFunction.h.
Referenced by getJumpDestForLabel(), and getJumpDestInCurrentScope().
| llvm::AllocaInst* clang::CodeGen::CodeGenFunction::NormalCleanupDest |
i32s containing the indexes of the cleanup destinations.
Definition at line 427 of file CodeGenFunction.h.
Referenced by destroyOptimisticNormalEntry().
| llvm::DenseMap<const VarDecl *, llvm::Value *> clang::CodeGen::CodeGenFunction::NRVOFlags |
A mapping from NRVO variables to the flags used to indicate when the NRVO has been applied to this variable.
Definition at line 394 of file CodeGenFunction.h.
Referenced by EmitAutoVarAlloca(), and EmitReturnStmt().
| SmallVector<llvm::Value*, 8> clang::CodeGen::CodeGenFunction::ObjCEHValueStack |
ObjCEHValueStack - Stack of Objective-C exception values, used for rethrows.
Definition at line 466 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt().
| EHScopeStack::stable_iterator clang::CodeGen::CodeGenFunction::PrologueCleanupDepth |
PrologueCleanupDepth - The cleanup depth enclosing all the cleanups associated with the parameters.
Definition at line 228 of file CodeGenFunction.h.
Referenced by FinishFunction(), and StartFunction().
| JumpDest clang::CodeGen::CodeGenFunction::ReturnBlock |
ReturnBlock - Unified return block.
Definition at line 231 of file CodeGenFunction.h.
Referenced by EmitForwardingCallToLambda(), EmitReturnBlock(), EmitReturnStmt(), FinishFunction(), getOMPCancelDestination(), and StartFunction().
| Address clang::CodeGen::CodeGenFunction::ReturnValue |
ReturnValue - The temporary alloca to hold the return value.
This is invalid iff the function has no return value.
Definition at line 235 of file CodeGenFunction.h.
Referenced by EmitAsmStmt(), EmitAutoVarAlloca(), EmitCallAndReturnForThunk(), EmitCXXMemberPointerCallExpr(), EmitForwardingCallToLambda(), EmitInlinedInheritingCXXConstructorCall(), emitProxyTaskFunction(), EmitReturnStmt(), emitStructGetterCall(), clang::CodeGen::emitThreadPrivateVarDefinition(), findDominatingStoreToReturnValue(), generateObjCGetterBody(), GenerateSEHFilterFunction(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), and StartFunction().
| SanitizerSet clang::CodeGen::CodeGenFunction::SanOpts |
Sanitizers enabled for this function.
Definition at line 356 of file CodeGenFunction.h.
Referenced by EmitCheckedInBoundsGEP(), EmitCXXMemberOrOperatorMemberCallExpr(), EmitNullabilityCheck(), emitPointerArithmetic(), EmitTypeCheck(), EmitTypeMetadataCodeForVCall(), EmitVariablyModifiedType(), EmitVTablePtrCheckForCall(), EmitVTablePtrCheckForCast(), EnterDtorCleanups(), GenerateCode(), sanitizePerformTypeCheck(), ShouldEmitVTableTypeCheckedLoad(), and StartFunction().
| bool clang::CodeGen::CodeGenFunction::SawAsmBlock |
Whether we processed a Microsoft-style asm block during CodeGen.
These can potentially set the return value.
Definition at line 378 of file CodeGenFunction.h.
Referenced by EmitAsmStmt(), and GenerateCode().
| SmallVector<Address, 1> clang::CodeGen::CodeGenFunction::SEHCodeSlotStack |
A stack of exception code slots.
Entering an __except block pushes a slot on the stack and leaving pops one. The __exception_code() intrinsic loads a value from the top of the stack.
Definition at line 448 of file CodeGenFunction.h.
Referenced by EmitCapturedLocals(), EmitSEHExceptionCode(), EmitSEHExceptionCodeSave(), EnterSEHTryStmt(), and ExitSEHTryStmt().
| llvm::Value* clang::CodeGen::CodeGenFunction::SEHInfo = nullptr |
Value returned by __exception_info intrinsic.
Definition at line 451 of file CodeGenFunction.h.
Referenced by EmitSEHExceptionCodeSave(), and EmitSEHExceptionInfo().
| llvm::SmallVector<const JumpDest *, 2> clang::CodeGen::CodeGenFunction::SEHTryEpilogueStack |
Definition at line 398 of file CodeGenFunction.h.
Referenced by EmitSEHLeaveStmt(), EmitSEHTryStmt(), and isSEHTryScope().
| const TargetInfo& clang::CodeGen::CodeGenFunction::Target |
Definition at line 169 of file CodeGenFunction.h.
Referenced by EmitCXXNewExpr(), EmitIndirectGotoStmt(), and getTarget().
1.8.6