Lines Matching refs:capture
349 const BlockDecl::Capture *capture, in BlockLayoutChunk()
352 Capture(capture), Type(type), FieldType(fieldType) {} in BlockLayoutChunk()
812 CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in enterBlockScope() local
813 if (capture.isConstant()) continue; in enterBlockScope()
842 capture.getIndex(), in enterBlockScope()
843 capture.getOffset()); in enterBlockScope()
858 capture.setCleanup(CGF.EHStack.stable_begin()); in enterBlockScope()
1044 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in EmitBlockLiteral() local
1047 if (capture.isConstant()) continue; in EmitBlockLiteral()
1049 QualType type = capture.fieldType(); in EmitBlockLiteral()
1054 projectField(capture.getIndex(), capture.getOffset(), "block.captured"); in EmitBlockLiteral()
1171 EHScopeStack::stable_iterator cleanup = capture.getCleanup(); in EmitBlockLiteral()
1330 const CGBlockInfo::Capture &capture = BlockInfo->getCapture(variable); in GetAddrOfBlockDecl() local
1333 if (capture.isConstant()) return LocalDeclMap.find(variable)->second; in GetAddrOfBlockDecl()
1336 Builder.CreateStructGEP(LoadBlockStruct(), capture.getIndex(), in GetAddrOfBlockDecl()
1337 capture.getOffset(), "block.capture.addr"); in GetAddrOfBlockDecl()
1354 capture.fieldType()->isReferenceType()) && in GetAddrOfBlockDecl()
1357 if (capture.fieldType()->isReferenceType()) in GetAddrOfBlockDecl()
1358 addr = EmitLoadOfReference(MakeAddrLValue(addr, capture.fieldType())); in GetAddrOfBlockDecl()
1629 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction() local
1630 if (!capture.isConstant()) continue; in GenerateBlockFunction()
1636 Builder.CreateStore(capture.getConstant(), alloca); in GenerateBlockFunction()
1670 const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); in GenerateBlockFunction() local
1671 if (capture.isConstant()) { in GenerateBlockFunction()
2060 const CGBlockInfo::Capture &capture = *CopiedCapture.Capture; in GenerateCopyHelperFunction() local
2064 unsigned index = capture.getIndex(); in GenerateCopyHelperFunction()
2065 Address srcField = Builder.CreateStructGEP(src, index, capture.getOffset()); in GenerateCopyHelperFunction()
2066 Address dstField = Builder.CreateStructGEP(dst, index, capture.getOffset()); in GenerateCopyHelperFunction()
2251 const CGBlockInfo::Capture &capture = *DestroyedCapture.Capture; in GenerateDestroyHelperFunction() local
2255 Builder.CreateStructGEP(src, capture.getIndex(), capture.getOffset()); in GenerateDestroyHelperFunction()