Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DCodeExpander.cpp21 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/clang/lib/Format/
H A DContinuationIndenter.cpp132 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter() argument
134 const FormatToken &Previous = *Current.Previous; in startsNextParameter()
135 if (Current.is(TT_CtorInitializerComma) && in startsNextParameter()
139 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter()
141 return Previous.is(tok::comma) && !Current.isTrailingComment() && in startsNextParameter()
291 const FormatToken &Current = *State.NextToken; in canBreak() local
292 const FormatToken &Previous = *Current.Previous; in canBreak()
294 assert(&Previous == Current.Previous); in canBreak()
295 if (!Current.CanBreakBefore && !(CurrentState.BreakBeforeClosingBrace && in canBreak()
296 Current.closesBlockOrBlockTypeList(Style))) { in canBreak()
[all …]
H A DSortJavaScriptImports.cpp218 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 DMacroExpander.cpp52 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->isOneOf(tok::equal, tok::eof)) in parseExpansion()
[all …]
H A DTokenAnnotator.h68 FormatToken *Current = First; in AnnotatedLine() local
69 addChildren(Line.Tokens.front(), Current); in AnnotatedLine()
73 Current->Next = Node.Tok; in AnnotatedLine()
74 Node.Tok->Previous = Current; in AnnotatedLine()
75 Current = Current->Next; in AnnotatedLine()
76 addChildren(Node, Current); in AnnotatedLine()
81 Last = Current; in AnnotatedLine()
85 void addChildren(const UnwrappedLineNode &Node, FormatToken *Current) { in addChildren() argument
86 Current->Children.clear(); in addChildren()
91 Current->Children.push_back(Children.back()); in addChildren()
[all …]
H A DTokenAnnotator.cpp1246 void updateParameterCount(FormatToken *Left, FormatToken *Current) { in updateParameterCount() argument
1250 if (Current->is(tok::l_brace) && Current->is(BK_Block)) in updateParameterCount()
1252 if (Current->is(tok::comma)) { in updateParameterCount()
1256 Left->Role->CommaFound(Current); in updateParameterCount()
1257 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) { in updateParameterCount()
2169 void modifyContext(const FormatToken &Current) { in modifyContext() argument
2171 if (Current.getPrecedence() != prec::Assignment) in modifyContext()
2177 assert(Current.Previous); in modifyContext()
2178 if (Current.Previous->is(tok::kw_operator)) { in modifyContext()
2194 assert(Current.Previous->Previous); in modifyContext()
[all …]
/freebsd/contrib/llvm-project/libunwind/src/
H A DFrameHeaderCache.hpp93 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/llvm/lib/Support/
H A DYAMLParser.cpp290 return StringRef(Current, End - Current); in currentInput()
529 StringRef::iterator Current;
534 /// Current YAML indentation level in spaces.
537 /// Current column number in Unicode code points.
540 /// Current line number.
871 Current = InputBuffer.getBufferStart(); in init()
1002 auto Final = skip_while(Func, Current); in scan_ns_uri_char()
1003 Column += Final - Current; in scan_ns_uri_char()
1004 Current in scan_ns_uri_char()
525 StringRef::iterator Current; global() member in llvm::yaml::Scanner
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DDXContainer.cpp66 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 …]
/freebsd/contrib/llvm-project/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()
63 explicit specific_attr_iterator(Iterator i) : Current(i) {} in specific_attr_iterator()
67 return cast<SpecificAttr>(*Current);
71 return cast<SpecificAttr>(*Current);
75 ++Current;
86 assert((Left.Current == nullptr) == (Right.Current == nullptr));
[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
/freebsd/contrib/llvm-project/llvm/lib/CodeGenData/
H A DOutlinedHashTree.cpp28 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 Ddmswitch.c196 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 Dcvcompiler.c395 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 Dcvdisasm.c190 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 Daslfiles.c255 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 Dcvparser.c375 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 Daslerror.c1129 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 DMsgPackReader.cpp24 : 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 …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterp.cpp63 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseMissingInitializer()
72 const SourceInfo &E = S.Current->getSource(OpPC); in diagnoseUnknownDecl()
98 const SourceInfo &Loc = S.Current->getSource(OpPC); in diagnoseNonConstVariable()
151 const SourceInfo &Loc = S.Current->getSource(OpPC); in CheckActive()
169 const SourceInfo &E = S.Current->getSource(OpPC); in CheckTemporary()
185 S.FFDiag(S.Current->getLocation(OpPC), diag::note_constexpr_modify_global); in CheckGlobal()
199 assert(S.Current); in cleanupAfterFunctionCall()
200 const Function *CurFunc = S.Current->getFunction(); in cleanupAfterFunctionCall()
210 cast<CallExpr>(S.Current->Caller->getExpr(S.Current->getRetPC())); in cleanupAfterFunctionCall()
218 if (S.Current->Caller && CurFunc->isVariadic()) { in cleanupAfterFunctionCall()
[all …]
H A DInterpState.cpp20 : Parent(Parent), M(M), P(P), Stk(Stk), Ctx(Ctx), Current(nullptr) {} in InterpState()
23 while (Current) { in ~InterpState()
24 InterpFrame *Next = Current->Caller; in ~InterpState()
25 delete Current; in ~InterpState()
26 Current = Next; in ~InterpState()
49 if (Current && Current->Caller) in getCurrentFrame()
50 return Current; in getCurrentFrame()
/freebsd/contrib/atf/atf-c/
H A Dtc.c1047 static struct context Current; variable
1052 context_init(&Current, tc, resfile); in atf_tc_run()
1056 validate_expect(&Current); in atf_tc_run()
1058 if (Current.fail_count > 0) { in atf_tc_run()
1062 "more details", Current.fail_count); in atf_tc_run()
1063 fail_requirement(&Current, &reason); in atf_tc_run()
1064 } else if (Current.expect_fail_count > 0) { in atf_tc_run()
1068 "see output for more details", Current.expect_fail_count); in atf_tc_run()
1069 expected_failure(&Current, &reason); in atf_tc_run()
1071 pass(&Current); in atf_tc_run()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InsertPrefetch.cpp201 auto Current = MI; in runOnMachineFunction() local
204 int Offset = X86II::getMemoryOperandNo(Current->getDesc().TSFlags); in runOnMachineFunction()
207 unsigned Bias = X86II::getOperandBias(Current->getDesc()); in runOnMachineFunction()
210 if (!IsMemOpCompatibleWithPrefetch(*Current, MemOpOffset)) in runOnMachineFunction()
213 if (!findPrefetchInfo(Samples, *Current, Prefetches)) in runOnMachineFunction()
223 MF.CreateMachineInstr(Desc, Current->getDebugLoc(), true); in runOnMachineFunction()
234 MIB.addReg(Current->getOperand(MemOpOffset + X86::AddrBaseReg).getReg()) in runOnMachineFunction()
236 Current->getOperand(MemOpOffset + X86::AddrScaleAmt).getImm()) in runOnMachineFunction()
238 Current->getOperand(MemOpOffset + X86::AddrIndexReg).getReg()) in runOnMachineFunction()
239 .addImm(Current->getOperand(MemOpOffset + X86::AddrDisp).getImm() + in runOnMachineFunction()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp35 const Expr *Current = &E; in ignoreCFGOmittedNodes() local
37 while (Current != Last) { in ignoreCFGOmittedNodes()
38 Last = Current; in ignoreCFGOmittedNodes()
39 if (auto *EWC = dyn_cast<ExprWithCleanups>(Current)) { in ignoreCFGOmittedNodes()
40 Current = EWC->getSubExpr(); in ignoreCFGOmittedNodes()
41 assert(Current != nullptr); in ignoreCFGOmittedNodes()
43 if (auto *CE = dyn_cast<ConstantExpr>(Current)) { in ignoreCFGOmittedNodes()
44 Current = CE->getSubExpr(); in ignoreCFGOmittedNodes()
45 assert(Current != nullptr); in ignoreCFGOmittedNodes()
47 Current = Current->IgnoreParens(); in ignoreCFGOmittedNodes()
[all …]

1234567891011