| /netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/GlobalISel/ |
| H A D | CodeExpander.cpp | 22 StringRef Current = Code; in emit() local 24 while (!Current.empty()) { in emit() 25 size_t Pos = Current.find_first_of("$\n\\"); in emit() 27 OS << Current; in emit() 28 Current = ""; in emit() 32 OS << Current.substr(0, Pos); in emit() 33 Current = Current.substr(Pos); in emit() 35 if (Current.startswith("\n")) { in emit() 37 Current = Current.drop_front(1); in emit() 41 if (Current.startswith("\\$") || Current.startswith("\\\\")) { in emit() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Format/ |
| H A D | ContinuationIndenter.cpp | 120 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter() argument 122 const FormatToken &Previous = *Current.Previous; in startsNextParameter() 123 if (Current.is(TT_CtorInitializerComma) && in startsNextParameter() 126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter() 128 return Previous.is(tok::comma) && !Current.isTrailingComment() && in startsNextParameter() 278 const FormatToken &Current = *State.NextToken; in canBreak() local 279 const FormatToken &Previous = *Current.Previous; in canBreak() 280 assert(&Previous == Current.Previous); in canBreak() 281 if (!Current.CanBreakBefore && !(State.Stack.back().BreakBeforeClosingBrace && in canBreak() 282 Current.closesBlockOrBlockTypeList(Style))) in canBreak() [all …]
|
| H A D | SortJavaScriptImports.cpp | 211 FormatToken *Current; member in clang::format::JavaScriptImportSorter 218 void skipComments() { Current = skipComments(Current); } in skipComments() 227 Current = Current->Next; in nextToken() 229 if (!Current || Current == LineEnd->Next) { in nextToken() 233 Current = &invalidToken; in nextToken() 357 Current = Line->First; in parseModuleReferences() 361 while (Current && Current->is(tok::comment)) { in parseModuleReferences() 362 StringRef CommentText = Current->TokenText.trim(); in parseModuleReferences() 372 References.back().Range.setEnd(Current->Tok.getEndLoc()); in parseModuleReferences() 373 Start = Current->Tok.getEndLoc().getLocWithOffset(1); in parseModuleReferences() [all …]
|
| H A D | TokenAnnotator.cpp | 786 void updateParameterCount(FormatToken *Left, FormatToken *Current) { in updateParameterCount() argument 790 if (Current->is(tok::l_brace) && Current->is(BK_Block)) in updateParameterCount() 792 if (Current->is(tok::comma)) { in updateParameterCount() 796 Left->Role->CommaFound(Current); in updateParameterCount() 797 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) { in updateParameterCount() 1435 void modifyContext(const FormatToken &Current) { in modifyContext() argument 1436 if (Current.getPrecedence() == prec::Assignment && in modifyContext() 1444 (!Current.Previous || Current.Previous->isNot(tok::kw_operator))) { in modifyContext() 1447 for (FormatToken *Previous = Current.Previous; in modifyContext() 1464 } else if (Current.is(tok::lessless) && in modifyContext() [all …]
|
| H A D | MacroExpander.cpp | 53 Current = Tokens[0]; in DefinitionParser() 59 if (!Current->is(tok::identifier)) in parse() 61 Def.Name = Current->TokenText; in parse() 63 if (Current->is(tok::l_paren)) { in parse() 76 assert(Current->is(tok::l_paren)); in parseParams() 78 while (Current->is(tok::identifier)) { in parseParams() 79 Def.Params.push_back(Current); in parseParams() 82 if (Current->isNot(tok::comma)) in parseParams() 86 if (Current->isNot(tok::r_paren)) in parseParams() 93 if (!Current->isOneOf(tok::equal, tok::eof)) in parseExpansion() [all …]
|
| H A D | TokenAnnotator.h | 54 FormatToken *Current = First; in AnnotatedLine() local 59 Current->Next = I->Tok; in AnnotatedLine() 60 I->Tok->Previous = Current; in AnnotatedLine() 61 Current = Current->Next; in AnnotatedLine() 62 Current->Children.clear(); in AnnotatedLine() 65 Current->Children.push_back(Children.back()); in AnnotatedLine() 68 Last = Current; in AnnotatedLine() 76 FormatToken *Current = First; in ~AnnotatedLine() local 77 while (Current) { in ~AnnotatedLine() 78 Current->Children.clear(); in ~AnnotatedLine() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 291 return StringRef(Current, End - Current); in currentInput() 511 StringRef::iterator Current; member in llvm::yaml::Scanner 849 Current = InputBuffer.getBufferStart(); in init() 979 auto Final = skip_while(Func, Current); in advanceWhile() 980 Column += Final - Current; in advanceWhile() 981 Current = Final; in advanceWhile() 990 if (Current == End) in scan_ns_uri_char() 992 if (( *Current == '%' in scan_ns_uri_char() 993 && Current + 2 < End in scan_ns_uri_char() 994 && is_ns_hex_digit(*(Current + 1)) in scan_ns_uri_char() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | AttrIterator.h | 44 mutable Iterator Current; variable 47 while (!isa<SpecificAttr>(*Current)) in AdvanceToNext() 48 ++Current; in AdvanceToNext() 52 while (Current != I && !isa<SpecificAttr>(*Current)) in AdvanceToNext() 53 ++Current; in AdvanceToNext() 64 explicit specific_attr_iterator(Iterator i) : Current(i) {} in specific_attr_iterator() 68 return cast<SpecificAttr>(*Current); 72 return cast<SpecificAttr>(*Current); 76 ++Current; 87 assert((Left.Current == nullptr) == (Right.Current == nullptr)); [all …]
|
| H A D | CurrentSourceLocExprScope.h | 52 CurrentSourceLocExprScope &Current) in SourceLocExprScopeGuard() argument 53 : Current(Current), OldVal(Current), Enable(false) { in SourceLocExprScopeGuard() 55 if ((Enable = (Current.getDefaultExpr() == nullptr))) in SourceLocExprScopeGuard() 56 Current = CurrentSourceLocExprScope(DefaultExpr); in SourceLocExprScopeGuard() 61 Current = OldVal; in ~SourceLocExprScopeGuard() 68 CurrentSourceLocExprScope &Current; variable
|
| H A D | DeclBase.h | 928 Decl *Current = nullptr; variable 939 explicit redecl_iterator(Decl *C) : Current(C), Starter(C) {} in redecl_iterator() 941 reference operator*() const { return Current; } 942 value_type operator->() const { return Current; } 945 assert(Current && "Advancing while iterator has reached end"); 947 Decl *Next = Current->getNextRedeclarationImpl(); 949 Current = (Next != Starter) ? Next : nullptr; 960 return x.Current == y.Current; 964 return x.Current != y.Current; 2068 Decl *Current = nullptr; [all …]
|
| /netbsd-src/sys/external/bsd/acpica/dist/compiler/ |
| H A D | cvcompiler.c | 287 ACPI_COMMENT_NODE *Current = NULL; in CvCalculateCommentLengths() local 311 Current = Op->Asl.CommentList; in CvCalculateCommentLengths() 312 while (Current) in CvCalculateCommentLengths() 314 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths() 316 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths() 318 Current = Current->Next; in CvCalculateCommentLengths() 324 Current = Op->Asl.EndBlkComment; in CvCalculateCommentLengths() 325 while (Current) in CvCalculateCommentLengths() 327 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths() 329 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths() [all …]
|
| H A D | cvdisasm.c | 82 ACPI_COMMENT_NODE *Current = CommentList; in CvPrintOneCommentList() local 86 while (Current) in CvPrintOneCommentList() 88 Previous = Current; in CvPrintOneCommentList() 89 if (Current->Comment) in CvPrintOneCommentList() 92 AcpiOsPrintf("%s\n", Current->Comment); in CvPrintOneCommentList() 93 Current->Comment = NULL; in CvPrintOneCommentList() 96 Current = Current->Next; in CvPrintOneCommentList() 404 ACPI_FILE_NODE *Current; in CvSwitchFiles() local 424 Current = FNode; in CvSwitchFiles() 431 while (Current && in CvSwitchFiles() [all …]
|
| H A D | cvparser.c | 267 ACPI_COMMENT_ADDR_NODE *Current = AcpiGbl_CommentAddrListHead; in CvCommentExists() local 288 if (!Current) in CvCommentExists() 298 while (Current) in CvCommentExists() 300 if (Current->Addr != Address) in CvCommentExists() 302 Current = Current->Next; in CvCommentExists() 315 Current = AcpiGbl_CommentAddrListHead; in CvCommentExists() 320 AcpiGbl_CommentAddrListHead->Next = Current; in CvCommentExists() 344 ACPI_FILE_NODE *Current = Head; in CvFilenameExists() local 352 while (Current) in CvFilenameExists() 354 if (!AcpiUtStricmp (Current->Filename, Filename)) in CvFilenameExists() [all …]
|
| H A D | aslfiles.c | 147 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; in FlInputFileExists() local 150 while (Current) in FlInputFileExists() 152 if (!strcmp (Filename, Current->Files[ASL_FILE_INPUT].Filename)) in FlInputFileExists() 157 Current = Current->Next; in FlInputFileExists() 180 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; in FlSwitchFileSet() local 181 char *PrevFilename = Current->Files[ASL_FILE_INPUT].Filename; in FlSwitchFileSet() 184 while (Current) in FlSwitchFileSet() 186 if (!strcmp(Current->Files[ASL_FILE_INPUT].Filename, InputFilename)) in FlSwitchFileSet() 188 AslGbl_Files = Current in FlSwitchFileSet() 231 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; FlGetFileHandle() local 271 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; FlGetFileNode() local [all...] |
| H A D | aslerror.c | 1021 ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; in AslCheckExpectedExceptions() local 1034 while (Current) in AslCheckExpectedExceptions() 1036 LocationNode = Current->LocationList; in AslCheckExpectedExceptions() 1045 LocationNode->Filename, Current->MessageIdStr); in AslCheckExpectedExceptions() 1051 Current = Current->Next; in AslCheckExpectedExceptions() 1124 ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; in AslLogExpectedExceptionByLine() local 1139 while (Current && Current->MessageId != MessageId ) in AslLogExpectedExceptionByLine() 1141 Current = Current->Next; in AslLogExpectedExceptionByLine() 1143 if (!Current) in AslLogExpectedExceptionByLine() 1147 Current = UtLocalCalloc (sizeof (ASL_EXPECTED_MSG_NODE)); in AslLogExpectedExceptionByLine() [all …]
|
| /netbsd-src/sys/external/bsd/acpica/dist/common/ |
| H A D | dmswitch.c | 88 ACPI_PARSE_OBJECT_LIST *Current; in AcpiDmProcessSwitch() local 111 Current = AcpiGbl_TempListHead; in AcpiDmProcessSwitch() 114 AcpiGbl_TempListHead->Next = Current; in AcpiDmProcessSwitch() 136 Previous = Current = AcpiGbl_TempListHead; in AcpiDmProcessSwitch() 137 while (Current) in AcpiDmProcessSwitch() 141 if (!strncmp(Temp, (char *) (&Current->Op->Named.Name), 4)) in AcpiDmProcessSwitch() 145 Current->Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; in AcpiDmProcessSwitch() 149 if (Current == AcpiGbl_TempListHead) in AcpiDmProcessSwitch() 151 AcpiGbl_TempListHead = Current->Next; in AcpiDmProcessSwitch() 155 Previous->Next = Current->Next; in AcpiDmProcessSwitch() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| H A D | Interp.cpp | 38 assert(S.Current->getFrameOffset() == S.Stk.size() && "Invalid frame"); in Ret() 40 S.Current->popArgs(); in Ret() 42 if (InterpFrame *Caller = S.Current->Caller) { 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() 59 assert(S.Current->getFrameOffset() == S.Stk.size() && "Invalid frame"); in RetVoid() 61 S.Current->popArgs(); in RetVoid() [all …]
|
| H A D | InterpState.cpp | 26 : 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()
|
| /netbsd-src/external/gpl2/dtc/dist/ |
| H A D | srcpos.h | 70 #define YYLLOC_DEFAULT(Current, Rhs, N) \ argument 73 (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ 74 (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ 75 (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ 76 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ 77 (Current).file = YYRHSLOC(Rhs, N).file; \ 79 (Current).first_line = (Current).last_line = \ 81 (Current).first_column = (Current).last_column = \ 83 (Current).file = YYRHSLOC (Rhs, 0).file; \ 85 (Current).next = NULL; \
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/ |
| H A D | MsgPackReader.cpp | 23 : InputBuffer(InputBuffer), Current(InputBuffer.getBufferStart()), in Reader() 29 if (Current == End) in read() 32 uint8_t FB = static_cast<uint8_t>(*Current++); in read() 76 Obj.Float = BitsToFloat(endian::read<uint32_t, Endianness>(Current)); in read() 77 Current += sizeof(float); in read() 85 Obj.Float = BitsToDouble(endian::read<uint64_t, Endianness>(Current)); in read() 86 Current += sizeof(double); in read() 186 T Size = endian::read<T, Endianness>(Current); in readRaw() 187 Current += sizeof(T); in readRaw() 196 Obj.Int = static_cast<int64_t>(endian::read<T, Endianness>(Current)); in readInt() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/bsd/atf/dist/atf-c/ |
| H A D | tc.c | 1017 static struct context Current; variable 1022 context_init(&Current, tc, resfile); in atf_tc_run() 1026 validate_expect(&Current); in atf_tc_run() 1028 if (Current.fail_count > 0) { in atf_tc_run() 1032 "more details", Current.fail_count); in atf_tc_run() 1033 fail_requirement(&Current, &reason); in atf_tc_run() 1034 } else if (Current.expect_fail_count > 0) { in atf_tc_run() 1038 "see output for more details", Current.expect_fail_count); in atf_tc_run() 1039 expected_failure(&Current, &reason); in atf_tc_run() 1041 pass(&Current); in atf_tc_run() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86InsertPrefetch.cpp | 192 auto Current = MI; in runOnMachineFunction() local 195 int Offset = X86II::getMemoryOperandNo(Current->getDesc().TSFlags); in runOnMachineFunction() 198 unsigned Bias = X86II::getOperandBias(Current->getDesc()); in runOnMachineFunction() 201 if (!IsMemOpCompatibleWithPrefetch(*Current, MemOpOffset)) in runOnMachineFunction() 204 if (!findPrefetchInfo(Samples, *Current, Prefetches)) in runOnMachineFunction() 214 MF.CreateMachineInstr(Desc, Current->getDebugLoc(), true); in runOnMachineFunction() 225 MIB.addReg(Current->getOperand(MemOpOffset + X86::AddrBaseReg).getReg()) in runOnMachineFunction() 227 Current->getOperand(MemOpOffset + X86::AddrScaleAmt).getImm()) in runOnMachineFunction() 229 Current->getOperand(MemOpOffset + X86::AddrIndexReg).getReg()) in runOnMachineFunction() 230 .addImm(Current->getOperand(MemOpOffset + X86::AddrDisp).getImm() + in runOnMachineFunction() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | StratifiedSets.h | 421 auto *Current = Start; in linksAt() local 422 while (Current->isRemapped()) in linksAt() 423 Current = &Links[Current->getRemapIndex()]; in linksAt() 425 auto NewRemap = Current->Number; in linksAt() 429 Current = Start; in linksAt() 430 while (Current->isRemapped()) { in linksAt() 431 auto *Next = &Links[Current->getRemapIndex()]; in linksAt() 432 Current->updateRemap(NewRemap); in linksAt() 433 Current = Next; in linksAt() 436 return *Current; in linksAt() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MCA/ |
| H A D | SourceMgr.h | 31 unsigned Current; variable 37 : Sequence(S), Current(0), Iterations(Iter ? Iter : DefaultIterations) {} in SourceMgr() 41 bool hasNext() const { return Current < (Iterations * Sequence.size()); } in hasNext() 42 void updateNext() { ++Current; } in updateNext() 46 return SourceRef(Current, *Sequence[Current % Sequence.size()]); in peekNext()
|