Home
last modified time | relevance | path

Searched refs:Curr (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp65 if (!Curr) in VisitSwitchStmt()
67 Stmt *Parent = getCaseParent(Curr); in VisitSwitchStmt()
68 Curr = Curr->getNextSwitchCase(); in VisitSwitchStmt()
70 while (Curr) { in VisitSwitchStmt()
71 if (getCaseParent(Curr) != Parent) in VisitSwitchStmt()
73 Curr = Curr->getNextSwitchCase(); in VisitSwitchStmt()
77 Curr = S->getSwitchCaseList(); in VisitSwitchStmt()
79 while (Curr) { in VisitSwitchStmt()
81 CaseInfo(Curr, SourceRange(Curr->getBeginLoc(), NextLoc))); in VisitSwitchStmt()
82 NextLoc = Curr->getBeginLoc(); in VisitSwitchStmt()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DGVN.h270 if (!Curr.Val) {
271 Curr.Val = V;
272 Curr.BB = BB;
279 Node->Next = Curr.Next;
280 Curr.Next = Node;
289 while (Curr && (Curr->Val != I || Curr->BB != BB)) {
290 Prev = Curr;
291 Curr = Curr->Next;
294 if (!Curr)
300 if (!Curr->Next) {
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DLineTable.cpp201 for (const auto &Curr : Lines) { in encode() local
202 if (Curr.Addr < BaseAddr) in encode()
207 if (Curr.Addr < Prev.Addr) in encode()
210 const uint64_t AddrDelta = Curr.Addr - Prev.Addr; in encode()
212 if (Curr.Line > Prev.Line) in encode()
213 LineDelta = Curr.Line - Prev.Line; in encode()
214 else if (Prev.Line > Curr.Line) in encode()
215 LineDelta = -((int32_t)(Prev.Line - Curr.Line)); in encode()
218 if (Curr.File != Prev.File) { in encode()
220 Out.writeULEB(Curr.File); in encode()
[all …]
H A DGsymCreator.cpp232 FunctionInfo &Curr = Funcs[Idx]; in finalize() local
236 const bool ranges_equal = Prev.Range == Curr.Range; in finalize()
237 if (ranges_equal || Prev.Range.intersects(Curr.Range)) { in finalize()
246 if (!(Prev == Curr)) { in finalize()
247 if (Prev.hasRichInfo() && Curr.hasRichInfo()) { in finalize()
253 << Curr << "\n"; in finalize()
259 std::swap(Prev, Curr); in finalize()
265 << Curr << "\n"; in finalize()
267 FinalizedFuncs.emplace_back(std::move(Curr)); in finalize()
274 std::swap(Prev, Curr); in finalize()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp130 CallStackTrieNode *Curr = nullptr; in addCallStack() local
142 Curr = Alloc; in addCallStack()
146 auto Next = Curr->Callers.find(StackId); in addCallStack()
147 if (Next != Curr->Callers.end()) { in addCallStack()
148 Curr = Next->second; in addCallStack()
149 Curr->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack()
154 Curr->Callers[StackId] = New; in addCallStack()
155 Curr = New; in addCallStack()
157 assert(Curr); in addCallStack()
H A DIRSimilarityIdentifier.cpp557 for (unsigned &Curr : ValueMappingIt->second) in checkNumberingAndReplaceCommutative() local
559 if (TargetValueNumbers.contains(Curr)) in checkNumberingAndReplaceCommutative()
560 NewSet.insert(Curr); in checkNumberingAndReplaceCommutative()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DSuffixTree.cpp237 auto *Curr = InternalNodesToVisit.back(); in advance() local
242 unsigned Length = Curr->getConcatLen(); in advance()
247 for (auto &ChildPair : Curr->Children) { in advance()
265 if (Curr->isRoot()) in advance()
273 N = Curr; in advance()
/freebsd-14.2/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp126 size_t Curr = getCurrentStackAllocation(); in ensureStackAddressSpace() local
128 if (Curr < kTargetStack) { in ensureStackAddressSpace()
130 static_cast<volatile char *>(alloca(kTargetStack - Curr)); in ensureStackAddressSpace()
132 Alloc[kTargetStack - Curr - 1] = 0; in ensureStackAddressSpace()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp79 Value *Curr = WorkList.pop_back_val(); in findAllDefs() local
80 auto *CurrUser = dyn_cast<User>(Curr); in findAllDefs()
83 if (CurrUser && !isa<CallInst>(Curr) && !isa<Constant>(Curr)) in findAllDefs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Windows/
H A DThreading.inc150 for (auto *Curr = Info; Curr < End;
151 Curr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *)((uint8_t *)Curr +
152 Curr->Size)) {
153 if (Curr->Relationship != Relationship)
155 Fn(Curr);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp97 Value *Curr = Worklist.back(); in buildTruncExpressionGraph() local
99 if (isa<Constant>(Curr)) { in buildTruncExpressionGraph()
104 auto *I = dyn_cast<Instruction>(Curr); in buildTruncExpressionGraph()
192 Value *Curr = Worklist.back(); in getMinBitWidth() local
194 if (isa<Constant>(Curr)) { in getMinBitWidth()
200 auto *I = cast<Instruction>(Curr); in getMinBitWidth()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp716 BasicBlock *Curr = Instr->getParent(); in IntroduceControlFlow() local
718 BasicBlock *Next = Curr->splitBasicBlock(Loc, "CF"); in IntroduceControlFlow()
719 Instr->moveBefore(Curr->getTerminator()); in IntroduceControlFlow()
720 if (Curr != &F->getEntryBlock()) { in IntroduceControlFlow()
721 BranchInst::Create(Curr, Next, Instr, Curr->getTerminator()); in IntroduceControlFlow()
722 Curr->getTerminator()->eraseFromParent(); in IntroduceControlFlow()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOReader.cpp65 for (auto Curr = reinterpret_cast<const SectionType *>(LoadCmd.Ptr + in extractSections() local
69 Curr < End; ++Curr) { in extractSections()
71 memcpy((void *)&Sec, reinterpret_cast<const char *>(Curr), in extractSections()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFVerifier.cpp280 DWARFDie Curr = Die.getParent(); in verifyDebugInfoCallSite() local
281 for (; Curr.isValid() && !Curr.isSubprogramDIE(); Curr = Die.getParent()) { in verifyDebugInfoCallSite()
282 if (Curr.getTag() == DW_TAG_inlined_subroutine) { in verifyDebugInfoCallSite()
284 Curr.dump(OS); in verifyDebugInfoCallSite()
289 if (!Curr.isValid()) { in verifyDebugInfoCallSite()
295 std::optional<DWARFFormValue> CallAttr = Curr.find( in verifyDebugInfoCallSite()
301 Curr.dump(OS); in verifyDebugInfoCallSite()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSparseBitVector.h148 int find_next(unsigned Curr) const { in find_next()
149 if (Curr >= BITS_PER_ELEMENT) in find_next()
152 unsigned WordPos = Curr / BITWORD_SIZE; in find_next()
153 unsigned BitPos = Curr % BITWORD_SIZE; in find_next()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDistribute.cpp477 for (auto Curr = PartitionContainer.cbegin(), in cloneLoops() local
480 Next != E; ++Curr, ++Next) in cloneLoops()
483 Curr->getDistributedLoop()->getExitingBlock()); in cloneLoops()
H A DEarlyCSE.cpp1221 Instruction *Curr = WorkList.pop_back_val(); in handleBranchCondition() local
1223 AvailableValues.insert(Curr, TorF); in handleBranchCondition()
1225 << Curr->getName() << "' as " << *TorF << " in " in handleBranchCondition()
1231 if (unsigned Count = replaceDominatedUsesWith(Curr, TorF, DT, in handleBranchCondition()
1239 if (MatchBinOp(Curr, PropagateOpcode, LHS, RHS)) in handleBranchCondition()
H A DIndVarSimplify.cpp1346 Value *Curr = Worklist.pop_back_val(); in optimizeLoopExitWithUnknownExitCount() local
1349 if (Curr->hasOneUse()) in optimizeLoopExitWithUnknownExitCount()
1350 if (!GoThrough(Curr)) in optimizeLoopExitWithUnknownExitCount()
1351 if (auto *ICmp = dyn_cast<ICmpInst>(Curr)) in optimizeLoopExitWithUnknownExitCount()
H A DGVN.cpp2818 BasicBlock *Curr, unsigned int ValNo) { in performScalarPREInsertion() argument
2837 VN.phiTranslate(Pred, Curr, VN.lookup(Op), *this); in performScalarPREInsertion()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DScopedPrinter.h191 uint64_t Curr = Value; in printFlags() local
192 while (Curr > 0) { in printFlags()
193 if (Curr & 1) in printFlags()
195 Curr >>= 1; in printFlags()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp101 User const *Curr = ToVisit.pop_back_val(); in isBlockValidForExtraction() local
102 if (!Visited.insert(Curr).second) in isBlockValidForExtraction()
104 if (isa<BlockAddress const>(Curr)) in isBlockValidForExtraction()
107 if (isa<Instruction>(Curr) && cast<Instruction>(Curr)->getParent() != &BB) in isBlockValidForExtraction()
110 for (auto const &U : Curr->operands()) { in isBlockValidForExtraction()
H A DLoopUtils.cpp1244 const Instruction *Curr = WorkList.pop_back_val(); in hasHardUserWithinLoop() local
1246 if (!L->contains(Curr)) in hasHardUserWithinLoop()
1249 if (Curr->mayHaveSideEffects()) in hasHardUserWithinLoop()
1252 for (const auto *U : Curr->users()) { in hasHardUserWithinLoop()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIvarInvalidationChecker.cpp84 for (const ObjCMethodDecl *Curr : InvalidationMethods) { in hasMethod() local
85 if (Curr == MD) { in hasMethod()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h2133 const char *Curr = Start; in RecordParts() local
2134 bool IsDigitPart = isDigit(Curr[0]); in RecordParts()
2136 bool IsDigit = isDigit(Curr[I]); in RecordParts()
2140 Start = &Curr[I]; in RecordParts()
2141 IsDigitPart = isDigit(Curr[I]); in RecordParts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DWasmObjectFile.cpp2051 int Curr = Order; in isValidSectionOrder() local
2055 int Next = DisallowedPredecessors[Curr][I]; in isValidSectionOrder()
2068 Curr = WorkList.pop_back_val(); in isValidSectionOrder()
2069 if (Seen[Curr]) in isValidSectionOrder()

12