| /freebsd/contrib/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 …]
|
| /freebsd/contrib/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() 105 // If there is no Previous, then Current is already the in find() 107 Previous->Next = Current in find() 123 CacheEntry *Current = nullptr; add() local [all...] |
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | ContinuationIndenter.cpp | 141 static bool startsNextOperand(const FormatToken &Current) { in startsNextOperand() argument 142 assert(Current.Previous); in startsNextOperand() 143 const auto &Previous = *Current.Previous; in startsNextOperand() 144 return isAlignableBinaryOperator(Previous) && !Current.isTrailingComment(); in startsNextOperand() 148 static bool mustBreakBinaryOperation(const FormatToken &Current, in mustBreakBinaryOperation() argument 151 Current.CanBreakBefore && in mustBreakBinaryOperation() 154 : isAlignableBinaryOperator)(Current); in mustBreakBinaryOperation() 299 const FormatToken &Current = *State.NextToken; in canBreak() local 300 const FormatToken &Previous = *Current.Previous; in canBreak() 302 assert(&Previous == Current.Previous); in canBreak() [all …]
|
| H A D | SortJavaScriptImports.cpp | 216 FormatToken *Current = nullptr; member in clang::format::JavaScriptImportSorter 223 void skipComments() { Current = skipComments(Current); } in skipComments() 232 Current = Current->Next; in nextToken() 234 if (!Current || Current == LineEnd->Next) { in nextToken() 237 Current = &invalidToken; in nextToken() 369 Current = Line->First; in parseModuleReferences() 373 while (Current && Current->is(tok::comment)) { in parseModuleReferences() 374 StringRef CommentText = Current->TokenText.trim(); in parseModuleReferences() 384 References.back().Range.setEnd(Current->Tok.getEndLoc()); in parseModuleReferences() 385 Start = Current->Tok.getEndLoc().getLocWithOffset(1); in parseModuleReferences() [all …]
|
| H A D | TokenAnnotator.h | 70 FormatToken *Current = First; in AnnotatedLine() local 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() argument 88 Current->Children.clear(); in addChildren() 93 Current->Children.push_back(Children.back()); in addChildren() [all …]
|
| H A D | MacroExpander.cpp | 49 Current = Tokens[0]; in DefinitionParser() 55 if (Current->isNot(tok::identifier)) in parse() 57 Def.Name = Current->TokenText; in parse() 59 if (Current->is(tok::l_paren)) { in parse() 72 assert(Current->is(tok::l_paren)); in parseParams() 74 while (Current->is(tok::identifier)) { in parseParams() 75 Def.Params.push_back(Current); in parseParams() 78 if (Current->isNot(tok::comma)) in parseParams() 82 if (Current->isNot(tok::r_paren)) in parseParams() 89 if (!Current->isOneOf(tok::equal, tok::eof)) in parseExpansion() [all …]
|
| H A D | TokenAnnotator.cpp | 1236 void updateParameterCount(FormatToken *Left, FormatToken *Current) { in updateParameterCount() argument 1240 if (Current->is(tok::l_brace) && Current->is(BK_Block)) in updateParameterCount() 1242 if (Current->is(tok::comma)) { in updateParameterCount() 1246 Left->Role->CommaFound(Current); in updateParameterCount() 1247 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) { in updateParameterCount() 2186 void modifyContext(const FormatToken &Current) { in modifyContext() argument 2188 if (Current.getPrecedence() != prec::Assignment) in modifyContext() 2194 assert(Current.Previous); in modifyContext() 2195 if (Current.Previous->is(tok::kw_operator)) { in modifyContext() 2211 assert(Current.Previous->Previous); in modifyContext() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 289 return StringRef(Current, End - Current); in currentInput() 528 StringRef::iterator Current; member in llvm::yaml::Scanner 871 Current = InputBuffer.getBufferStart(); in init() 1002 auto Final = skip_while(Func, Current); in advanceWhile() 1003 Column += Final - Current; in advanceWhile() 1004 Current = Final; in advanceWhile() 1013 if (Current == End) in scan_ns_uri_char() 1015 if ((*Current == '%' && Current + 2 < End && in scan_ns_uri_char() 1016 is_ns_hex_digit(*(Current + 1)) && is_ns_hex_digit(*(Current + 2))) || in scan_ns_uri_char() 1017 is_ns_word_char(*Current) || in scan_ns_uri_char() [all …]
|
| /freebsd/contrib/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() 141 const char *Current = Data.getBuffer().data() + sizeof(dxbc::Header); in parsePartOffsets() local 144 if (Error Err = readInteger(Data.getBuffer(), Current, PartOffset)) in parsePartOffsets() 152 Current += sizeof(uint32_t); in parsePartOffsets() 235 const char *Current = Buffer.data() + Offset; in updateIteratorImpl() local 238 cantFail(readStruct(Buffer, Current, IteratorState.Part)); in updateIteratorImpl() 240 StringRef(Current + sizeof(dxbc::PartHeader), IteratorState.Part.Size); in updateIteratorImpl() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | AttrIterator.h | 46 mutable Iterator Current; variable 49 while (!isa<SpecificAttr>(*Current)) in AdvanceToNext() 50 ++Current; in AdvanceToNext() 54 while (Current != I && !isa<SpecificAttr>(*Current)) in AdvanceToNext() 55 ++Current; in AdvanceToNext() 66 explicit specific_attr_iterator(Iterator i) : Current(i) {} in specific_attr_iterator() 70 return cast<SpecificAttr>(*Current); 74 return cast<SpecificAttr>(*Current); 78 ++Current; 89 assert((Left.Current == nullptr) == (Right.Current == nullptr)); [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
|
| /freebsd/contrib/llvm-project/llvm/lib/CGData/ |
| H A D | OutlinedHashTree.cpp | 28 const auto *Current = Stack.pop_back_val(); in walkGraph() local 30 CallbackNode(Current); in walkGraph() 34 CallbackEdge(Current, Next); in walkGraph() 39 for (const auto &[Hash, Successor] : Current->Successors) in walkGraph() 45 for (const auto &P : Current->Successors) in walkGraph() 73 HashNode *Current = getRoot(); in insert() local 76 auto I = Current->Successors.find(StableHash); in insert() 77 if (I == Current->Successors.end()) { in insert() 81 Current->Successors.emplace(StableHash, std::move(Next)); in insert() 82 Current = NextPtr; in insert() [all …]
|
| /freebsd/sys/contrib/dev/acpica/common/ |
| H A D | dmswitch.c | 196 ACPI_PARSE_OBJECT_LIST *Current; in AcpiDmProcessSwitch() local 219 Current = AcpiGbl_TempListHead; in AcpiDmProcessSwitch() 222 AcpiGbl_TempListHead->Next = Current; in AcpiDmProcessSwitch() 244 Previous = Current = AcpiGbl_TempListHead; in AcpiDmProcessSwitch() 245 while (Current) in AcpiDmProcessSwitch() 249 if (!strncmp(Temp, (char *) (&Current->Op->Named.Name), 4)) in AcpiDmProcessSwitch() 253 Current->Op->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE; in AcpiDmProcessSwitch() 257 if (Current == AcpiGbl_TempListHead) in AcpiDmProcessSwitch() 259 AcpiGbl_TempListHead = Current->Next; in AcpiDmProcessSwitch() 263 Previous->Next = Current->Next; in AcpiDmProcessSwitch() [all …]
|
| /freebsd/sys/contrib/dev/acpica/compiler/ |
| H A D | cvcompiler.c | 395 ACPI_COMMENT_NODE *Current = NULL; in CvCalculateCommentLengths() local 419 Current = Op->Asl.CommentList; in CvCalculateCommentLengths() 420 while (Current) in CvCalculateCommentLengths() 422 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths() 424 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths() 426 Current = Current->Next; in CvCalculateCommentLengths() 432 Current = Op->Asl.EndBlkComment; in CvCalculateCommentLengths() 433 while (Current) in CvCalculateCommentLengths() 435 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths() 437 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths() [all …]
|
| H A D | cvdisasm.c | 190 ACPI_COMMENT_NODE *Current = CommentList; in CvPrintOneCommentList() local 194 while (Current) in CvPrintOneCommentList() 196 Previous = Current; in CvPrintOneCommentList() 197 if (Current->Comment) in CvPrintOneCommentList() 200 AcpiOsPrintf("%s\n", Current->Comment); in CvPrintOneCommentList() 201 Current->Comment = NULL; in CvPrintOneCommentList() 204 Current = Current->Next; in CvPrintOneCommentList() 512 ACPI_FILE_NODE *Current; in CvSwitchFiles() local 532 Current = FNode; in CvSwitchFiles() 539 while (Current && in CvSwitchFiles() [all …]
|
| H A D | aslfiles.c | 255 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; in FlInputFileExists() local 258 while (Current) in FlInputFileExists() 260 if (!strcmp (Filename, Current->Files[ASL_FILE_INPUT].Filename)) in FlInputFileExists() 265 Current = Current->Next; in FlInputFileExists() 288 ASL_GLOBAL_FILE_NODE *Current = AslGbl_FilesList; in FlSwitchFileSet() local 289 char *PrevFilename = Current->Files[ASL_FILE_INPUT].Filename; in FlSwitchFileSet() 292 while (Current) in FlSwitchFileSet() 294 if (!strcmp(Current->Files[ASL_FILE_INPUT].Filename, InputFilename)) in FlSwitchFileSet() 296 AslGbl_Files = Current->Files; in FlSwitchFileSet() 297 AslGbl_TableSignature = Current->TableSignature; in FlSwitchFileSet() [all …]
|
| H A D | cvparser.c | 375 ACPI_COMMENT_ADDR_NODE *Current = AcpiGbl_CommentAddrListHead; in CvCommentExists() local 396 if (!Current) in CvCommentExists() 406 while (Current) in CvCommentExists() 408 if (Current->Addr != Address) in CvCommentExists() 410 Current = Current->Next; in CvCommentExists() 423 Current = AcpiGbl_CommentAddrListHead; in CvCommentExists() 428 AcpiGbl_CommentAddrListHead->Next = Current; in CvCommentExists() 452 ACPI_FILE_NODE *Current = Head; in CvFilenameExists() local 460 while (Current) in CvFilenameExists() 462 if (!AcpiUtStricmp (Current->Filename, Filename)) in CvFilenameExists() [all …]
|
| H A D | aslerror.c | 1129 ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; in AslCheckExpectedExceptions() local 1142 while (Current) in AslCheckExpectedExceptions() 1144 LocationNode = Current->LocationList; in AslCheckExpectedExceptions() 1153 LocationNode->Filename, Current->MessageIdStr); in AslCheckExpectedExceptions() 1159 Current = Current->Next; in AslCheckExpectedExceptions() 1232 ASL_EXPECTED_MSG_NODE *Current = AslGbl_ExpectedErrorCodeList; in AslLogExpectedExceptionByLine() local 1247 while (Current && Current->MessageId != MessageId ) in AslLogExpectedExceptionByLine() 1249 Current = Current->Next; in AslLogExpectedExceptionByLine() 1251 if (!Current) in AslLogExpectedExceptionByLine() 1255 Current = UtLocalCalloc (sizeof (ASL_EXPECTED_MSG_NODE)); in AslLogExpectedExceptionByLine() [all …]
|
| /freebsd/contrib/llvm-project/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() 77 llvm::bit_cast<float>(endian::read<uint32_t, Endianness>(Current)); in read() 78 Current += sizeof(float); in read() 87 llvm::bit_cast<double>(endian::read<uint64_t, Endianness>(Current)); in read() 88 Current += sizeof(double); in read() 188 T Size = endian::read<T, Endianness>(Current); in readRaw() 189 Current += sizeof(T); in readRaw() 198 Obj.Int = static_cast<int64_t>(endian::read<T, Endianness>(Current)); in readInt() [all …]
|
| /freebsd/contrib/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()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Interp.cpp | 69 const InterpFrame *StartFrame = S.Current; in BCP() 130 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseMissingInitializer() 148 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl() 164 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseUnknownDecl() 178 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseNonConstVariable() 226 const SourceInfo &E = S.Current->getSource(OpPC); in CheckTemporary() 243 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_modify_global); in CheckGlobal() 258 assert(S.Current); in cleanupAfterFunctionCall() 261 if (S.Current->Caller && Func->isVariadic()) { in cleanupAfterFunctionCall() 268 const Expr *CallSite = S.Current->Caller->getExpr(S.Current->getRetPC()); in cleanupAfterFunctionCall() [all …]
|
| H A D | InterpState.cpp | 21 Current(&BottomFrame) {} in InterpState() 27 Current(&BottomFrame) {} in InterpState() 37 while (Current && !Current->isBottomFrame()) { in ~InterpState() 38 InterpFrame *Next = Current->Caller; in ~InterpState() 39 delete Current; in ~InterpState() 40 Current = Next; in ~InterpState() 64 if (Current && Current->Caller) in getCurrentFrame() 65 return Current; in getCurrentFrame() 122 for (const InterpFrame *F = Current; F; F = F->Caller) { in getStdAllocatorCaller()
|
| /freebsd/contrib/atf/atf-c/ |
| H A D | tc.c | 1098 static struct context Current; variable 1103 context_init(&Current, tc, resfile); in atf_tc_run() 1107 validate_expect(&Current); in atf_tc_run() 1109 if (Current.fail_count > 0) { in atf_tc_run() 1113 "more details", Current.fail_count); in atf_tc_run() 1114 fail_requirement(&Current, &reason); in atf_tc_run() 1115 } else if (Current.expect_fail_count > 0) { in atf_tc_run() 1119 "see output for more details", Current.expect_fail_count); in atf_tc_run() 1120 expected_failure(&Current, &reason); in atf_tc_run() 1122 pass(&Current); in atf_tc_run() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InsertPrefetch.cpp | 198 auto Current = MI; in runOnMachineFunction() local 201 int Offset = X86II::getMemoryOperandNo(Current->getDesc().TSFlags); in runOnMachineFunction() 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->getOperand(MemOpOffset + X86::AddrDisp).getImm() + in runOnMachineFunction() [all …]
|
| /freebsd/contrib/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()
|