Home
last modified time | relevance | path

Searched refs:Elem (Results 1 – 25 of 130) sorted by relevance

123456

/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_ilist.h27 template <typename Base, INode Base::*Node, typename Elem>
41 template <typename Base, INode Base::*Node, typename Elem = Base>
46 void PushFront(Elem* e);
47 void PushBack(Elem* e);
48 void Remove(Elem* e);
50 Elem* PopFront();
51 Elem* PopBack();
52 Elem* Front();
53 Elem* Back();
56 Elem* Prev(Elem* e);
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSymbolManager.cpp81 if (Elem.getParent() == nullptr || in getStmt()
82 Elem.getIndexInBlock() >= Elem.getParent()->size()) in getStmt()
84 switch (Elem->getKind()) { in getStmt()
86 if (const auto *Init = Elem->castAs<CFGInitializer>().getInitializer()) { in getStmt()
91 return Elem->castAs<CFGScopeBegin>().getTriggerStmt(); in getStmt()
93 return Elem->castAs<CFGScopeEnd>().getTriggerStmt(); in getStmt()
95 return Elem->castAs<CFGNewAllocator>().getAllocatorExpr(); in getStmt()
97 return Elem->castAs<CFGLifetimeEnds>().getTriggerStmt(); in getStmt()
99 return Elem->castAs<CFGLoopExit>().getLoopStmt(); in getStmt()
101 return Elem->castAs<CFGStmt>().getStmt(); in getStmt()
[all …]
H A DLoopWidening.cpp32 ConstCFGElementRef Elem) { in getWidenedLoopState() argument
77 return PrevState->invalidateRegions(Regions, Elem, BlockCount, LCtx, true, in getWidenedLoopState()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfRadixTree.h130 LinearFrameId Elem = in operator() local
134 if (static_cast<std::make_signed_t<LinearFrameId>>(Elem) < 0) { in operator()
135 Ptr += (-Elem) * sizeof(LinearFrameId); in operator()
136 Elem = in operator()
140 assert(static_cast<std::make_signed_t<LinearFrameId>>(Elem) >= 0); in operator()
141 Frames.push_back(FrameIdToFrame(Elem)); in operator()
183 LinearFrameId Elem = in operator() local
187 if (static_cast<std::make_signed_t<LinearFrameId>>(Elem) < 0) { in operator()
188 Ptr += (-Elem) * sizeof(LinearFrameId); in operator()
189 Elem = in operator()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp102 ConstCFGElementRef Elem, SVal RetVal, SVal LVal,
111 void handleRandomIncrOrDecr(CheckerContext &C, ConstCFGElementRef Elem,
115 ConstCFGElementRef Elem, OverloadedOperatorKind OK,
117 void handleAdvance(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal,
119 void handlePrev(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal,
121 void handleNext(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal,
123 void assignToContainer(CheckerContext &C, ConstCFGElementRef Elem,
355 const auto Elem = Call.getCFGElementRef(); in handleOverloadedOperator() local
360 handleComparison(C, OrigExpr, Elem, Call.getReturnValue(), in handleOverloadedOperator()
365 handleComparison(C, OrigExpr, Elem, Call.getReturnValue(), in handleOverloadedOperator()
[all …]
H A DSTLAlgorithmModeling.cpp133 const auto &Elem = Call.getCFGElementRef(); in Find() local
138 SVal RetVal = SVB.conjureSymbolVal(nullptr, Elem, LCtx, C.blockCount()); in Find()
150 Elem, LCtx, C.blockCount()); in Find()
172 Elem, LCtx, C.blockCount()); in Find()
H A DContainerModeling.cpp35 void handleBegin(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal,
37 void handleEnd(CheckerContext &C, ConstCFGElementRef Elem, SVal RetVal,
39 void handleAssignment(CheckerContext &C, SVal Cont, ConstCFGElementRef Elem,
111 ConstCFGElementRef Elem, QualType T,
115 ConstCFGElementRef Elem, QualType T,
253 void ContainerModeling::handleBegin(CheckerContext &C, ConstCFGElementRef Elem, in handleBegin() argument
266 State = createContainerBegin(State, ContReg, Elem, C.getASTContext().LongTy, in handleBegin()
275 void ContainerModeling::handleEnd(CheckerContext &C, ConstCFGElementRef Elem, in handleEnd() argument
288 State = createContainerEnd(State, ContReg, Elem, C.getASTContext().LongTy, in handleEnd()
298 ConstCFGElementRef Elem, in handleAssignment() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramStateTrait.h112 #define REGISTER_SET_WITH_PROGRAMSTATE(Name, Elem) \ argument
113 REGISTER_TRAIT_WITH_PROGRAMSTATE(Name, llvm::ImmutableSet<Elem>)
119 #define REGISTER_SET_FACTORY_WITH_PROGRAMSTATE(Name, Elem) \ argument
120 using Name = llvm::ImmutableSet<Elem>; \
135 #define REGISTER_LIST_WITH_PROGRAMSTATE(Name, Elem) \ argument
136 REGISTER_TRAIT_WITH_PROGRAMSTATE(Name, llvm::ImmutableList<Elem>)
142 #define REGISTER_LIST_FACTORY_WITH_PROGRAMSTATE(Name, Elem) \ argument
143 using Name = llvm::ImmutableList<Elem>; \
H A DSymbolManager.h83 ConstCFGElementRef Elem; variable
93 : SymbolData(ClassKind, sym), Elem(elem), T(t), Count(count), LCtx(lctx), in SymbolConjured()
100 ConstCFGElementRef getCFGElementRef() const { return Elem; } in getCFGElementRef()
115 static void Profile(llvm::FoldingSetNodeID &profile, ConstCFGElementRef Elem, in Profile() argument
119 profile.Add(Elem); in Profile()
127 Profile(profile, Elem, LCtx, T, Count, SymbolTag); in Profile()
537 const SymbolConjured *conjureSymbol(ConstCFGElementRef Elem,
542 return acquire<SymbolConjured>(Elem, LCtx, T, VisitCount, SymbolTag);
/freebsd/contrib/llvm-project/libcxx/include/
H A Dlocale84 template<class Codecvt, class Elem = wchar_t,
85 class Wide_alloc = allocator<Elem>,
91 typedef basic_string<Elem, char_traits<Elem>, Wide_alloc> wide_string;
112 byte_string to_bytes(Elem wchar);
113 byte_string to_bytes(const Elem* wptr);
115 byte_string to_bytes(const Elem* first, const Elem* last);
121 template <class Codecvt, class Elem = wchar_t, class Tr = char_traits<Elem>>
123 : public basic_streambuf<Elem, Tr>
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DAssumptionCache.cpp103 if (llvm::none_of(AVV, [&](ResultElem &Elem) { in updateAffectedValues() argument
104 return Elem.Assume == CI && Elem.Index == AV.Index; in updateAffectedValues()
120 for (ResultElem &Elem : AVI->second) { in unregisterAssumption()
121 if (Elem.Assume == CI) { in unregisterAssumption()
123 Elem.Assume = nullptr; in unregisterAssumption()
125 HasNonnull |= !!Elem.Assume; in unregisterAssumption()
H A DCFG.cpp229 SingleEntrySet(T Elem) : Elem(Elem) {} in SingleEntrySet() argument
231 bool contains(T Other) const { return Elem == Other; } in contains()
233 const_iterator begin() const { return &Elem; } in begin()
234 const_iterator end() const { return &Elem + 1; } in end()
237 T Elem; member in SingleEntrySet
H A DAssumeBundleQueries.cpp168 for (AssumptionCache::ResultElem &Elem : AC.assumptionsFor(V)) { in getKnowledgeForValue()
169 auto *II = cast_or_null<AssumeInst>(Elem.Assume); in getKnowledgeForValue()
170 if (!II || Elem.Index == AssumptionCache::ExprResultIdx) in getKnowledgeForValue()
173 *II, II->bundle_op_info_begin()[Elem.Index])) { in getKnowledgeForValue()
177 Filter(RK, II, &II->bundle_op_info_begin()[Elem.Index])) { in getKnowledgeForValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyDebugFixup.cpp104 for (auto &Elem : reverse(Stack)) { in runOnMachineFunction() local
105 if (MO.getReg() == Elem.Reg) { in runOnMachineFunction()
106 auto Depth = static_cast<unsigned>(&Elem - &Stack[0]); in runOnMachineFunction()
113 Elem.DebugValue = &MI; in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp364 for (auto &Elem : BBToAssume) { in buildMapping() local
365 llvm::sort(Elem.second, in buildMapping()
445 for (MapValue &Elem : Lookup) { in dropRedundantKnowledge()
446 if (!isValidAssumeForContext(Elem.Assume, Assume, DT)) in dropRedundantKnowledge()
448 if (Elem.ArgValue >= RK.ArgValue) { in dropRedundantKnowledge()
451 } else if (isValidAssumeForContext(Assume, Elem.Assume, DT)) { in dropRedundantKnowledge()
452 Elem.Assume->op_begin()[Elem.BOI->Begin + ABA_Argument].set( in dropRedundantKnowledge()
517 for (auto &Elem : BBToAssume) { in mergeAssumes() local
518 SmallVectorImpl<IntrinsicInst *> &AssumesInBB = Elem.second; in mergeAssumes()
537 mergeRange(Elem.first, *SplitIt, *(SplitIt + 1)); in mergeAssumes()
H A DLowerVectorIntrinsics.cpp43 Value *Elem = LoopBuilder.CreateExtractElement(Vec, LoopIndex); in lowerUnaryVectorIntrinsicAsLoop() local
46 Value *Res = LoopBuilder.CreateCall(Exp, Elem); in lowerUnaryVectorIntrinsicAsLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h461 for (auto &Elem : StrTab) {
462 Elem.Offset = Offset;
463 Offset += Elem.S.size() + 1;
554 for (auto &Elem : StrTab) {
555 assert(Offset + Elem.S.size() + 1 <= Buf.size() && "Buffer overflow");
556 memcpy(&Buf[Offset], Elem.S.data(), Elem.S.size());
557 Offset += Elem.S.size();
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtObjC.cpp20 ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, in ObjCForCollectionStmt() argument
24 SubExprs[ELEM] = Elem; in ObjCForCollectionStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h178 void push_back(const T &Elem) { in push_back() argument
180 Data[Size++] = Elem; in push_back()
326 void push_back(const T &Elem) { in push_back() argument
328 Data->Vect.push_back(Elem); in push_back()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSelfExecutorProcessControl.cpp92 for (auto &Elem : Request) { in lookupSymbolsAsync() local
93 sys::DynamicLibrary Dylib(Elem.Handle.toPtr<void *>()); in lookupSymbolsAsync()
95 for (auto &KV : Elem.Symbols) { in lookupSymbolsAsync()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp1110 for (auto Elem : Path) { in shouldLifetimeExtendThroughPath() local
1111 if (Elem.Kind == IndirectLocalPathEntry::MemberExpr || in shouldLifetimeExtendThroughPath()
1112 Elem.Kind == IndirectLocalPathEntry::LambdaCaptureInit) in shouldLifetimeExtendThroughPath()
1114 return Elem.Kind == IndirectLocalPathEntry::DefaultInit in shouldLifetimeExtendThroughPath()
1544 auto Elem = Path[I]; in checkExprLifetimeImpl() local
1546 switch (Elem.Kind) { in checkExprLifetimeImpl()
1564 auto *FD = cast<FieldDecl>(Elem.D); in checkExprLifetimeImpl()
1572 const VarDecl *VD = cast<VarDecl>(Elem.D); in checkExprLifetimeImpl()
1580 if (!Elem.Capture->capturesVariable()) in checkExprLifetimeImpl()
1584 const ValueDecl *VD = Elem.Capture->getCapturedVar(); in checkExprLifetimeImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFunction.cpp67 using Elem = std::pair<unsigned, SourceInfo>; in getSource() typedef
68 auto It = llvm::lower_bound(SrcMap, Elem{Offset, {}}, llvm::less_first()); in getSource()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DCreateInvocationFromCommandLine.cpp49 Args, [](const char *Elem) { return llvm::StringRef(Elem) == "--"; }), in createInvocation() argument
/freebsd/contrib/googletest/docs/
H A Dgmock_cheat_sheet.md59 template <typename Elem>
64 virtual void Push(const Elem& x) = 0;
72 template <typename Elem>
73 class MockStack : public StackInterface<Elem> {
76 MOCK_METHOD(void, Push, (const Elem& x), (override));
/freebsd/contrib/llvm-project/libcxx/src/filesystem/
H A Dpath.cpp240 auto Elem = *PP; in DetermineLexicalElementCount() local
241 if (Elem == PATHSTR("..")) in DetermineLexicalElementCount()
243 else if (Elem != PATHSTR(".") && Elem != PATHSTR("")) in DetermineLexicalElementCount()

123456