Lines Matching refs:capture

319                      const BlockDecl::Capture *capture, llvm::Type *type,  in BlockLayoutChunk()
324 : Alignment(align), Size(size), Capture(capture), Type(type), in BlockLayoutChunk()
390 const BlockDecl::Capture *capture, llvm::Type *type, in addBlockLayout() argument
394 if (!capture) { in addBlockLayout()
397 align, size, capture, type, fieldType, BlockCaptureEntityKind::None, in addBlockLayout()
407 computeCopyInfoForBlockCapture(*capture, fieldType, LangOpts); in addBlockLayout()
409 computeDestroyInfoForBlockCapture(*capture, fieldType, LangOpts); in addBlockLayout()
410 Layout.push_back(BlockLayoutChunk(align, size, capture, type, fieldType, in addBlockLayout()
900 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in EmitBlockLiteral() local
903 if (capture.isConstant()) continue; in EmitBlockLiteral()
905 QualType type = capture.fieldType(); in EmitBlockLiteral()
909 Address blockField = projectField(capture.getIndex(), "block.captured"); in EmitBlockLiteral()
1228 const CGBlockInfo::Capture &capture = BlockInfo->getCapture(variable); in GetAddrOfBlockDecl() local
1231 if (capture.isConstant()) return LocalDeclMap.find(variable)->second; in GetAddrOfBlockDecl()
1233 Address addr = Builder.CreateStructGEP(LoadBlockStruct(), capture.getIndex(), in GetAddrOfBlockDecl()
1249 capture.fieldType()->isReferenceType()) && in GetAddrOfBlockDecl()
1252 if (capture.fieldType()->isReferenceType()) in GetAddrOfBlockDecl()
1253 addr = EmitLoadOfReference(MakeAddrLValue(addr, capture.fieldType())); in GetAddrOfBlockDecl()
1526 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction() local
1527 if (!capture.isConstant()) continue; in GenerateBlockFunction()
1533 Builder.CreateStore(capture.getConstant(), alloca); in GenerateBlockFunction()
1569 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction() local
1570 if (capture.isConstant()) { in GenerateBlockFunction()
1927 for (auto &capture : blockInfo.SortedCaptures) { in GenerateCopyHelperFunction() local
1928 if (capture.isConstantOrTrivial()) in GenerateCopyHelperFunction()
1931 const BlockDecl::Capture &CI = *capture.Cap; in GenerateCopyHelperFunction()
1933 BlockFieldFlags flags = capture.CopyFlags; in GenerateCopyHelperFunction()
1935 unsigned index = capture.getIndex(); in GenerateCopyHelperFunction()
1939 switch (capture.CopyKind) { in GenerateCopyHelperFunction()
2002 pushCaptureCleanup(capture.CopyKind, dstField, captureType, flags, in GenerateCopyHelperFunction()
2113 for (auto &capture : blockInfo.SortedCaptures) { in GenerateDestroyHelperFunction() local
2114 if (capture.isConstantOrTrivial()) in GenerateDestroyHelperFunction()
2117 const BlockDecl::Capture &CI = *capture.Cap; in GenerateDestroyHelperFunction()
2118 BlockFieldFlags flags = capture.DisposeFlags; in GenerateDestroyHelperFunction()
2120 Address srcField = Builder.CreateStructGEP(src, capture.getIndex()); in GenerateDestroyHelperFunction()
2122 pushCaptureCleanup(capture.DisposeKind, srcField, in GenerateDestroyHelperFunction()