• Home
  • Raw
  • Download

Lines Matching refs:CGM

49       CGM.getObjCRuntime().GenerateConstantString(E->getString()).getPointer();  in EmitObjCStringLiteral()
72 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr()
94 llvm::Constant *GV = CGM.GetAddrOfConstantCString(Str).getPointer(); in EmitObjCBoxedExpr()
115 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral()
142 CGM.getCodeGenOpts().OptimizationLevel != 0); in EmitObjCCollectionLiteral()
195 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral()
205 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCCollectionLiteral()
240 return CGM.getObjCRuntime().GetSelector(*this, E->getSelector()); in EmitObjCSelectorExpr()
245 return CGM.getObjCRuntime().GenerateProtocolRef(*this, E->getProtocol()); in EmitObjCProtocolExpr()
368 CGM.getLangOpts().ObjCAutoRefCount && in EmitObjCMessageExpr()
372 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMessageExpr()
502 CGF.CGM.getObjCRuntime().GenerateMessageSendSuper(CGF, ReturnValueSlot(), in Emit()
526 llvm::Function *Fn = CGM.getObjCRuntime().GenerateMethod(OMD, CD); in StartObjCMethod()
528 const CGFunctionInfo &FI = CGM.getTypes().arrangeObjCMethodDeclaration(OMD); in StartObjCMethod()
529 CGM.SetInternalFunctionAttributes(OMD, Fn, FI); in StartObjCMethod()
543 if (CGM.getLangOpts().ObjCAutoRefCount && in StartObjCMethod()
588 args.add(RValue::get(CGF.CGM.getSize(size)), Context.getSizeType()); in emitStructGetterCall()
592 llvm::Value *fn = CGF.CGM.getObjCRuntime().GetGetStructFunction(); in emitStructGetterCall()
608 static CharUnits getMaxAtomicAccessSize(CodeGenModule &CGM, in getMaxAtomicAccessSize() argument
615 return CharUnits::fromQuantity(CGM.PointerSizeInBytes); in getMaxAtomicAccessSize()
650 PropertyImplStrategy(CodeGenModule &CGM,
665 PropertyImplStrategy::PropertyImplStrategy(CodeGenModule &CGM, in PropertyImplStrategy() argument
678 CGM.getContext().getTypeInfoInChars(ivarType); in PropertyImplStrategy()
690 if (CGM.getLangOpts().getGC() == LangOptions::GCOnly) { in PropertyImplStrategy()
696 } else if (CGM.getLangOpts().ObjCAutoRefCount && !IsAtomic) { in PropertyImplStrategy()
740 (CGM.getLangOpts().getGC() && in PropertyImplStrategy()
741 CGM.getContext().getObjCGCAttrKind(ivarType))) { in PropertyImplStrategy()
747 if (CGM.getLangOpts().getGC()) in PropertyImplStrategy()
770 CGM.getTarget().getTriple().getArch(); in PropertyImplStrategy()
782 if (IvarSize > getMaxAtomicAccessSize(CGM, arch)) { in PropertyImplStrategy()
798 CodeGenFunction(CGM).GenerateObjCAtomicGetterCopyHelperFunction(PID); in GenerateObjCGetter()
856 CGF.CGM.getObjCRuntime().GetCppAtomicObjectGetFunction(); in emitCPPObjectAtomicGetterCall()
889 PropertyImplStrategy strategy(CGM, propImpl); in generateObjCGetterBody()
914 uint64_t retTySize = CGM.getDataLayout().getTypeSizeInBits(retTy); in generateObjCGetterBody()
931 CGM.getObjCRuntime().GetPropertyGetFunction(); in generateObjCGetterBody()
933 CGM.ErrorUnsupported(propImpl, "Obj-C getter requiring atomic copy"); in generateObjCGetterBody()
1061 CGF.CGM.getSize(CGF.getContext().getTypeSizeInChars(ivar->getType())); in emitStructSetterCall()
1071 llvm::Value *copyStructFn = CGF.CGM.getObjCRuntime().GetSetStructFunction(); in emitStructSetterCall()
1107 CGF.CGM.getObjCRuntime().GetCppAtomicObjectSetFunction(); in emitCPPObjectAtomicSetterCall()
1138 static bool UseOptimizedSetter(CodeGenModule &CGM) { in UseOptimizedSetter() argument
1139 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) in UseOptimizedSetter()
1141 return CGM.getLangOpts().ObjCRuntime.hasOptimizedSetter(); in UseOptimizedSetter()
1165 PropertyImplStrategy strategy(CGM, propImpl); in generateObjCSetterBody()
1202 if (UseOptimizedSetter(CGM)) { in generateObjCSetterBody()
1205 CGM.getObjCRuntime() in generateObjCSetterBody()
1209 CGM.ErrorUnsupported(propImpl, "Obj-C optimized setter - NYI"); in generateObjCSetterBody()
1214 setPropertyFn = CGM.getObjCRuntime().GetPropertySetFunction(); in generateObjCSetterBody()
1216 CGM.ErrorUnsupported(propImpl, "Obj-C setter requiring atomic copy"); in generateObjCSetterBody()
1324 CodeGenFunction(CGM).GenerateObjCAtomicSetterCopyHelperFunction(PID); in GenerateObjCSetter()
1405 MD->createImplicitParams(CGM.getContext(), IMP->getClassInterface()); in GenerateObjCCtorDtorMethod()
1424 CodeGenTypes &Types = CGM.getTypes(); in GenerateObjCCtorDtorMethod()
1425 QualType IdTy(CGM.getContext().getObjCIdType()); in GenerateObjCCtorDtorMethod()
1454 CGM.getObjCRuntime().EnumerationMutationFunction(); in EmitObjCForCollectionStmt()
1457 CGM.ErrorUnsupported(&S, "Obj-C fast enumeration for this runtime"); in EmitObjCForCollectionStmt()
1473 QualType StateTy = CGM.getObjCFastEnumerationStateType(); in EmitObjCForCollectionStmt()
1482 &CGM.getContext().Idents.get("countByEnumeratingWithState"), in EmitObjCForCollectionStmt()
1483 &CGM.getContext().Idents.get("objects"), in EmitObjCForCollectionStmt()
1484 &CGM.getContext().Idents.get("count") in EmitObjCForCollectionStmt()
1487 CGM.getContext().Selectors.getSelector(llvm::array_lengthof(II), &II[0]); in EmitObjCForCollectionStmt()
1534 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCForCollectionStmt()
1610 CGM.getTypes().arrangeBuiltinFunctionCall(getContext().VoidTy, Args2), in EmitObjCForCollectionStmt()
1708 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCForCollectionStmt()
1742 CGM.getObjCRuntime().EmitTryStmt(*this, S); in EmitObjCAtTryStmt()
1746 CGM.getObjCRuntime().EmitThrowStmt(*this, S); in EmitObjCAtThrowStmt()
1751 CGM.getObjCRuntime().EmitSynchronizedStmt(*this, S); in EmitObjCAtSynchronizedStmt()
1784 llvm::Constant *&fn = CGM.getObjCEntrypoints().clang_arc_use; in EmitARCIntrinsicUse()
1787 llvm::FunctionType::get(CGM.VoidTy, None, true); in EmitARCIntrinsicUse()
1788 fn = CGM.CreateRuntimeFunction(fnType, "clang.arc.use"); in EmitARCIntrinsicUse()
1797 static llvm::Constant *createARCRuntimeFunction(CodeGenModule &CGM, in createARCRuntimeFunction() argument
1800 llvm::Constant *fn = CGM.CreateRuntimeFunction(type, fnName); in createARCRuntimeFunction()
1806 if (!CGM.getLangOpts().ObjCRuntime.hasNativeARC()) { in createARCRuntimeFunction()
1831 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCValueOperation()
1856 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCLoadOperation()
1888 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCStoreOperation()
1918 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCCopyOperation()
1942 CGM.getObjCEntrypoints().objc_retain, in EmitARCRetainNonBlock()
1956 CGM.getObjCEntrypoints().objc_retainBlock, in EmitARCRetainBlock()
1966 assert(call->getCalledValue() == CGM.getObjCEntrypoints().objc_retainBlock); in EmitARCRetainBlock()
1979 = CGF.CGM.getObjCEntrypoints().retainAutoreleasedReturnValueMarker; in emitAutoreleasedReturnValueMarker()
1982 = CGF.CGM.getTargetCodeGenInfo() in emitAutoreleasedReturnValueMarker()
1990 } else if (CGF.CGM.getCodeGenOpts().OptimizationLevel == 0) { in emitAutoreleasedReturnValueMarker()
2001 CGF.CGM.getModule().getOrInsertNamedMetadata( in emitAutoreleasedReturnValueMarker()
2026 CGM.getObjCEntrypoints().objc_retainAutoreleasedReturnValue, in EmitARCRetainAutoreleasedReturnValue()
2041 CGM.getObjCEntrypoints().objc_unsafeClaimAutoreleasedReturnValue, in EmitARCUnsafeClaimAutoreleasedReturnValue()
2051 llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_release; in EmitARCRelease()
2055 fn = createARCRuntimeFunction(CGM, fnType, "objc_release"); in EmitARCRelease()
2081 if (CGM.getCodeGenOpts().OptimizationLevel == 0) { in EmitARCDestroyStrong()
2098 llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_storeStrong; in EmitARCStoreStrongCall()
2103 fn = createARCRuntimeFunction(CGM, fnType, "objc_storeStrong"); in EmitARCStoreStrongCall()
2156 CGM.getObjCEntrypoints().objc_autorelease, in EmitARCAutorelease()
2165 CGM.getObjCEntrypoints().objc_autoreleaseReturnValue, in EmitARCAutoreleaseReturnValue()
2175 CGM.getObjCEntrypoints().objc_retainAutoreleaseReturnValue, in EmitARCRetainAutoreleaseReturnValue()
2204 CGM.getObjCEntrypoints().objc_retainAutorelease, in EmitARCRetainAutoreleaseNonBlock()
2212 CGM.getObjCEntrypoints().objc_loadWeak, in EmitARCLoadWeak()
2219 CGM.getObjCEntrypoints().objc_loadWeakRetained, in EmitARCLoadWeakRetained()
2229 CGM.getObjCEntrypoints().objc_storeWeak, in EmitARCStoreWeak()
2243 CGM.getCodeGenOpts().OptimizationLevel == 0) { in EmitARCInitWeak()
2249 CGM.getObjCEntrypoints().objc_initWeak, in EmitARCInitWeak()
2256 llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_destroyWeak; in EmitARCDestroyWeak()
2260 fn = createARCRuntimeFunction(CGM, fnType, "objc_destroyWeak"); in EmitARCDestroyWeak()
2274 CGM.getObjCEntrypoints().objc_moveWeak, in EmitARCMoveWeak()
2283 CGM.getObjCEntrypoints().objc_copyWeak, in EmitARCCopyWeak()
2290 llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_autoreleasePoolPush; in EmitObjCAutoreleasePoolPush()
2294 fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPush"); in EmitObjCAutoreleasePoolPush()
2305 llvm::Constant *&fn = CGM.getObjCEntrypoints().objc_autoreleasePoolPop; in EmitObjCAutoreleasePoolPop()
2312 fn = createARCRuntimeFunction(CGM, fnType, "objc_autoreleasePoolPop"); in EmitObjCAutoreleasePoolPop()
2325 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMRRAutoreleasePoolPush()
2328 IdentifierInfo *II = &CGM.getContext().Idents.get("alloc"); in EmitObjCMRRAutoreleasePoolPush()
2338 II = &CGM.getContext().Idents.get("init"); in EmitObjCMRRAutoreleasePoolPush()
2350 IdentifierInfo *II = &CGM.getContext().Idents.get("drain"); in EmitObjCMRRAutoreleasePoolPop()
2353 CGM.getObjCRuntime().GenerateMessageSend(*this, ReturnValueSlot(), in EmitObjCMRRAutoreleasePoolPop()
2397 if (CGM.getLangOpts().ObjCAutoRefCount) in EmitObjCAutoreleasePoolCleanup()
2537 CGM.getLangOpts().ObjCRuntime.hasARCUnsafeClaimAutoreleasedReturnValue()) { in EmitARCReclaimReturnedObject()
3129 if (CGM.getLangOpts().ObjCRuntime.hasNativeARC()) { in EmitObjCAutoreleasePoolStmt()
3180 if ((HelperFn = CGM.getAtomicSetterHelperFnMap(Ty))) in GenerateObjCAtomicSetterCopyHelperFunction()
3185 = &CGM.getContext().Idents.get("__assign_helper_atomic_property_"); in GenerateObjCAtomicSetterCopyHelperFunction()
3206 CGM.getTypes().arrangeBuiltinFunctionDeclaration(C.VoidTy, args); in GenerateObjCAtomicSetterCopyHelperFunction()
3208 llvm::FunctionType *LTy = CGM.getTypes().GetFunctionType(FI); in GenerateObjCAtomicSetterCopyHelperFunction()
3213 &CGM.getModule()); in GenerateObjCAtomicSetterCopyHelperFunction()
3215 CGM.SetInternalFunctionAttributes(nullptr, Fn, FI); in GenerateObjCAtomicSetterCopyHelperFunction()
3239 CGM.setAtomicSetterHelperFnMap(Ty, HelperFn); in GenerateObjCAtomicSetterCopyHelperFunction()
3260 if ((HelperFn = CGM.getAtomicGetterHelperFnMap(Ty))) in GenerateObjCAtomicGetterCopyHelperFunction()
3266 = &CGM.getContext().Idents.get("__copy_helper_atomic_property_"); in GenerateObjCAtomicGetterCopyHelperFunction()
3287 CGM.getTypes().arrangeBuiltinFunctionDeclaration(C.VoidTy, args); in GenerateObjCAtomicGetterCopyHelperFunction()
3289 llvm::FunctionType *LTy = CGM.getTypes().GetFunctionType(FI); in GenerateObjCAtomicGetterCopyHelperFunction()
3293 "__copy_helper_atomic_property_", &CGM.getModule()); in GenerateObjCAtomicGetterCopyHelperFunction()
3295 CGM.SetInternalFunctionAttributes(nullptr, Fn, FI); in GenerateObjCAtomicGetterCopyHelperFunction()
3340 CGM.setAtomicGetterHelperFnMap(Ty, HelperFn); in GenerateObjCAtomicGetterCopyHelperFunction()
3355 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitBlockCopyAndAutorelease()