| /llvm-project/clang/lib/Format/ |
| H A D | ContinuationIndenter.cpp | 140 // Returns \c true if \c Current starts the next operand in a binary operation. in startsNextParameter() 141 static bool startsNextOperand(const FormatToken &Current) { in startsNextParameter() 142 assert(Current.Previous); in startsNextParameter() 143 const auto &Previous = *Current.Previous; in startsNextParameter() 144 return isAlignableBinaryOperator(Previous) && !Current.isTrailingComment(); in startsNextParameter() 147 // Returns \c true if \c Current is a binary operation that must break. in startsNextParameter() 148 static bool mustBreakBinaryOperation(const FormatToken &Current, 151 Current.CanBreakBefore && in opensProtoMessageField() 154 : isAlignableBinaryOperator)(Current); in opensProtoMessageField() 299 const FormatToken &Current in canBreak() 132 startsNextParameter(const FormatToken & Current,const FormatStyle & Style) startsNextParameter() argument 291 const FormatToken &Current = *State.NextToken; canBreak() local 372 const FormatToken &Current = *State.NextToken; mustBreak() local 636 const FormatToken &Current = *State.NextToken; addTokenToState() local 674 FormatToken &Current = *State.NextToken; addTokenOnCurrentLine() local 944 FormatToken &Current = *State.NextToken; addTokenOnNewLine() local 1213 FormatToken &Current = *State.NextToken; getNewLineColumn() local 1486 hasNestedBlockInlined(const FormatToken * Previous,const FormatToken & Current,const FormatStyle & Style) hasNestedBlockInlined() argument 1500 const FormatToken &Current = *State.NextToken; moveStateToNextToken() local 1679 const FormatToken &Current = *State.NextToken; moveStatePastFakeLParens() local 1808 const FormatToken &Current = *State.NextToken; moveStatePastScopeOpener() local 1970 const FormatToken &Current = *State.NextToken; moveStatePastScopeCloser() local 2062 reformatRawStringLiteral(const FormatToken & Current,LineState & State,const FormatStyle & RawStringStyle,bool DryRun,bool Newline) reformatRawStringLiteral() argument 2209 addMultilineToken(const FormatToken & Current,LineState & State) addMultilineToken() argument 2225 handleEndOfLine(const FormatToken & Current,LineState & State,bool DryRun,bool AllowBreak,bool Newline) handleEndOfLine() argument 2281 getEnclosingFunctionName(const FormatToken & Current) getEnclosingFunctionName() argument 2300 getRawStringStyle(const FormatToken & Current,const LineState & State) getRawStringStyle() argument 2319 createBreakableToken(const FormatToken & Current,LineState & State,bool AllowBreak) createBreakableToken() argument 2436 breakProtrudingToken(const FormatToken & Current,LineState & State,bool AllowBreak,bool DryRun,bool Strict) breakProtrudingToken() argument 2825 const FormatToken &Current = *State.NextToken; nextIsMultilineString() local [all...] |
| H A D | SortJavaScriptImports.cpp | 218 FormatToken *Current = nullptr; member in clang::format::JavaScriptImportSorter 225 void skipComments() { Current = skipComments(Current); } in skipComments() 234 Current = Current->Next; in nextToken() 236 if (!Current || Current == LineEnd->Next) { in nextToken() 239 Current = &invalidToken; in nextToken() 372 Current = Line->First; in parseModuleReferences() 376 while (Current && Current->is(tok::comment)) { in parseModuleReferences() 377 StringRef CommentText = Current->TokenText.trim(); in parseModuleReferences() 387 References.back().Range.setEnd(Current->Tok.getEndLoc()); in parseModuleReferences() 388 Start = Current->Tok.getEndLoc().getLocWithOffset(1); in parseModuleReferences() [all …]
|
| H A D | MacroExpander.cpp | 52 Current = Tokens[0]; in DefinitionParser() 58 if (Current->isNot(tok::identifier)) in parse() 60 Def.Name = Current->TokenText; in parse() 62 if (Current->is(tok::l_paren)) { in parse() 75 assert(Current->is(tok::l_paren)); in parseParams() 77 while (Current->is(tok::identifier)) { in parseParams() 78 Def.Params.push_back(Current); in parseParams() 81 if (Current->isNot(tok::comma)) in parseParams() 85 if (Current->isNot(tok::r_paren)) in parseParams() 92 if (!Current in parseExpansion() 116 FormatToken *Current = nullptr; global() member in clang::format::MacroExpander::DefinitionParser [all...] |
| H A D | TokenAnnotator.h | 70 FormatToken *Current = First; in AnnotatedLine() 71 addChildren(Line.Tokens.front(), Current); in AnnotatedLine() 75 Current->Next = Node.Tok; in AnnotatedLine() 76 Node.Tok->Previous = Current; in AnnotatedLine() 77 Current = Current->Next; in AnnotatedLine() 78 addChildren(Node, Current); in AnnotatedLine() 83 Last = Current; in AnnotatedLine() 87 void addChildren(const UnwrappedLineNode &Node, FormatToken *Current) { in addChildren() 88 Current in addChildren() 68 FormatToken *Current = First; AnnotatedLine() local 85 addChildren(const UnwrappedLineNode & Node,FormatToken * Current) addChildren() argument 105 FormatToken *Current = First; ~AnnotatedLine() local [all...] |
| H A D | TokenAnnotator.cpp | 1243 void updateParameterCount(FormatToken *Left, FormatToken *Current) { in updateParameterCount() 1247 if (Current->is(tok::l_brace) && Current->is(BK_Block)) 1249 if (Current->is(tok::comma)) { in parseConditional() 1253 Left->Role->CommaFound(Current); in parseConditional() 1254 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) { in parseConditional() 2180 void modifyContext(const FormatToken &Current) { in modifyContext() 2182 if (Current.getPrecedence() != prec::Assignment) in modifyContext() 2188 assert(Current.Previous); in modifyContext() 2189 if (Current in modifyContext() 1232 updateParameterCount(FormatToken * Left,FormatToken * Current) updateParameterCount() argument 2153 modifyContext(const FormatToken & Current) modifyContext() argument 2269 untilMatchingParen(FormatToken * Current) untilMatchingParen() argument 2284 isDeductionGuide(FormatToken & Current) isDeductionGuide() argument 2324 determineTokenType(FormatToken & Current) determineTokenType() argument 3496 FormatToken *Current; global() member in clang::format::__anon97a2a5fc0111::ExpressionParser 3662 isFunctionDeclarationName(const LangOptions & LangOpts,const FormatToken & Current,const AnnotatedLine & Line,FormatToken * & ClosingParen) isFunctionDeclarationName() argument 3842 FormatToken *Current = First->Next; calculateFormattingInformation() local 4052 FormatToken *Current = Line.Last; calculateUnbreakableTailLengths() local [all...] |
| /llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | CodeExpander.cpp | 21 StringRef Current = Code; in emit() local 23 while (!Current.empty()) { in emit() 24 size_t Pos = Current.find_first_of("$\n\\"); in emit() 26 OS << Current; in emit() 27 Current = ""; in emit() 31 OS << Current.substr(0, Pos); in emit() 32 Current = Current.substr(Pos); in emit() 34 if (Current.consume_front("\n")) { in emit() 39 if (Current.starts_with("\\$") || Current.starts_with("\\\\")) { in emit() 40 OS << Current[1]; in emit() [all …]
|
| /llvm-project/libunwind/src/ |
| H A D | FrameHeaderCache.hpp | 93 CacheEntry *Current = MostRecentlyUsed; in find() local 95 while (Current != nullptr) { in find() 98 Current->LowPC(), Current->HighPC()); in find() 99 if (Current->LowPC() <= CBData->targetAddr && in find() 100 CBData->targetAddr < Current->HighPC()) { in find() 103 Current->LowPC(), Current->HighPC()); in find() 107 Previous->Next = Current->Next; in find() 108 Current->Next = MostRecentlyUsed; in find() 109 MostRecentlyUsed = Current; in find() 111 *CBData->sects = Current->Info; in find() [all …]
|
| /llvm-project/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 289 return StringRef(Current, End - Current); in currentInput() 528 StringRef::iterator Current; 533 /// Current YAML indentation level in spaces. 536 /// Current column number in Unicode code points. 539 /// Current line number. 870 Current = InputBuffer.getBufferStart(); in init() 1001 auto Final = skip_while(Func, Current); in advanceWhile() 1002 Column += Final - Current; in advanceWhile() 1003 Current in advanceWhile() 529 StringRef::iterator Current; global() member in llvm::yaml::Scanner [all...] |
| /llvm-project/llvm/lib/Object/ |
| H A D | DXContainer.cpp | 66 const char *Current = Part.begin(); in parseDXILHeader() local 68 if (Error Err = readStruct(Part, Current, Header)) in parseDXILHeader() 70 Current += offsetof(dxbc::ProgramHeader, Bitcode) + Header.Bitcode.Offset; in parseDXILHeader() 71 DXIL.emplace(std::make_pair(Header, Current)); in parseDXILHeader() 132 const char *Current = Data.getBuffer().data() + sizeof(dxbc::Header); in parsePartOffsets() local 135 if (Error Err = readInteger(Data.getBuffer(), Current, PartOffset)) in parsePartOffsets() 143 Current += sizeof(uint32_t); in parsePartOffsets() 222 const char *Current = Buffer.data() + Offset; in updateIteratorImpl() local 225 cantFail(readStruct(Buffer, Current, IteratorState.Part)); in updateIteratorImpl() 227 StringRef(Current + sizeof(dxbc::PartHeader), IteratorState.Part.Size); in updateIteratorImpl() [all …]
|
| /llvm-project/clang/include/clang/AST/ |
| H A D | AttrIterator.h | 38 /// Current - The current, underlying iterator. 45 mutable Iterator Current; in AdvanceToNext() 48 while (!isa<SpecificAttr>(*Current)) in AdvanceToNext() 49 ++Current; 53 while (Current != I && !isa<SpecificAttr>(*Current)) in AdvanceToNext() 54 ++Current; 65 explicit specific_attr_iterator(Iterator i) : Current(i) {} 69 return cast<SpecificAttr>(*Current); 73 return cast<SpecificAttr>(*Current); 43 mutable Iterator Current; global() variable [all...] |
| H A D | CurrentSourceLocExprScope.h | 51 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 D | Redeclarable.h | 240 /// Current - The current declaration. 241 decl_type *Current = nullptr; 253 explicit redecl_iterator(decl_type *C) : Current(C), Starter(C) {} 255 reference operator*() const { return Current; } 256 pointer operator->() const { return Current; } 259 assert(Current && "Advancing while iterator has reached end"); 262 if (Current->isFirstDecl()) { 265 Current = nullptr; 272 decl_type *Next = Current->getNextRedeclaration(); 273 Current 242 decl_type *Current = nullptr; global() variable [all...] |
| H A D | DeclBase.h | 997 /// Current - The current declaration. 998 Decl *Current = nullptr; 1009 explicit redecl_iterator(Decl *C) : Current(C), Starter(C) {} 1011 reference operator*() const { return Current; } 1012 value_type operator->() const { return Current; } 1015 assert(Current && "Advancing while iterator has reached end"); 1017 Decl *Next = Current->getNextRedeclarationImpl(); 1019 Current = (Next != Starter) ? Next : nullptr; 1030 return x.Current == y.Current; 991 Decl *Current = nullptr; global() variable [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/modernize/ |
| H A D | IntegralLiteralExpressionMatcher.cpp | 37 ++Current; in advance() 38 return Current != End; in advance() 42 if (Current->is(Kind)) { in consume() 43 ++Current; in consume() 55 if (Current == End) in nonTerminalChainedExpr() 58 while (Current != End) { in nonTerminalChainedExpr() 59 if (!IsKind(*Current)) in nonTerminalChainedExpr() 89 if (Current->isOneOf(tok::TokenKind::minus, tok::TokenKind::plus, in unaryOperator() 146 if (Current == End) in unaryExpr() 152 if (Current == End) in unaryExpr() [all …]
|
| /llvm-project/llvm/lib/CodeGenData/ |
| H A D | OutlinedHashTree.cpp | |
| /llvm-project/llvm/lib/BinaryFormat/ |
| H A D | MsgPackReader.cpp | 24 : InputBuffer(InputBuffer), Current(InputBuffer.getBufferStart()), in Reader() 30 if (Current == End) in read() 33 uint8_t FB = static_cast<uint8_t>(*Current++); in read() 78 llvm::bit_cast<float>(endian::read<uint32_t, Endianness>(Current)); in read() 79 Current += sizeof(float); in read() 88 llvm::bit_cast<double>(endian::read<uint64_t, Endianness>(Current)); in read() 89 Current += sizeof(double); in read() 189 T Size = endian::read<T, Endianness>(Current); in readRaw() 190 Current += sizeof(T); in readRaw() 199 Obj.Int = static_cast<int64_t>(endian::read<T, Endianness>(Current)); in readInt() [all …]
|
| /llvm-project/clang/lib/AST/Interp/ |
| H A D | Interp.cpp | |
| H A D | InterpState.cpp | |
| /llvm-project/llvm/lib/MCA/HardwareUnits/ |
| H A D | RetireControlUnit.cpp | 59 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/clang/unittests/Tooling/ |
| H A D | CommentHandlerTest.cpp | 86 CommentList::const_iterator Current; 92 : Current(Comments.begin()), End(Comments.end()), PP(PP) 95 CommentVerifier(CommentVerifier &&C) : Current(C.Current), End(C.End), PP(C.PP) { in CommentVerifier() 96 C.Current = C.End; in CommentVerifier() 100 if (Current != End) { in CommentVerifier() 101 EXPECT_TRUE(Current == End) << "Unexpected comment \"" 102 << Current->Message << "\" at line " << Current->Line << ", column " in ~CommentVerifier() 103 << Current in ~CommentVerifier() 89 CommentList::const_iterator Current; global() member in clang::CommentVerifier [all...] |
| /llvm-project/llvm/unittests/tools/llvm-cfi-verify/ |
| H A D | FileAnalysis.cpp | 329 const auto *Current = Analysis.getInstruction(0xDEADBEEF); in TEST_F() local 330 const auto *Next = Analysis.getDefiniteNextInstruction(*Current); in TEST_F() 334 Current = Analysis.getInstruction(0xDEADBEEF + 1); in TEST_F() 335 EXPECT_EQ(nullptr, Analysis.getDefiniteNextInstruction(*Current)); in TEST_F() 337 Current = Analysis.getInstruction(0xDEADBEEF + 3); in TEST_F() 338 EXPECT_EQ(nullptr, Analysis.getDefiniteNextInstruction(*Current)); in TEST_F() 340 Current = Analysis.getInstruction(0xDEADBEEF + 4); in TEST_F() 341 EXPECT_EQ(nullptr, Analysis.getDefiniteNextInstruction(*Current)); in TEST_F() 343 Current = Analysis.getInstruction(0xDEADBEEF + 6); in TEST_F() 344 EXPECT_EQ(nullptr, Analysis.getDefiniteNextInstruction(*Current)); in TEST_F() [all …]
|
| /llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InsertPrefetch.cpp | 198 auto Current = MI; in runOnMachineFunction() 201 int Offset = X86II::getMemoryOperandNo(Current->getDesc().TSFlags); in runOnMachineFunction() local 204 unsigned Bias = X86II::getOperandBias(Current->getDesc()); in runOnMachineFunction() 207 if (!IsMemOpCompatibleWithPrefetch(*Current, MemOpOffset)) in runOnMachineFunction() 210 if (!findPrefetchInfo(Samples, *Current, Prefetches)) in runOnMachineFunction() 220 MF.CreateMachineInstr(Desc, Current->getDebugLoc(), true); in runOnMachineFunction() 231 MIB.addReg(Current->getOperand(MemOpOffset + X86::AddrBaseReg).getReg()) in runOnMachineFunction() 233 Current->getOperand(MemOpOffset + X86::AddrScaleAmt).getImm()) in runOnMachineFunction() 235 Current->getOperand(MemOpOffset + X86::AddrIndexReg).getReg()) in runOnMachineFunction() 236 .addImm(Current in runOnMachineFunction() [all...] |
| /llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | ASTOps.cpp | 36 const Expr *Current = &E; in ignoreCFGOmittedNodes() 38 while (Current != Last) { in ignoreCFGOmittedNodes() 39 Last = Current; in ignoreCFGOmittedNodes() 40 if (auto *EWC = dyn_cast<ExprWithCleanups>(Current)) { in ignoreCFGOmittedNodes() 41 Current = EWC->getSubExpr(); in ignoreCFGOmittedNodes() 42 assert(Current != nullptr); in ignoreCFGOmittedNodes() 44 if (auto *CE = dyn_cast<ConstantExpr>(Current)) { in ignoreCFGOmittedNodes() 45 Current = CE->getSubExpr(); in ignoreCFGOmittedNodes() 46 assert(Current != nullptr); in ignoreCFGOmittedNodes() 48 Current in ignoreCFGOmittedNodes() 35 const Expr *Current = &E; ignoreCFGOmittedNodes() local [all...] |
| /llvm-project/llvm/include/llvm/MCA/ |
| H A D | SourceMgr.h | 61 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/llvm/test/CodeGen/AVR/ |
| H A D | sections.ll | 31 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory 32 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory 37 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory 38 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory 43 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory 44 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory 49 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory 50 ; CHECK-tiny40: error: Current AVR subtarget does not support accessing program memory 55 ; CHECK-8515: error: Current AVR subtarget does not support accessing extended program memory 56 ; CHECK-tiny40: error: Current AV [all...] |