Home
last modified time | relevance | path

Searched refs:Current (Results 1 – 25 of 216) sorted by relevance

123456789

/llvm-project-15.0.7/llvm/utils/TableGen/GlobalISel/
H A DCodeExpander.cpp26 OS << Current; in emit()
27 Current = ""; in emit()
32 Current = Current.substr(Pos); in emit()
36 Current = Current.drop_front(1); in emit()
40 if (Current.startswith("\\$") || Current.startswith("\\\\")) { in emit()
41 OS << Current[1]; in emit()
42 Current = Current.drop_front(2); in emit()
47 Current = Current.drop_front(1); in emit()
53 Current = Current.drop_front(2); in emit()
55 std::tie(Var, Current) = Current.split("}"); in emit()
[all …]
/llvm-project-15.0.7/clang/lib/Format/
H A DContinuationIndenter.cpp346 if (Current.MustBreakBefore || Current.is(TT_InlineASMColon)) in mustBreak()
407 (!Current.isTrailingComment() || Current.NewlinesBefore > 0) && in mustBreak()
506 if (Current.NestingLevel == 0 && !Current.isTrailingComment()) { in mustBreak()
957 if (Current.is(TT_BinaryOperator) && Current.CanBreakBefore) in addTokenOnNewLine()
962 if (Current.is(tok::r_brace) && Current.MatchingParen && in addTokenOnNewLine()
1138 if (Current.is(tok::identifier) && Current.Next && in getNewLineColumn()
1328 if (Current.is(TT_ConditionalExpr) && Current.Previous && in moveStateToNextToken()
1357 if (!Current.opensScope() && !Current.closesScope() && in moveStateToNextToken()
1600 if (Current.MatchingParen && Current.is(BK_Block)) { in moveStatePastScopeOpener()
1672 if (Current.is(TT_ObjCMethodExpr) && Current.MatchingParen && in moveStatePastScopeOpener()
[all …]
H A DSortJavaScriptImports.cpp220 FormatToken *Current; member in clang::format::JavaScriptImportSorter
227 void skipComments() { Current = skipComments(Current); } in skipComments()
236 Current = Current->Next; in nextToken()
238 if (!Current || Current == LineEnd->Next) { in nextToken()
373 Current = Line->First; in parseModuleReferences()
377 while (Current && Current->is(tok::comment)) { in parseModuleReferences()
393 Current = Current->Next; in parseModuleReferences()
402 if (!Current) { in parseModuleReferences()
446 if (!Current || !Current->isOneOf(Keywords.kw_import, tok::kw_export)) in parseModuleReference()
455 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference()
[all …]
H A DTokenAnnotator.cpp1719 Current = Current->Next; in untilMatchingParen()
1885 if (Current.MatchingParen && Current.Next && in determineTokenType()
1929 Current.setType(Current.Previous->getType()); in determineTokenType()
2487 while (Current && (!Current->closesScope() || Current->opensScope())) { in parse()
2609 while (Current && Current->isTrailingComment()) in parseConditionalExpr()
2613 if (!Current || !Current->is(tok::question)) in parseConditionalExpr()
2626 Current = Current->Next; in next()
2630 Current = Current->Next; in next()
2955 Current = Current->Next; in calculateFormattingInformation()
2960 for (Current = Line.First; Current != nullptr; Current = Current->Next) { in calculateFormattingInformation()
[all …]
H A DMacroExpander.cpp52 Current = Tokens[0]; in DefinitionParser()
60 Def.Name = Current->TokenText; in parse()
62 if (Current->is(tok::l_paren)) { in parse()
78 Def.Params.push_back(Current); in parseParams()
81 if (Current->isNot(tok::comma)) in parseParams()
94 if (Current->is(tok::equal)) in parseExpansion()
102 Def.Body.push_back(Current); in parseTail()
105 Def.Body.push_back(Current); in parseTail()
111 Current = Tokens[Pos]; in nextToken()
112 Current->Finalized = true; in nextToken()
[all …]
H A DTokenAnnotator.h53 FormatToken *Current = First; in AnnotatedLine() local
55 Current->Next = Node.Tok; in AnnotatedLine()
56 Node.Tok->Previous = Current; in AnnotatedLine()
57 Current = Current->Next; in AnnotatedLine()
58 Current->Children.clear(); in AnnotatedLine()
64 Last = Current; in AnnotatedLine()
71 FormatToken *Current = First; in ~AnnotatedLine() local
72 while (Current) { in ~AnnotatedLine()
73 Current->Children.clear(); in ~AnnotatedLine()
74 Current->Role.reset(); in ~AnnotatedLine()
[all …]
/llvm-project-15.0.7/libunwind/src/
H A DFrameHeaderCache.hpp95 while (Current != nullptr) { in find()
98 Current->LowPC(), Current->HighPC()); in find()
103 Current->LowPC(), Current->HighPC()); in find()
114 Previous = Current; in find()
115 Current = Current->Next; in find()
126 Current = Unused; in add()
132 Previous = Current; in add()
133 Current = Current->Next; in add()
137 Current->LowPC(), Current->HighPC()); in add()
140 Current->Info = *UIS; in add()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DYAMLParser.cpp290 return StringRef(Current, End - Current); in currentInput()
1135 if (Current == End || *Current != '#') in skipComment()
1150 while (Current != End && (*Current == ' ' || *Current == '\t')) { in scanToNextToken()
1387 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') { in scanFlowScalar()
1511 if ( *Current == '[' || *Current == ']' in scanAliasOrAnchor()
1553 if (Current != End && (*Current == '>' || *Current == '|')) { in scanBlockStyleIndicator()
1562 if (Current != End && (*Current == '+' || *Current == '-')) { in scanBlockChompingIndicator()
1585 if (Current != End && (*Current >= '1' && *Current <= '9')) { in scanBlockIndentationIndicator()
1628 if (skip_nb_char(Current) != Current) { in findBlockScalarIndent()
1644 if (skip_b_break(Current) != Current && in findBlockScalarIndent()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAttrIterator.h43 mutable Iterator Current; variable
46 while (!isa<SpecificAttr>(*Current)) in AdvanceToNext()
47 ++Current; in AdvanceToNext()
51 while (Current != I && !isa<SpecificAttr>(*Current)) in AdvanceToNext()
52 ++Current; in AdvanceToNext()
67 return cast<SpecificAttr>(*Current);
71 return cast<SpecificAttr>(*Current);
75 ++Current;
86 assert((Left.Current == nullptr) == (Right.Current == nullptr));
87 if (Left.Current < Right.Current)
[all …]
H A DCurrentSourceLocExprScope.h51 CurrentSourceLocExprScope &Current) in SourceLocExprScopeGuard() argument
52 : Current(Current), OldVal(Current), Enable(false) { in SourceLocExprScopeGuard()
54 if ((Enable = (Current.getDefaultExpr() == nullptr))) in SourceLocExprScopeGuard()
55 Current = CurrentSourceLocExprScope(DefaultExpr); in SourceLocExprScopeGuard()
60 Current = OldVal; in ~SourceLocExprScopeGuard()
67 CurrentSourceLocExprScope &Current; variable
H A DRedeclarable.h242 decl_type *Current = nullptr; variable
254 explicit redecl_iterator(decl_type *C) : Current(C), Starter(C) {} in redecl_iterator()
256 reference operator*() const { return Current; }
257 pointer operator->() const { return Current; }
260 assert(Current && "Advancing while iterator has reached end");
263 if (Current->isFirstDecl()) {
266 Current = nullptr;
273 decl_type *Next = Current->getNextRedeclaration();
274 Current = (Next != Starter) ? Next : nullptr;
285 return x.Current == y.Current;
[all …]
H A DDeclBase.h991 return x.Current == y.Current;
995 return x.Current != y.Current;
2136 Current = Current->getNextDeclInContext();
2147 return x.Current == y.Current;
2151 return x.Current != y.Current;
2189 while (*Current && !isa<SpecificDecl>(*Current))
2223 ++Current;
2236 return x.Current == y.Current;
2241 return x.Current != y.Current;
2312 return x.Current == y.Current;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DIntegralLiteralExpressionMatcher.cpp40 ++Current; in advance()
41 return Current != End; in advance()
46 ++Current; in consume()
58 if (Current == End) in nonTerminalChainedExpr()
134 if (Current == End) in unaryExpr()
140 if (Current == End) in unaryExpr()
146 if (!Current->isLiteral() || isStringLiteral(Current->getKind()) || in unaryExpr()
152 ++Current; in unaryExpr()
177 if (Current == End) in compareExpr()
232 if (Current == End) in conditionalExpr()
[all …]
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DInterp.cpp40 S.Current->popArgs(); in Ret()
43 PC = S.Current->getRetPC(); in Ret()
44 delete S.Current; in Ret()
45 S.Current = Caller; in Ret()
48 delete S.Current; in Ret()
49 S.Current = nullptr; in Ret()
61 S.Current->popArgs(); in RetVoid()
65 delete S.Current; in RetVoid()
66 S.Current = Caller; in RetVoid()
68 delete S.Current; in RetVoid()
[all …]
H A DInterpState.cpp26 : Parent(Parent), M(M), P(P), Stk(Stk), Ctx(Ctx), Current(nullptr), in InterpState()
30 while (Current) { in ~InterpState()
31 InterpFrame *Next = Current->Caller; in ~InterpState()
32 delete Current; in ~InterpState()
33 Current = Next; in ~InterpState()
44 if (Current && Current->Caller) { in getCurrentFrame()
45 return Current; in getCurrentFrame()
/llvm-project-15.0.7/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp30 if (Current == End) in read()
78 Current += sizeof(float); in read()
87 Current += sizeof(double); in read()
188 Current += sizeof(T); in readRaw()
198 Current += sizeof(T); in readInt()
208 Current += sizeof(T); in readUInt()
218 Current += sizeof(T); in readLength()
228 Current += sizeof(T); in readExt()
238 Current += Size; in createRaw()
243 if (Current == End) in createExt()
[all …]
/llvm-project-15.0.7/llvm/lib/MCA/HardwareUnits/
H A DRetireControlUnit.cpp59 const RetireControlUnit::RUToken &Current = Queue[CurrentInstructionSlotIdx]; in getCurrentToken() local
61 const Instruction *Inst = Current.IR.getInstruction(); in getCurrentToken()
64 return Current; in getCurrentToken()
68 const RetireControlUnit::RUToken &Current = getCurrentToken(); in computeNextSlotIdx() local
69 unsigned NextSlotIdx = CurrentInstructionSlotIdx + std::max(1U, Current.NumSlots); in computeNextSlotIdx()
78 RetireControlUnit::RUToken &Current = Queue[CurrentInstructionSlotIdx]; in consumeCurrentToken() local
79 Current.IR.getInstruction()->retire(); in consumeCurrentToken()
82 CurrentInstructionSlotIdx += std::max(1U, Current.NumSlots); in consumeCurrentToken()
84 AvailableEntries += Current.NumSlots; in consumeCurrentToken()
85 Current = { InstRef(), 0U, false }; in consumeCurrentToken()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp89 CommentList::const_iterator Current; member in clang::CommentVerifier
95 : Current(Comments.begin()), End(Comments.end()), PP(PP) in CommentVerifier()
98 CommentVerifier(CommentVerifier &&C) : Current(C.Current), End(C.End), PP(C.PP) { in CommentVerifier()
99 C.Current = C.End; in CommentVerifier()
103 if (Current != End) { in ~CommentVerifier()
104 EXPECT_TRUE(Current == End) << "Unexpected comment \"" in ~CommentVerifier()
105 << Current->Message << "\" at line " << Current->Line << ", column " in ~CommentVerifier()
106 << Current->Col; in ~CommentVerifier()
112 if (Current == End) return; in Match()
114 const Comment &C = *Current; in Match()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InsertPrefetch.cpp193 auto Current = MI; in runOnMachineFunction() local
196 int Offset = X86II::getMemoryOperandNo(Current->getDesc().TSFlags); in runOnMachineFunction()
199 unsigned Bias = X86II::getOperandBias(Current->getDesc()); in runOnMachineFunction()
202 if (!IsMemOpCompatibleWithPrefetch(*Current, MemOpOffset)) in runOnMachineFunction()
205 if (!findPrefetchInfo(Samples, *Current, Prefetches)) in runOnMachineFunction()
215 MF.CreateMachineInstr(Desc, Current->getDebugLoc(), true); in runOnMachineFunction()
228 Current->getOperand(MemOpOffset + X86::AddrScaleAmt).getImm()) in runOnMachineFunction()
233 .addReg(Current->getOperand(MemOpOffset + X86::AddrSegmentReg) in runOnMachineFunction()
236 if (!Current->memoperands_empty()) { in runOnMachineFunction()
237 MachineMemOperand *CurrentOp = *(Current->memoperands_begin()); in runOnMachineFunction()
[all …]
/llvm-project-15.0.7/llvm/lib/Object/
H A DDXContainer.cpp59 const char *Current = Data.getBuffer().data() + Offset; in parseDXILHeader() local
61 if (Error Err = readStruct(Data.getBuffer(), Current, Header)) in parseDXILHeader()
63 Current += offsetof(dxbc::ProgramHeader, Bitcode) + Header.Bitcode.Offset; in parseDXILHeader()
64 DXIL.emplace(std::make_pair(Header, Current)); in parseDXILHeader()
69 const char *Current = Data.getBuffer().data() + sizeof(dxbc::Header); in parsePartOffsets() local
72 if (Error Err = readInteger(Data.getBuffer(), Current, PartOffset)) in parsePartOffsets()
74 Current += sizeof(uint32_t); in parsePartOffsets()
104 const char *Current = Buffer.data() + Offset; in updateIteratorImpl() local
107 cantFail(readStruct(Buffer, Current, IteratorState.Part)); in updateIteratorImpl()
109 StringRef(Current + sizeof(dxbc::PartHeader), IteratorState.Part.Size); in updateIteratorImpl()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-cfi-verify/
H A DFileAnalysis.cpp334 Current = Analysis.getInstruction(0xDEADBEEF + 1); in TEST_F()
337 Current = Analysis.getInstruction(0xDEADBEEF + 3); in TEST_F()
340 Current = Analysis.getInstruction(0xDEADBEEF + 4); in TEST_F()
343 Current = Analysis.getInstruction(0xDEADBEEF + 6); in TEST_F()
346 Current = Analysis.getInstruction(0xDEADBEEF + 8); in TEST_F()
351 Current = Analysis.getInstruction(0xDEADBEEF + 10); in TEST_F()
356 Current = Analysis.getInstruction(0xDEADBEEF + 12); in TEST_F()
361 Current = Analysis.getInstruction(0xDEADBEEF + 17); in TEST_F()
366 Current = Analysis.getInstruction(0xDEADBEEF + 22); in TEST_F()
371 Current = Analysis.getInstruction(0xDEADBEEF + 27); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DStratifiedSets.h421 auto *Current = Start; in linksAt() local
422 while (Current->isRemapped()) in linksAt()
423 Current = &Links[Current->getRemapIndex()]; in linksAt()
429 Current = Start; in linksAt()
433 Current = Next; in linksAt()
436 return *Current; in linksAt()
519 auto *Current = Lower; in tryMergeUpwards() local
521 while (Current->hasAbove() && Current != Upper) { in tryMergeUpwards()
522 Found.push_back(Current); in tryMergeUpwards()
524 Current = &linksAt(Current->getAbove()); in tryMergeUpwards()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/MCA/
H A DSourceMgr.h61 unsigned Current; variable
67 : Sequence(S), Current(0U), Iterations(Iter ? Iter : DefaultIterations) {} in CircularSourceMgr()
73 return Current < (Iterations * Sequence.size()); in hasNext()
79 return SourceRef(Current, *Sequence[Current % Sequence.size()]); in peekNext()
82 void updateNext() override { ++Current; } in updateNext()
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Dsections.ll32 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
33 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
38 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
39 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
44 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
45 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
50 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
51 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
56 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory
57 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory
/llvm-project-15.0.7/clang/lib/Basic/
H A DModule.cpp134 for (const Module *Current = this; Current; Current = Current->Parent) { in isUnimportable() local
135 if (Current->ShadowingModule) { in isUnimportable()
136 ShadowingModule = Current->ShadowingModule; in isUnimportable()
141 Current->Requirements[I].second) { in isUnimportable()
142 Req = Current->Requirements[I]; in isUnimportable()
163 for (const Module *Current = this; Current; Current = Current->Parent) { in isAvailable() local
164 if (!Current->MissingHeaders.empty()) { in isAvailable()
314 Module *Current = Stack.back(); in markUnavailable() local
317 if (!needUpdate(Current)) in markUnavailable()
320 Current->IsAvailable = false; in markUnavailable()
[all …]

123456789