| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | ArrayRecyclerTest.cpp | 27 EXPECT_LT(0u, Cap.getSize()); in TEST() 31 Cap = ARO::Capacity::get(N); in TEST() 37 PrevSize = Cap.getSize(); in TEST() 41 Cap = ARO::Capacity::get(0); in TEST() 42 PrevSize = Cap.getSize(); in TEST() 44 Cap = Cap.getNext(); in TEST() 46 PrevSize = Cap.getSize(); in TEST() 74 DUT.deallocate(Cap, A2); in TEST() 86 DUT.deallocate(Cap, A2x); in TEST() 87 DUT.deallocate(Cap, A1); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBlocks.h | 208 const BlockDecl::Capture *Cap) { in makeIndex() argument 217 v.Cap = Cap; in makeIndex() 222 const BlockDecl::Capture *Cap) { in makeConstant() argument 225 v.Cap = Cap; in makeConstant() 237 const BlockDecl::Capture *Cap; variable 298 Captures[C.Cap->getVariable()] = &C; in buildCaptureMap()
|
| H A D | CGBlocks.cpp | 120 if (Cap.isConstantOrTrivial()) in getBlockDescriptorName() 125 if (Cap.CopyKind == Cap.DisposeKind) { in getBlockDescriptorName() 1721 const BlockDecl::Capture &CI = *Cap.Cap; in getBlockCaptureStr() 1730 (Cap.CopyKind == Cap.DisposeKind && in getBlockCaptureStr() 1731 Cap.CopyFlags == Cap.DisposeFlags)) && in getBlockCaptureStr() 1735 Kind = Cap.DisposeKind; in getBlockCaptureStr() 1736 Flags = Cap.DisposeFlags; in getBlockCaptureStr() 1738 Kind = Cap.CopyKind; in getBlockCaptureStr() 1739 Flags = Cap.CopyFlags; in getBlockCaptureStr() 1826 for (auto &Cap : Captures) { in getCopyDestroyHelperFuncName() local [all …]
|
| H A D | CGOpenMPRuntime.cpp | 8347 if (FirstPrivateDecls.count(Cap.getCapturedVar())) { in getMapModifiersForPrivateClauses() 8348 if (Cap.getCapturedVar()->getType()->isAnyPointerType()) in getMapModifiersForPrivateClauses() 8354 auto I = LambdasMap.find(Cap.getCapturedVar()->getCanonicalDecl()); in getMapModifiersForPrivateClauses() 9035 void generateInfoForCapture(const CapturedStmt::Capture *Cap, in generateInfoForCapture() argument 9038 assert(!Cap->capturesVariableArrayType() && in generateInfoForCapture() 9042 const ValueDecl *VD = Cap->capturesThis() in generateInfoForCapture() 9044 : Cap->getCapturedVar()->getCanonicalDecl(); in generateInfoForCapture() 9062 (Cap->capturesVariable() ? OMP_MAP_TO : OMP_MAP_LITERAL) | in generateInfoForCapture() 12318 for (const CapturedStmt::Capture &Cap : CS->captures()) { in tryToDisableInnerAnalysis() local 12319 if (Cap.capturesVariable() || Cap.capturesVariableByCopy()) in tryToDisableInnerAnalysis() [all …]
|
| H A D | CGStmtOpenMP.cpp | 1959 emitCapturedStmtCall(CodeGenFunction &ParentCGF, EmittedClosureTy Cap, in emitCapturedStmtCall() argument 1965 EffectiveArgs.push_back(Cap.second); in emitCapturedStmtCall() 1967 return ParentCGF.Builder.CreateCall(Cap.first, EffectiveArgs); in emitCapturedStmtCall()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | ArrayRecycler.h | 125 T *allocate(Capacity Cap, AllocatorType &Allocator) { in allocate() argument 127 if (T *Ptr = pop(Cap.getBucket())) in allocate() 130 return static_cast<T*>(Allocator.Allocate(sizeof(T)*Cap.getSize(), Align)); in allocate() 137 void deallocate(Capacity Cap, T *Ptr) { in deallocate() argument 138 push(Cap.getBucket(), Ptr); in deallocate()
|
| /llvm-project-15.0.7/llvm/include/llvm/TableGen/ |
| H A D | DirectiveEmitter.h | 145 bool Cap = true; in getFormattedParserClassName() local 146 std::transform(N.begin(), N.end(), N.begin(), [&Cap](unsigned char C) { in getFormattedParserClassName() 147 if (Cap == true) { in getFormattedParserClassName() 149 Cap = false; in getFormattedParserClassName() 151 Cap = true; in getFormattedParserClassName()
|
| /llvm-project-15.0.7/llvm/unittests/DebugInfo/PDB/ |
| H A D | HashTableTest.cpp | 143 uint32_t Cap = Table.capacity(); in TEST() local 144 for (uint32_t I = 0; I < Cap; ++I) { in TEST() 145 Table.set_as(Cap + I * 2 + 1, I * 2 + 3, Traits); in TEST() 244 uint32_t Cap = Table.capacity(); in TEST() local 245 for (uint32_t I = 0; I < Cap; ++I) { in TEST()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 227 for (auto &Cap : Captures) in isVLATypeCaptured() local 228 if (Cap.isVLATypeCapture() && Cap.getCapturedVLAType() == VAT) in isVLATypeCaptured()
|
| H A D | SemaLambda.cpp | 1568 ExprResult Sema::BuildCaptureInit(const Capture &Cap, in BuildCaptureInit() argument 1572 if (Cap.isVLATypeCapture()) in BuildCaptureInit() 1576 if (Cap.isInitCapture()) in BuildCaptureInit() 1577 return Cap.getVariable()->getInit(); in BuildCaptureInit() 1583 ImplicitCaptureLoc.isValid() ? ImplicitCaptureLoc : Cap.getLocation(); in BuildCaptureInit() 1599 if (Cap.isThisCapture()) { in BuildCaptureInit() 1602 if (Cap.isCopyCapture()) in BuildCaptureInit() 1607 assert(Cap.isVariableCapture() && "unknown kind of capture"); in BuildCaptureInit() 1608 VarDecl *Var = Cap.getVariable(); in BuildCaptureInit() 1625 Name, Cap.getCaptureType(), Loc); in BuildCaptureInit()
|
| H A D | SemaStmt.cpp | 4671 for (const sema::Capture &Cap : RSI->Captures) { in buildCapturedStmtCaptureList() local 4672 if (Cap.isInvalid()) in buildCapturedStmtCaptureList() 4676 ExprResult Init = S.BuildCaptureInit(Cap, Cap.getLocation(), in buildCapturedStmtCaptureList() 4683 FieldDecl *Field = S.BuildCaptureField(RSI->TheRecordDecl, Cap); in buildCapturedStmtCaptureList() 4686 if (Cap.isThisCapture()) { in buildCapturedStmtCaptureList() 4687 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4689 } else if (Cap.isVLATypeCapture()) { in buildCapturedStmtCaptureList() 4693 assert(Cap.isVariableCapture() && "unknown kind of capture"); in buildCapturedStmtCaptureList() 4698 Captures.push_back(CapturedStmt::Capture(Cap.getLocation(), in buildCapturedStmtCaptureList() 4699 Cap.isReferenceCapture() in buildCapturedStmtCaptureList() [all …]
|
| H A D | SemaExceptionSpec.cpp | 1195 Cap = Lambda->capture_init_begin(), in canThrow() local 1197 Cap != CapEnd; ++Cap) in canThrow() 1198 CT = mergeCanThrow(CT, canThrow(*Cap)); in canThrow()
|
| H A D | SemaExpr.cpp | 16411 for (Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr() 16412 if (Cap.isInvalid() || Cap.isThisCapture()) in ActOnBlockStmtExpr() 16415 VarDecl *Var = Cap.getVariable(); in ActOnBlockStmtExpr() 16417 if (getLangOpts().CPlusPlus && Cap.isCopyCapture()) { in ActOnBlockStmtExpr() 16419 Cap.getCaptureType()->getAs<RecordType>()) { in ActOnBlockStmtExpr() 16436 SourceLocation Loc = Cap.getLocation(); in ActOnBlockStmtExpr() 16454 Cap.getCaptureType()), in ActOnBlockStmtExpr() 16470 BlockDecl::Capture NewCap(Var, Cap.isBlockCapture(), Cap.isNested(), in ActOnBlockStmtExpr() 18311 const Capture &Cap = CSI->getCapture(Var); in isVariableAlreadyCapturedInScopeInfo() local 18312 if (Cap.isCopyCapture() && in isVariableAlreadyCapturedInScopeInfo()
|
| H A D | SemaInit.cpp | 7426 const LambdaCapture &Cap = *CapI++; in visitLocalsRetainedByInitializer() local 7429 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer() 7430 Path.push_back({IndirectLocalPathEntry::LambdaCaptureInit, E, &Cap}); in visitLocalsRetainedByInitializer() 7437 if (Cap.capturesVariable()) in visitLocalsRetainedByInitializer()
|
| H A D | SemaOpenMP.cpp | 4053 for (const CapturedStmt::Capture &Cap : S->captures()) { in visitSubCaptures() local 4054 if (!Cap.capturesVariable() && !Cap.capturesVariableByCopy()) in visitSubCaptures() 4056 VarDecl *VD = Cap.getCapturedVar(); in visitSubCaptures() 4067 Cap.getLocation(), /*RefersToCapture=*/true); in visitSubCaptures()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineFunction.h | 1011 MachineOperand *allocateOperandArray(OperandCapacity Cap) { 1012 return OperandRecycler.allocate(Cap, Allocator); 1018 void deallocateOperandArray(OperandCapacity Cap, MachineOperand *Array) { 1019 OperandRecycler.deallocate(Cap, Array);
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ThreadSafety.cpp | 900 CapabilityExpr Cap; member 927 const auto *Entry = FSet.findLock(FactMan, UnderlyingMutex.Cap); in handleRemovalFromIntersection() 932 Handler.handleMutexHeldEndOfScope(UnderlyingMutex.Cap.getKind(), in handleRemovalFromIntersection() 933 UnderlyingMutex.Cap.toString(), loc(), in handleRemovalFromIntersection() 943 lock(FSet, FactMan, UnderlyingMutex.Cap, entry.kind(), entry.loc(), in handleLock() 946 unlock(FSet, FactMan, UnderlyingMutex.Cap, entry.loc(), &Handler); in handleLock() 960 unlock(FSet, FactMan, UnderlyingMutex.Cap, UnlockLoc, TSHandler); in handleUnlock() 965 lock(FSet, FactMan, UnderlyingMutex.Cap, kind, UnlockLoc, TSHandler); in handleUnlock()
|
| /llvm-project-15.0.7/llvm/include/llvm/Demangle/ |
| H A D | ItaniumDemangle.h | 39 T *Cap = nullptr; variable 47 Cap = Inline + N; in clearInline() 64 Cap = First + NewCap; in reserve() 68 PODSmallVector() : First(Inline), Last(First), Cap(Inline + N) {} in PODSmallVector() 83 Cap = Other.Cap; in PODSmallVector() 102 Cap = Other.Cap; 109 std::swap(Cap, Other.Cap); 116 if (Last == Cap) in push_back()
|
| /llvm-project-15.0.7/libcxxabi/src/demangle/ |
| H A D | ItaniumDemangle.h | 39 T *Cap = nullptr; variable 47 Cap = Inline + N; in clearInline() 64 Cap = First + NewCap; in reserve() 68 PODSmallVector() : First(Inline), Last(First), Cap(Inline + N) {} in PODSmallVector() 83 Cap = Other.Cap; in PODSmallVector() 102 Cap = Other.Cap; 109 std::swap(Cap, Other.Cap); 116 if (Last == Cap) in push_back()
|
| /llvm-project-15.0.7/clang/include/clang/Driver/ |
| H A D | Options.td | 5122 // Cap the stack depth at 4 calls (5 stack frames, base + 4 calls).
|