Lines Matching refs:blockInfo

53                                         const CGBlockInfo &blockInfo,
58 const CGBlockInfo &blockInfo) { in buildCopyHelper() argument
59 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper()
64 const CGBlockInfo &blockInfo) { in buildDisposeHelper() argument
65 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper()
153 const CGBlockInfo &blockInfo) { in buildBlockDescriptor() argument
170 descName = getBlockDescriptorName(blockInfo, CGM); in buildBlockDescriptor()
187 elements.addInt(ulong, blockInfo.BlockSize.getQuantity()); in buildBlockDescriptor()
191 if (blockInfo.NeedsCopyDispose) { in buildBlockDescriptor()
193 llvm::Constant *copyHelper = buildCopyHelper(CGM, blockInfo); in buildBlockDescriptor()
197 llvm::Constant *disposeHelper = buildDisposeHelper(CGM, blockInfo); in buildBlockDescriptor()
212 CGM.getContext().getObjCEncodingForBlock(blockInfo.getBlockExpr()); in buildBlockDescriptor()
219 elements.add(CGM.getObjCRuntime().BuildGCBlockLayout(CGM, blockInfo)); in buildBlockDescriptor()
221 elements.add(CGM.getObjCRuntime().BuildRCBlockLayout(CGM, blockInfo)); in buildBlockDescriptor()
776 CGBlockInfo blockInfo(blockExpr->getBlockDecl(), CurFn->getName()); in EmitBlockLiteral() local
777 computeBlockInfo(CGM, this, blockInfo); in EmitBlockLiteral()
778 blockInfo.BlockExpression = blockExpr; in EmitBlockLiteral()
779 if (!blockInfo.CanBeGlobal) in EmitBlockLiteral()
780 blockInfo.LocalAddress = CreateTempAlloca(blockInfo.StructureType, in EmitBlockLiteral()
781 blockInfo.BlockAlign, "block"); in EmitBlockLiteral()
782 return EmitBlockLiteral(blockInfo); in EmitBlockLiteral()
785 llvm::Value *CodeGenFunction::EmitBlockLiteral(const CGBlockInfo &blockInfo) { in EmitBlockLiteral() argument
793 bool isLambdaConv = blockInfo.getBlockDecl()->isConversionFromLambda(); in EmitBlockLiteral()
797 CurGD, blockInfo, LocalDeclMap, isLambdaConv, blockInfo.CanBeGlobal); in EmitBlockLiteral()
801 if (blockInfo.CanBeGlobal) in EmitBlockLiteral()
802 return CGM.getAddrOfGlobalBlockIfEmitted(blockInfo.BlockExpression); in EmitBlockLiteral()
806 RawAddress blockAddr = blockInfo.LocalAddress; in EmitBlockLiteral()
816 llvm::Constant *blockISA = blockInfo.NoEscape in EmitBlockLiteral()
822 descriptor = buildBlockDescriptor(CGM, blockInfo); in EmitBlockLiteral()
827 if (blockInfo.HasCapturedVariableLayout) in EmitBlockLiteral()
829 if (blockInfo.NeedsCopyDispose) in EmitBlockLiteral()
831 if (blockInfo.HasCXXObject) in EmitBlockLiteral()
833 if (blockInfo.UsesStret) in EmitBlockLiteral()
835 if (blockInfo.NoEscape) in EmitBlockLiteral()
866 llvm::ConstantInt::get(IntTy, blockInfo.BlockSize.getQuantity()), in EmitBlockLiteral()
869 llvm::ConstantInt::get(IntTy, blockInfo.BlockAlign.getQuantity()), in EmitBlockLiteral()
877 for (auto I : Helper->getCustomFieldValues(*this, blockInfo)) { in EmitBlockLiteral()
888 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in EmitBlockLiteral()
893 projectField(blockInfo.CXXThisIndex, "block.captured-this.addr"); in EmitBlockLiteral()
900 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in EmitBlockLiteral()
1024 if (!blockInfo.NoEscape && !blockInfo.NeedsCopyDispose) in EmitBlockLiteral()
1086 blockAddr.getPointer(), ConvertType(blockInfo.getBlockExpr()->getType())); in EmitBlockLiteral()
1089 CGM.getOpenCLRuntime().recordBlockInfo(blockInfo.BlockExpression, InvokeFn, in EmitBlockLiteral()
1090 result, blockInfo.StructureType); in EmitBlockLiteral()
1271 CGBlockInfo blockInfo(BE->getBlockDecl(), Name); in GetAddrOfGlobalBlock() local
1272 blockInfo.BlockExpression = BE; in GetAddrOfGlobalBlock()
1275 computeBlockInfo(*this, nullptr, blockInfo); in GetAddrOfGlobalBlock()
1281 GlobalDecl(), blockInfo, LocalDeclMap, in GetAddrOfGlobalBlock()
1289 const CGBlockInfo &blockInfo, in buildGlobalBlock() argument
1291 assert(blockInfo.CanBeGlobal); in buildGlobalBlock()
1295 assert(!CGM.getAddrOfGlobalBlockIfEmitted(blockInfo.BlockExpression) && in buildGlobalBlock()
1315 if (blockInfo.UsesStret) in buildGlobalBlock()
1323 fields.addInt(CGM.IntTy, blockInfo.BlockSize.getQuantity()); in buildGlobalBlock()
1324 fields.addInt(CGM.IntTy, blockInfo.BlockAlign.getQuantity()); in buildGlobalBlock()
1332 fields.add(buildBlockDescriptor(CGM, blockInfo)); in buildGlobalBlock()
1335 for (auto *I : Helper->getCustomFieldValues(CGM, blockInfo)) { in buildGlobalBlock()
1345 "__block_literal_global", blockInfo.BlockAlign, in buildGlobalBlock()
1373 CGM.getTypes().ConvertType(blockInfo.getBlockExpr()->getType()); in buildGlobalBlock()
1376 CGM.setAddrOfGlobalBlock(blockInfo.BlockExpression, Result); in buildGlobalBlock()
1379 blockInfo.BlockExpression, in buildGlobalBlock()
1425 GlobalDecl GD, const CGBlockInfo &blockInfo, const DeclMapTy &ldm, in GenerateBlockFunction() argument
1427 const BlockDecl *blockDecl = blockInfo.getBlockDecl(); in GenerateBlockFunction()
1431 CurEHLocation = blockInfo.getBlockExpr()->getEndLoc(); in GenerateBlockFunction()
1433 BlockInfo = &blockInfo; in GenerateBlockFunction()
1472 const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType(); in GenerateBlockFunction()
1476 blockInfo.UsesStret = true; in GenerateBlockFunction()
1489 buildGlobalBlock(CGM, blockInfo, in GenerateBlockFunction()
1496 blockInfo.getBlockExpr()->getBody()->getBeginLoc()); in GenerateBlockFunction()
1519 LoadBlockStruct(), blockInfo.CXXThisIndex, "block.captured-this"); in GenerateBlockFunction()
1526 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction()
1569 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction()
1578 variable, BlockPointerDbgLoc, Builder, blockInfo, in GenerateBlockFunction()
1879 CodeGenFunction::GenerateCopyHelperFunction(const CGBlockInfo &blockInfo) { in GenerateCopyHelperFunction() argument
1881 blockInfo.SortedCaptures, blockInfo.BlockAlign, in GenerateCopyHelperFunction()
1914 setBlockHelperAttributesVisibility(blockInfo.CapturesNonExternalType, Fn, FI, in GenerateCopyHelperFunction()
1920 src = Address(Builder.CreateLoad(src), blockInfo.StructureType, in GenerateCopyHelperFunction()
1921 blockInfo.BlockAlign); in GenerateCopyHelperFunction()
1924 dst = Address(Builder.CreateLoad(dst), blockInfo.StructureType, in GenerateCopyHelperFunction()
1925 blockInfo.BlockAlign); in GenerateCopyHelperFunction()
1927 for (auto &capture : blockInfo.SortedCaptures) { in GenerateCopyHelperFunction()
2068 CodeGenFunction::GenerateDestroyHelperFunction(const CGBlockInfo &blockInfo) { in GenerateDestroyHelperFunction() argument
2070 blockInfo.SortedCaptures, blockInfo.BlockAlign, in GenerateDestroyHelperFunction()
2100 setBlockHelperAttributesVisibility(blockInfo.CapturesNonExternalType, Fn, FI, in GenerateDestroyHelperFunction()
2108 src = Address(Builder.CreateLoad(src), blockInfo.StructureType, in GenerateDestroyHelperFunction()
2109 blockInfo.BlockAlign); in GenerateDestroyHelperFunction()
2113 for (auto &capture : blockInfo.SortedCaptures) { in GenerateDestroyHelperFunction()