• Home
  • Raw
  • Download

Lines Matching refs:CGM

49       CGM.getObjCRuntime().GenerateConstantString(E->getString());  in EmitObjCStringLiteral()
71 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr()
90 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral()
155 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral()
165 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCCollectionLiteral()
194 return CGM.getObjCRuntime().GetSelector(Builder, E->getSelector()); in EmitObjCSelectorExpr()
199 return CGM.getObjCRuntime().GenerateProtocolRef(Builder, E->getProtocol()); in EmitObjCProtocolExpr()
284 CGM.getLangOpts().ObjCAutoRefCount && in EmitObjCMessageExpr()
288 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMessageExpr()
422 CGF.CGM.getObjCRuntime().GenerateMessageSendSuper(CGF, ReturnValueSlot(), in Emit()
443 if (CGM.getModuleDebugInfo() && !OMD->hasAttr<NoDebugAttr>()) in StartObjCMethod()
444 DebugInfo = CGM.getModuleDebugInfo(); in StartObjCMethod()
446 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
448 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
449 CGM.SetInternalFunctionAttributes(OMD, Fn, FI); in StartObjCMethod()
463 if (CGM.getLangOpts().ObjCAutoRefCount && in StartObjCMethod()
505 args.add(RValue::get(CGF.CGM.getSize(size)), Context.getSizeType()); in emitStructGetterCall()
509 llvm::Value *fn = CGF.CGM.getObjCRuntime().GetGetStructFunction(); in emitStructGetterCall()
527 static CharUnits getMaxAtomicAccessSize(CodeGenModule &CGM, in getMaxAtomicAccessSize() argument
534 return CharUnits::fromQuantity(CGM.PointerSizeInBytes); in getMaxAtomicAccessSize()
569 PropertyImplStrategy(CodeGenModule &CGM,
584 PropertyImplStrategy::PropertyImplStrategy(CodeGenModule &CGM, in PropertyImplStrategy() argument
597 = CGM.getContext().getTypeInfoInChars(ivarType); in PropertyImplStrategy()
609 if (CGM.getLangOpts().getGC() == LangOptions::GCOnly) { in PropertyImplStrategy()
615 } else if (CGM.getLangOpts().ObjCAutoRefCount && !IsAtomic) { in PropertyImplStrategy()
650 (CGM.getLangOpts().getGC() && in PropertyImplStrategy()
651 CGM.getContext().getObjCGCAttrKind(ivarType))) { in PropertyImplStrategy()
657 if (CGM.getLangOpts().getGC()) in PropertyImplStrategy()
680 CGM.getContext().getTargetInfo().getTriple().getArch(); in PropertyImplStrategy()
692 if (IvarSize > getMaxAtomicAccessSize(CGM, arch)) { in PropertyImplStrategy()
765 CGF.CGM.getObjCRuntime().GetCppAtomicObjectFunction(); in emitCPPObjectAtomicGetterCall()
798 PropertyImplStrategy strategy(CGM, propImpl); in generateObjCGetterBody()
829 CGM.getObjCRuntime().GetPropertyGetFunction(); in generateObjCGetterBody()
831 CGM.ErrorUnsupported(propImpl, "Obj-C getter requiring atomic copy"); in generateObjCGetterBody()
944 CGF.CGM.getSize(CGF.getContext().getTypeSizeInChars(ivar->getType())); in emitStructSetterCall()
954 llvm::Value *copyStructFn = CGF.CGM.getObjCRuntime().GetSetStructFunction(); in emitStructSetterCall()
991 CGF.CGM.getObjCRuntime().GetCppAtomicObjectFunction(); in emitCPPObjectAtomicSetterCall()
1025 static bool UseOptimizedSetter(CodeGenModule &CGM) { in UseOptimizedSetter() argument
1026 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) in UseOptimizedSetter()
1028 const TargetInfo &Target = CGM.getContext().getTargetInfo(); in UseOptimizedSetter()
1057 PropertyImplStrategy strategy(CGM, propImpl); in generateObjCSetterBody()
1092 if (UseOptimizedSetter(CGM)) { in generateObjCSetterBody()
1095 CGM.getObjCRuntime() in generateObjCSetterBody()
1099 CGM.ErrorUnsupported(propImpl, "Obj-C optimized setter - NYI"); in generateObjCSetterBody()
1104 setPropertyFn = CGM.getObjCRuntime().GetPropertySetFunction(); in generateObjCSetterBody()
1106 CGM.ErrorUnsupported(propImpl, "Obj-C setter requiring atomic copy"); in generateObjCSetterBody()
1296 MD->createImplicitParams(CGM.getContext(), IMP->getClassInterface()); in GenerateObjCCtorDtorMethod()
1318 CodeGenTypes &Types = CGM.getTypes(); in GenerateObjCCtorDtorMethod()
1319 QualType IdTy(CGM.getContext().getObjCIdType()); in GenerateObjCCtorDtorMethod()
1340 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) in IvarTypeWithAggrGCObjects()
1362 CGM.getObjCRuntime().EnumerationMutationFunction(); in EmitObjCForCollectionStmt()
1365 CGM.ErrorUnsupported(&S, "Obj-C fast enumeration for this runtime"); in EmitObjCForCollectionStmt()
1381 QualType StateTy = CGM.getObjCFastEnumerationStateType(); in EmitObjCForCollectionStmt()
1390 &CGM.getContext().Idents.get("countByEnumeratingWithState"), in EmitObjCForCollectionStmt()
1391 &CGM.getContext().Idents.get("objects"), in EmitObjCForCollectionStmt()
1392 &CGM.getContext().Idents.get("count") in EmitObjCForCollectionStmt()
1395 CGM.getContext().Selectors.getSelector(llvm::array_lengthof(II), &II[0]); in EmitObjCForCollectionStmt()
1438 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCForCollectionStmt()
1505 EmitCall(CGM.getTypes().arrangeFunctionCall(getContext().VoidTy, Args2, in EmitObjCForCollectionStmt()
1600 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCForCollectionStmt()
1637 CGM.getObjCRuntime().EmitTryStmt(*this, S); in EmitObjCAtTryStmt()
1641 CGM.getObjCRuntime().EmitThrowStmt(*this, S); in EmitObjCAtThrowStmt()
1646 CGM.getObjCRuntime().EmitSynchronizedStmt(*this, S); in EmitObjCAtSynchronizedStmt()
1683 static llvm::Constant *createARCRuntimeFunction(CodeGenModule &CGM, in createARCRuntimeFunction() argument
1686 llvm::Constant *fn = CGM.CreateRuntimeFunction(type, fnName); in createARCRuntimeFunction()
1690 if (!CGM.getCodeGenOpts().ObjCRuntimeHasARC) in createARCRuntimeFunction()
1710 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCValueOperation()
1735 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCLoadOperation()
1771 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCStoreOperation()
1800 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCCopyOperation()
1824 CGM.getARCEntrypoints().objc_retain, in EmitARCRetainNonBlock()
1838 CGM.getARCEntrypoints().objc_retainBlock, in EmitARCRetainBlock()
1848 assert(call->getCalledValue() == CGM.getARCEntrypoints().objc_retainBlock); in EmitARCRetainBlock()
1868 = CGM.getARCEntrypoints().retainAutoreleasedReturnValueMarker; in EmitARCRetainAutoreleasedReturnValue()
1871 = CGM.getTargetCodeGenInfo() in EmitARCRetainAutoreleasedReturnValue()
1879 } else if (CGM.getCodeGenOpts().OptimizationLevel == 0) { in EmitARCRetainAutoreleasedReturnValue()
1890 CGM.getModule().getOrInsertNamedMetadata( in EmitARCRetainAutoreleasedReturnValue()
1904 CGM.getARCEntrypoints().objc_retainAutoreleasedReturnValue, in EmitARCRetainAutoreleasedReturnValue()
1913 llvm::Constant *&fn = CGM.getARCEntrypoints().objc_release; in EmitARCRelease()
1918 fn = createARCRuntimeFunction(CGM, fnType, "objc_release"); in EmitARCRelease()
1943 llvm::Constant *&fn = CGM.getARCEntrypoints().objc_storeStrong; in EmitARCStoreStrongCall()
1948 fn = createARCRuntimeFunction(CGM, fnType, "objc_storeStrong"); in EmitARCStoreStrongCall()
2000 CGM.getARCEntrypoints().objc_autorelease, in EmitARCAutorelease()
2009 CGM.getARCEntrypoints().objc_autoreleaseReturnValue, in EmitARCAutoreleaseReturnValue()
2018 CGM.getARCEntrypoints().objc_retainAutoreleaseReturnValue, in EmitARCRetainAutoreleaseReturnValue()
2046 CGM.getARCEntrypoints().objc_retainAutorelease, in EmitARCRetainAutoreleaseNonBlock()
2054 CGM.getARCEntrypoints().objc_loadWeak, in EmitARCLoadWeak()
2061 CGM.getARCEntrypoints().objc_loadWeakRetained, in EmitARCLoadWeakRetained()
2071 CGM.getARCEntrypoints().objc_storeWeak, in EmitARCStoreWeak()
2085 CGM.getCodeGenOpts().OptimizationLevel == 0) { in EmitARCInitWeak()
2091 CGM.getARCEntrypoints().objc_initWeak, in EmitARCInitWeak()
2098 llvm::Constant *&fn = CGM.getARCEntrypoints().objc_destroyWeak; in EmitARCDestroyWeak()
2103 fn = createARCRuntimeFunction(CGM, fnType, "objc_destroyWeak"); in EmitARCDestroyWeak()
2118 CGM.getARCEntrypoints().objc_moveWeak, in EmitARCMoveWeak()
2127 CGM.getARCEntrypoints().objc_copyWeak, in EmitARCCopyWeak()
2134 llvm::Constant *&fn = CGM.getRREntrypoints().objc_autoreleasePoolPush; in EmitObjCAutoreleasePoolPush()
2138 fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPush"); in EmitObjCAutoreleasePoolPush()
2152 llvm::Constant *&fn = CGM.getRREntrypoints().objc_autoreleasePoolPop; in EmitObjCAutoreleasePoolPop()
2160 fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPop"); in EmitObjCAutoreleasePoolPop()
2173 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMRRAutoreleasePoolPush()
2176 IdentifierInfo *II = &CGM.getContext().Idents.get("alloc"); in EmitObjCMRRAutoreleasePoolPush()
2186 II = &CGM.getContext().Idents.get("init"); in EmitObjCMRRAutoreleasePoolPush()
2198 IdentifierInfo *II = &CGM.getContext().Idents.get("drain"); in EmitObjCMRRAutoreleasePoolPop()
2201 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCMRRAutoreleasePoolPop()
2247 if (CGM.getLangOpts().ObjCAutoRefCount) in EmitObjCAutoreleasePoolCleanup()
2720 if (CGM.getCodeGenOpts().ObjCRuntimeHasARC) { in EmitObjCAutoreleasePoolStmt()
2772 if ((HelperFn = CGM.getAtomicSetterHelperFnMap(Ty))) in GenerateObjCAtomicSetterCopyHelperFunction()
2777 = &CGM.getContext().Idents.get("__assign_helper_atomic_property_"); in GenerateObjCAtomicSetterCopyHelperFunction()
2799 CGM.getTypes().arrangeFunctionDeclaration(C.VoidTy, args, in GenerateObjCAtomicSetterCopyHelperFunction()
2803 llvm::FunctionType *LTy = CGM.getTypes().GetFunctionType(FI); in GenerateObjCAtomicSetterCopyHelperFunction()
2808 &CGM.getModule()); in GenerateObjCAtomicSetterCopyHelperFunction()
2810 if (CGM.getModuleDebugInfo()) in GenerateObjCAtomicSetterCopyHelperFunction()
2811 DebugInfo = CGM.getModuleDebugInfo(); in GenerateObjCAtomicSetterCopyHelperFunction()
2836 CGM.setAtomicSetterHelperFnMap(Ty, HelperFn); in GenerateObjCAtomicSetterCopyHelperFunction()
2857 if ((HelperFn = CGM.getAtomicGetterHelperFnMap(Ty))) in GenerateObjCAtomicGetterCopyHelperFunction()
2863 = &CGM.getContext().Idents.get("__copy_helper_atomic_property_"); in GenerateObjCAtomicGetterCopyHelperFunction()
2885 CGM.getTypes().arrangeFunctionDeclaration(C.VoidTy, args, in GenerateObjCAtomicGetterCopyHelperFunction()
2889 llvm::FunctionType *LTy = CGM.getTypes().GetFunctionType(FI); in GenerateObjCAtomicGetterCopyHelperFunction()
2893 "__copy_helper_atomic_property_", &CGM.getModule()); in GenerateObjCAtomicGetterCopyHelperFunction()
2895 if (CGM.getModuleDebugInfo()) in GenerateObjCAtomicGetterCopyHelperFunction()
2896 DebugInfo = CGM.getModuleDebugInfo(); in GenerateObjCAtomicGetterCopyHelperFunction()
2944 CGM.setAtomicGetterHelperFnMap(Ty, HelperFn); in GenerateObjCAtomicGetterCopyHelperFunction()
2959 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitBlockCopyAndAutorelease()