Home
last modified time | relevance | path

Searched refs:Cursor (Results 1 – 25 of 75) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp30 class Cursor { class
35 Cursor(std::nullopt_t) {} in Cursor() function in __anon1a8bfba50111::Cursor
37 explicit Cursor(StringRef Str) { in Cursor() function in __anon1a8bfba50111::Cursor
50 StringRef upto(Cursor C) const { in upto()
85 static Cursor skipWhitespace(Cursor C) { in skipWhitespace()
94 static Cursor skipComment(Cursor C) { in skipComment()
104 static Cursor skipMachineOperandComment(Cursor C) { in skipMachineOperandComment()
128 Cursor C = Cursor(Value.substr(1, Value.size() - 2)); in unescapeQuotedString()
154 static Cursor lexStringConstant(Cursor C, ErrorCallbackType ErrorCallback) { in lexStringConstant()
168 static Cursor lexName(Cursor C, MIToken &Token, MIToken::TokenKind Type, in lexName()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DDataExtractor.h54 class Cursor {
62 explicit Cursor(uint64_t Offset) : Offset(Offset), Err(Error::success()) {} in Cursor() function
136 const char *getCStr(Cursor &C) const { return getCStrRef(C).data(); } in getCStr()
169 StringRef getCStrRef(Cursor &C) const { in getCStrRef()
239 StringRef getBytes(Cursor &C, uint64_t Length) { in getBytes()
279 uint64_t getUnsigned(Cursor &C, uint32_t Size) const { in getUnsigned()
332 uint64_t getAddress(Cursor &C) const { return getUnsigned(C, AddressSize); } in getAddress()
359 uint8_t getU8(Cursor &C) const { return getU8(&C.Offset, &C.Err); } in getU8()
390 uint8_t *getU8(Cursor &C, uint8_t *Dst, uint32_t Count) const;
397 void getU8(Cursor &C, SmallVectorImpl<uint8_t> &Dst, uint32_t Count) const { in getU8()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLine.cpp366 DataExtractor::Cursor Cursor(*OffsetPtr); in parse() local
368 DebugLineData.getInitialLength(Cursor); in parse()
371 DWARFDataExtractor(DebugLineData, Cursor.tell() + TotalLength); in parse()
372 FormParams.Version = DebugLineData.getU16(Cursor); in parse()
373 if (Cursor && !versionIsSupported(getVersion())) { in parse()
377 *OffsetPtr = Cursor.tell(); in parse()
386 FormParams.AddrSize = DebugLineData.getU8(Cursor); in parse()
387 assert((!Cursor || DebugLineData.getAddressSize() == 0 || in parse()
390 SegSelectorSize = DebugLineData.getU8(Cursor); in parse()
394 DebugLineData.getRelocatedValue(Cursor, sizeofPrologueLength()); in parse()
[all …]
/openbsd-src/gnu/llvm/clang/bindings/python/clang/
H A Dcindex.py1415 class Cursor(Structure): class
1945 assert isinstance(res, Cursor)
1969 assert isinstance(res, Cursor)
3369 cursor = Cursor()
3381 callbacks['cursor_visit'] = CFUNCTYPE(c_int, Cursor, Cursor, py_object)
3382 callbacks['fields_visit'] = CFUNCTYPE(c_int, Cursor, py_object)
3387 [TranslationUnit, POINTER(Token), c_uint, POINTER(Cursor)]),
3458 [Cursor],
3462 [Cursor],
3466 [Cursor],
[all …]
/openbsd-src/gnu/llvm/lldb/include/lldb/Target/
H A DUnwindLLDB.h111 struct Cursor { struct
122 Cursor() = default; argument
125 Cursor(const Cursor &) = delete;
126 const Cursor &operator=(const Cursor &) = delete; argument
129 typedef std::shared_ptr<Cursor> CursorSP;
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DSerializedDiagnosticReader.cpp109 enum class SerializedDiagnosticReader::Cursor { enum in SerializedDiagnosticReader
115 llvm::ErrorOr<SerializedDiagnosticReader::Cursor>
130 return Cursor::Record; in skipUntilRecordOrBlock()
138 return Cursor::BlockBegin; in skipUntilRecordOrBlock()
143 return Cursor::BlockEnd; in skipUntilRecordOrBlock()
174 llvm::ErrorOr<Cursor> Res = skipUntilRecordOrBlock(Stream, BlockOrCode); in readMetaBlock()
179 case Cursor::Record: in readMetaBlock()
181 case Cursor::BlockBegin: in readMetaBlock()
188 case Cursor::BlockEnd: in readMetaBlock()
226 llvm::ErrorOr<Cursor> Res = skipUntilRecordOrBlock(Stream, BlockOrCode); in readDiagnosticBlock()
[all …]
/openbsd-src/gnu/llvm/clang/tools/c-index-test/
H A Dc-index-test.c690 static void PrintCursorComments(CXCursor Cursor, in PrintCursorComments() argument
698 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments()
702 PrintRange(clang_Cursor_getCommentRange(Cursor), "RawCommentRange"); in PrintCursorComments()
704 BriefComment = clang_Cursor_getBriefCommentText(Cursor); in PrintCursorComments()
714 CXComment Comment = clang_Cursor_getParsedComment(Cursor); in PrintCursorComments()
744 static CXString CursorToText(CXCursor Cursor) { in CursorToText() argument
748 return clang_getCursorSpelling(Cursor); in CursorToText()
750 return clang_getCursorDisplayName(Cursor); in CursorToText()
752 CXPrintingPolicy Policy = clang_getCursorPrintingPolicy(Cursor); in CursorToText()
754 text = clang_getCursorPrettyPrinted(Cursor, Policy); in CursorToText()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DInterferenceCache.h176 class Cursor {
194 Cursor() = default;
196 Cursor(const Cursor &O) { in Cursor() function
200 Cursor &operator=(const Cursor &O) {
205 ~Cursor() { setEntry(nullptr); } in ~Cursor()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXCursor.h237 const Decl *getCursorDecl(CXCursor Cursor);
238 const Expr *getCursorExpr(CXCursor Cursor);
239 const Stmt *getCursorStmt(CXCursor Cursor);
240 const Attr *getCursorAttr(CXCursor Cursor);
242 ASTContext &getCursorContext(CXCursor Cursor);
243 ASTUnit *getCursorASTUnit(CXCursor Cursor);
244 CXTranslationUnit getCursorTU(CXCursor Cursor);
H A DCXCursor.cpp1147 const Decl *cxcursor::getCursorDecl(CXCursor Cursor) { in getCursorDecl() argument
1148 return static_cast<const Decl *>(Cursor.data[0]); in getCursorDecl()
1151 const Expr *cxcursor::getCursorExpr(CXCursor Cursor) { in getCursorExpr() argument
1152 return dyn_cast_or_null<Expr>(getCursorStmt(Cursor)); in getCursorExpr()
1155 const Stmt *cxcursor::getCursorStmt(CXCursor Cursor) { in getCursorStmt() argument
1156 if (Cursor.kind == CXCursor_ObjCSuperClassRef || in getCursorStmt()
1157 Cursor.kind == CXCursor_ObjCProtocolRef || in getCursorStmt()
1158 Cursor.kind == CXCursor_ObjCClassRef) in getCursorStmt()
1161 return static_cast<const Stmt *>(Cursor.data[1]); in getCursorStmt()
1164 const Attr *cxcursor::getCursorAttr(CXCursor Cursor) { in getCursorAttr() argument
[all …]
H A DCIndexHigh.cpp306 static bool findMacroRefsInFile(CXTranslationUnit TU, CXCursor Cursor, in findMacroRefsInFile() argument
309 if (Cursor.kind != CXCursor_MacroDefinition && in findMacroRefsInFile()
310 Cursor.kind != CXCursor_MacroExpansion) in findMacroRefsInFile()
318 if (Cursor.kind == CXCursor_MacroDefinition) in findMacroRefsInFile()
319 Macro = getCursorMacroDefinition(Cursor)->getName(); in findMacroRefsInFile()
321 Macro = getCursorMacroExpansion(Cursor).getName(); in findMacroRefsInFile()
H A DCXIndexDataConsumer.cpp195 CXCursor Cursor; in handleDeclOccurrence() local
197 Cursor = cxcursor::MakeCXCursor(ASTNode.OrigE, in handleDeclOccurrence()
203 Cursor = getRefCursor(OrigND, Loc); in handleDeclOccurrence()
205 Cursor = MakeCXCursor(ASTNode.OrigD, CXTU); in handleDeclOccurrence()
207 Cursor = getRefCursor(ND, Loc); in handleDeclOccurrence()
210 handleReference(ND, Loc, Cursor, in handleDeclOccurrence()
549 SourceLocation Loc, CXCursor Cursor, in handleDecl() argument
571 DInfo.cursor = Cursor; in handleDecl()
608 SourceLocation Loc, CXCursor Cursor, in handleObjCContainer() argument
611 return handleDecl(D, Loc, Cursor, ContDInfo); in handleObjCContainer()
[all …]
H A DCIndex.cpp195 bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) { in Visit() argument
196 if (clang_isInvalid(Cursor.kind)) in Visit()
199 if (clang_isDeclaration(Cursor.kind)) { in Visit()
200 const Decl *D = getCursorDecl(Cursor); in Visit()
215 SourceRange Range = getRawCursorExtent(Cursor); in Visit()
220 switch (Visitor(Cursor, Parent, ClientData)) { in Visit()
228 bool ret = VisitChildren(Cursor); in Visit()
230 if (PostChildrenVisitor(Cursor, ClientData)) in Visit()
493 bool CursorVisitor::VisitChildren(CXCursor Cursor) { in VisitChildren() argument
494 if (clang_isReference(Cursor.kind) && in VisitChildren()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Serialization/
H A DASTRecordReader.h51 Expected<unsigned> readRecord(llvm::BitstreamCursor &Cursor,
353 explicit SavedStreamPosition(llvm::BitstreamCursor &Cursor) in SavedStreamPosition()
354 : Cursor(Cursor), Offset(Cursor.GetCurrentBitNo()) {} in SavedStreamPosition()
357 if (llvm::Error Err = Cursor.JumpToBit(Offset)) in ~SavedStreamPosition()
364 llvm::BitstreamCursor &Cursor;
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D920625-2.c2 typedef unsigned Cursor; typedef
15 extern void setCursor(Cursor);
24 extern Cursor busy, left_ptr; in trashQueryResult()
60 extern Cursor busy, left_ptr; in copyQueryResult()
/openbsd-src/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dutil.py13 from clang.cindex import Cursor
53 root_cursor = source if isinstance(source, Cursor) else source.cursor
71 root_cursor = source if isinstance(source, Cursor) else source.cursor
H A Dtest_location.py6 from clang.cindex import Cursor
61 cursor = Cursor.from_location(tu, location)
74 cursor = Cursor.from_location(tu, offset_location)
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp415 Instruction *Cursor = nullptr; in findLocationForEntrySafepoint() local
416 for (Cursor = &F.getEntryBlock().front(); HasNextInstruction(Cursor); in findLocationForEntrySafepoint()
417 Cursor = NextInstruction(Cursor)) { in findLocationForEntrySafepoint()
426 if (auto *Call = dyn_cast<CallBase>(Cursor)) { in findLocationForEntrySafepoint()
433 assert((HasNextInstruction(Cursor) || Cursor->isTerminator()) && in findLocationForEntrySafepoint()
436 return Cursor; in findLocationForEntrySafepoint()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDataExtractor.h56 std::pair<uint64_t, dwarf::DwarfFormat> getInitialLength(Cursor &C) const { in getInitialLength()
65 uint64_t getRelocatedValue(Cursor &C, uint32_t Size,
75 uint64_t getRelocatedAddress(Cursor &C, uint64_t *SecIx = nullptr) const {
/openbsd-src/gnu/llvm/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp71 static Expected<uint64_t> readAbbreviatedField(BitstreamCursor &Cursor, in readAbbreviatedField() argument
81 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize); in readAbbreviatedField()
82 return Cursor.Read((unsigned)Op.getEncodingData()); in readAbbreviatedField()
84 assert((unsigned)Op.getEncodingData() <= Cursor.MaxChunkSize); in readAbbreviatedField()
85 return Cursor.ReadVBR64((unsigned)Op.getEncodingData()); in readAbbreviatedField()
87 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField()
/openbsd-src/usr.bin/vi/docs/
H A Dev6 <CK> <CK> (Cursor keys). Move around the file.
34 ^J j Cursor down one line.
35 ^K k Cursor up one line.
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp522 DIExpressionCursor Cursor({}); in updateSubprogramScopeDIEImpl() local
525 DwarfExpr.addExpression(std::move(Cursor)); in updateSubprogramScopeDIEImpl()
792 DIExpressionCursor Cursor(Expr); in constructVariableDIEImpl() local
796 DIExpressionCursor &Cursor) { in constructVariableDIEImpl() argument
798 if (!DwarfExpr.addMachineRegExpression(TRI, Cursor, in constructVariableDIEImpl()
831 std::move(Cursor), in constructVariableDIEImpl()
832 [&](unsigned Idx, DIExpressionCursor &Cursor) -> bool { in constructVariableDIEImpl() argument
833 return AddEntry(DVal->getLocEntries()[Idx], Cursor); in constructVariableDIEImpl()
882 DIExpressionCursor Cursor(Ops); in constructVariableDIEImpl() local
888 *Asm->MF->getSubtarget().getRegisterInfo(), Cursor, FrameReg); in constructVariableDIEImpl()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DSerializedDiagnosticReader.h69 enum class Cursor; variable
72 llvm::ErrorOr<Cursor> skipUntilRecordOrBlock(llvm::BitstreamCursor &Stream,
/openbsd-src/gnu/llvm/clang/tools/clang-format/
H A DClangFormat.cpp111 Cursor("cursor", variable
371 const cl::opt<unsigned> &Cursor, in outputXML() argument
379 if (Cursor.getNumOccurrences() != 0) { in outputXML()
476 unsigned CursorPosition = Cursor; in format()
504 outputXML(Replaces, FormatChanges, Status, Cursor, CursorPosition); in format()
524 if (Cursor.getNumOccurrences() != 0) { in format()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DGlobalModuleIndex.cpp130 llvm::BitstreamCursor Cursor) in GlobalModuleIndex() argument
144 if (Expected<llvm::BitstreamEntry> Res = Cursor.advance()) in GlobalModuleIndex()
171 if (llvm::Error Err = Cursor.EnterSubBlock(GLOBAL_INDEX_BLOCK_ID)) in GlobalModuleIndex()
174 } else if (llvm::Error Err = Cursor.SkipBlock()) in GlobalModuleIndex()
182 Cursor.readRecord(Entry.ID, Record, &Blob); in GlobalModuleIndex()
267 llvm::BitstreamCursor Cursor(*Buffer); in readIndex() local
271 if (Expected<llvm::SimpleBitstreamCursor::word_t> Res = Cursor.Read(8)) { in readIndex()
280 return std::make_pair(new GlobalModuleIndex(std::move(Buffer), std::move(Cursor)), in readIndex()

123