Home
last modified time | relevance | path

Searched refs:Prefix (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/openbsd-src/gnu/llvm/llvm/lib/TableGen/
H A DTableGenBackend.cpp22 static void printLine(raw_ostream &OS, const Twine &Prefix, char Fill, in printLine() argument
25 assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) && in printLine()
27 OS << Prefix; in printLine()
36 StringRef Prefix("|* "); in emitSourceFileHeader() local
38 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader()
39 size_t PSLen = Prefix.size() + Suffix.size(); in emitSourceFileHeader()
44 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); in emitSourceFileHeader()
47 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader()
48 printLine(OS, Prefix + "Automatically generated file, do not edit!", ' ', in emitSourceFileHeader()
50 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DNestedNameSpecifier.cpp60 NestedNameSpecifier *Prefix, IdentifierInfo *II) { in Create() argument
62 assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent"); in Create()
65 Mockup.Prefix.setPointer(Prefix); in Create()
66 Mockup.Prefix.setInt(StoredIdentifier); in Create()
73 NestedNameSpecifier *Prefix, in Create() argument
76 assert((!Prefix || in Create()
77 (Prefix->getAsType() == nullptr && in Create()
78 Prefix->getAsIdentifier() == nullptr)) && in Create()
81 Mockup.Prefix.setPointer(Prefix); in Create()
82 Mockup.Prefix.setInt(StoredDecl); in Create()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DHeaderMap.cpp144 Result.Prefix = getEndianAdjustedWord(BucketPtr->Prefix); in getBucket()
191 StringRef Prefix = getStringOrInvalid(B.Prefix); in dump() local
193 llvm::dbgs() << " " << i << ". " << Key << " -> '" << Prefix << "' '" in dump()
220 std::optional<StringRef> Prefix = getString(B.Prefix); in lookupFilename() local
224 if (LLVM_LIKELY(Prefix && Suffix)) { in lookupFilename()
225 DestPath.append(Prefix->begin(), Prefix->end()); in lookupFilename()
245 std::optional<StringRef> Prefix = getString(B.Prefix); in reverseLookupFilename() local
247 if (LLVM_LIKELY(Key && Prefix && Suffix)) { in reverseLookupFilename()
249 Buf.append(Prefix->begin(), Prefix->end()); in reverseLookupFilename()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DWithColor.cpp91 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error() argument
93 if (!Prefix.empty()) in error()
94 OS << Prefix << ": "; in error()
101 raw_ostream &WithColor::warning(raw_ostream &OS, StringRef Prefix, in warning() argument
103 if (!Prefix.empty()) in warning()
104 OS << Prefix << ": "; in warning()
111 raw_ostream &WithColor::note(raw_ostream &OS, StringRef Prefix, in note() argument
113 if (!Prefix.empty()) in note()
114 OS << Prefix << ": "; in note()
121 raw_ostream &WithColor::remark(raw_ostream &OS, StringRef Prefix, in remark() argument
[all …]
H A DTarWriter.cpp51 char Prefix[155]; member
127 static bool splitUstar(StringRef Path, StringRef &Prefix, StringRef &Name) { in splitUstar() argument
129 Prefix = ""; in splitUstar()
150 Prefix = Path.substr(0, Sep); in splitUstar()
157 static void writeUstarHeader(raw_fd_ostream &OS, StringRef Prefix, in writeUstarHeader() argument
163 memcpy(Hdr.Prefix, Prefix.data(), Prefix.size()); in writeUstarHeader()
192 StringRef Prefix; in append() local
194 if (splitUstar(Fullpath, Prefix, Name)) { in append()
195 writeUstarHeader(OS, Prefix, Name, Data.size()); in append()
H A DSpecialCaseList.cpp165 StringRef Prefix = SplitLine.first; in parse() local
190 auto &Entry = Sections[SectionsMap[Section]].Entries[Prefix][Category]; in parse()
203 bool SpecialCaseList::inSection(StringRef Section, StringRef Prefix, in inSection() argument
205 return inSectionBlame(Section, Prefix, Query, Category); in inSection()
208 unsigned SpecialCaseList::inSectionBlame(StringRef Section, StringRef Prefix, in inSectionBlame() argument
214 inSectionBlame(SectionIter.Entries, Prefix, Query, Category); in inSectionBlame()
222 StringRef Prefix, StringRef Query, in inSectionBlame() argument
224 SectionEntries::const_iterator I = Entries.find(Prefix); in inSectionBlame()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolSerializer.h40 RecordPrefix Prefix; in writeRecordPrefix() local
41 Prefix.RecordKind = Kind; in writeRecordPrefix()
42 Prefix.RecordLen = 0; in writeRecordPrefix()
43 if (auto EC = Writer.writeObject(Prefix)) in writeRecordPrefix()
54 RecordPrefix Prefix{uint16_t(Sym.Kind)}; in writeOneSymbol()
55 CVSymbol Result(&Prefix, sizeof(Prefix)); in writeOneSymbol()
H A DCVRecord.h73 const RecordPrefix *Prefix = in forEachCodeViewRecord() local
76 size_t RealLen = Prefix->RecordLen + 2; in forEachCodeViewRecord()
94 const RecordPrefix *Prefix = nullptr; in readCVRecordFromStream() local
98 if (auto EC = Reader.readObject(Prefix)) in readCVRecordFromStream()
100 if (Prefix->RecordLen < 2) in readCVRecordFromStream()
105 if (auto EC = Reader.readBytes(RawData, Prefix->RecordLen + sizeof(uint16_t))) in readCVRecordFromStream()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DMangler.cpp35 const DataLayout &DL, char Prefix) { in getNameWithPrefixImpl() argument
48 Prefix = '\0'; in getNameWithPrefixImpl()
55 if (Prefix != '\0') in getNameWithPrefixImpl()
56 OS << Prefix; in getNameWithPrefixImpl()
65 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefixImpl() local
66 return getNameWithPrefixImpl(OS, GVName, PrefixTy, DL, Prefix); in getNameWithPrefixImpl()
77 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefix() local
78 return getNameWithPrefixImpl(OS, GVName, Default, DL, Prefix); in getNameWithPrefix()
143 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefix() local
162 Prefix = '@'; // fastcall functions have an @ prefix instead of _. in getNameWithPrefix()
[all …]
H A DPassInstrumentation.cpp35 StringRef Prefix = PassID; in isSpecialPass() local
37 Prefix = PassID.substr(0, Pos); in isSpecialPass()
38 return any_of(Specials, [Prefix](StringRef S) { return Prefix.endswith(S); }); in isSpecialPass()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/
H A DContinuationRecordBuilder.cpp14 SegmentInjection(TypeLeafKind Kind) { Prefix.RecordKind = Kind; } in SegmentInjection()
17 RecordPrefix Prefix; member
70 RecordPrefix Prefix(getTypeLeafKind(RecordKind)); in begin() local
71 CVType Type(&Prefix, sizeof(Prefix)); in begin()
74 cantFail(SegmentWriter.writeObject(Prefix)); in begin()
158 RecordPrefix *Prefix = reinterpret_cast<RecordPrefix *>(Data.data()); in createSegmentRecord() local
159 Prefix->RecordLen = Data.size() - sizeof(RecordPrefix::RecordLen); in createSegmentRecord()
174 RecordPrefix Prefix(getTypeLeafKind(*Kind)); in end() local
175 CVType Type(&Prefix, sizeof(Prefix)); in end()
H A DSimpleTypeSerializer.cpp44 RecordPrefix *Prefix = reinterpret_cast<RecordPrefix *>(ScratchBuffer.data()); in serialize() local
45 CVType CVT(Prefix, sizeof(RecordPrefix)); in serialize()
54 Prefix->RecordKind = CVT.kind(); in serialize()
55 Prefix->RecordLen = Writer.getOffset() - sizeof(uint16_t); in serialize()
/openbsd-src/gnu/llvm/clang/lib/Format/
H A DBreakableToken.cpp264 return StartColumn + Prefix.size(); in getContentStartColumn()
268 const FormatToken &Tok, unsigned StartColumn, StringRef Prefix, in BreakableStringLiteral() argument
272 StartColumn(StartColumn), Prefix(Prefix), Postfix(Postfix), in BreakableStringLiteral()
274 assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix)); in BreakableStringLiteral()
276 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableStringLiteral()
291 Tok, Prefix.size() + TailOffset + Split.first, Split.second, Postfix, in insertBreak()
292 Prefix, InPPDirective, 1, StartColumn); in insertBreak()
341 for (StringRef Prefix : in mayReflowContent()
343 if (Content.startswith(Prefix)) { in mayReflowContent()
604 StringRef Prefix = Decoration; in insertBreak() local
[all …]
H A DSortJavaScriptImports.cpp88 StringRef Prefix; member
123 if (LHS.Prefix.empty() != RHS.Prefix.empty()) in operator <()
124 return LHS.Prefix.empty() < RHS.Prefix.empty(); in operator <()
125 if (LHS.Prefix != RHS.Prefix) in operator <()
126 return LHS.Prefix > RHS.Prefix; in operator <()
310 !PreviousReference->Prefix.empty() || !Reference->Prefix.empty() || in mergeModuleReferences()
426 << ", prefix: " << Reference.Prefix; in parseModuleReferences()
500 Reference.Prefix = Current->TokenText; in parseStarBinding()
/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DHeaderSearchOptions.h88 std::string Prefix; member
94 SystemHeaderPrefix(StringRef Prefix, bool IsSystemHeader) in SystemHeaderPrefix()
95 : Prefix(Prefix), IsSystemHeader(IsSystemHeader) {} in SystemHeaderPrefix()
249 void AddSystemHeaderPrefix(StringRef Prefix, bool IsSystemHeader) { in AddSystemHeaderPrefix() argument
250 SystemHeaderPrefixes.emplace_back(Prefix, IsSystemHeader); in AddSystemHeaderPrefix()
274 return llvm::hash_combine(SHP.Prefix, SHP.IsSystemHeader); in hash_value()
280 HBuilder.add(SHP.Prefix, SHP.IsSystemHeader); in addHash()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DNestedNameSpecifier.h65 llvm::PointerIntPair<NestedNameSpecifier *, 2, StoredSpecifierKind> Prefix; variable
106 NestedNameSpecifier() : Prefix(nullptr, StoredIdentifier) {} in NestedNameSpecifier()
126 NestedNameSpecifier *Prefix,
131 NestedNameSpecifier *Prefix,
136 NestedNameSpecifier *Prefix,
141 NestedNameSpecifier *Prefix,
169 NestedNameSpecifier *getPrefix() const { return Prefix.getPointer(); } in getPrefix()
177 if (Prefix.getInt() == StoredIdentifier) in getAsIdentifier()
197 if (Prefix.getInt() == StoredTypeSpec || in getAsType()
198 Prefix.getInt() == StoredTypeSpecWithTemplate) in getAsType()
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-dwarfutil/
H A DError.h25 inline void error(Error Err, StringRef Prefix = "") {
27 WithColor::error(errs(), Prefix) << Info.message() << '\n';
32 inline void warning(const Twine &Message, StringRef Prefix = "") {
33 WithColor::warning(errs(), Prefix) << Message << '\n';
/openbsd-src/gnu/llvm/llvm/tools/bugpoint/
H A DCrashDebugger.cpp89 ReducePassList::doTest(std::vector<std::string> &Prefix, in doTest() argument
93 if (!Prefix.empty()) { in doTest()
95 << getPassesString(Prefix) << ": "; in doTest()
96 if (BD.runPasses(BD.getProgram(), Prefix, PrefixOutput)) in doTest()
136 Expected<TestResult> doTest(std::vector<GlobalVariable *> &Prefix, in doTest() argument
140 if (!Prefix.empty() && TestGlobalVariables(Prefix)) in doTest()
203 Expected<TestResult> doTest(std::vector<Function *> &Prefix, in doTest() argument
207 if (!Prefix.empty() && TestFuncs(Prefix)) in doTest()
212 bool TestFuncs(std::vector<Function *> &Prefix);
336 Expected<TestResult> doTest(std::vector<Attribute> &Prefix, in doTest() argument
[all …]
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DProfileList.cpp38 bool hasPrefix(StringRef Prefix) const { in hasPrefix()
40 if (SectionIter.Entries.count(Prefix) > 0) in hasPrefix()
105 ProfileList::inSection(StringRef Section, StringRef Prefix, in inSection() argument
107 if (SCL->inSection(Section, Prefix, Query, "allow")) in inSection()
109 if (SCL->inSection(Section, Prefix, Query, "skip")) in inSection()
111 if (SCL->inSection(Section, Prefix, Query, "forbid")) in inSection()
113 if (SCL->inSection(Section, Prefix, Query)) in inSection()
/openbsd-src/gnu/llvm/llvm/include/llvm/Object/
H A DTapiFile.h57 StringRef Prefix; member
61 constexpr Symbol(StringRef Prefix, StringRef Name, uint32_t Flags) in Symbol()
62 : Prefix(Prefix), Name(Name), Flags(Flags) {} in Symbol()
/openbsd-src/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingUtil.c257 const char *Prefix = getenv("GCOV_PREFIX"); in lprofGetPathPrefix() local
262 if (Prefix == NULL || Prefix[0] == '\0') in lprofGetPathPrefix()
274 *PrefixLen = strlen(Prefix); in lprofGetPathPrefix()
276 return Prefix; in lprofGetPathPrefix()
280 lprofApplyPathPrefix(char *Dest, const char *PathStr, const char *Prefix, in lprofApplyPathPrefix() argument
298 memcpy(Dest, Prefix, PrefixLen); in lprofApplyPathPrefix()
300 if (!IS_DIR_SEPARATOR(Prefix[PrefixLen - 1])) in lprofApplyPathPrefix()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DStringRef.h257 [[nodiscard]] bool starts_with(StringRef Prefix) const { in starts_with() argument
258 return Length >= Prefix.Length && in starts_with()
259 compareMemory(Data, Prefix.Data, Prefix.Length) == 0; in starts_with()
261 [[nodiscard]] bool startswith(StringRef Prefix) const { in startswith() argument
262 return starts_with(Prefix); in startswith()
266 [[nodiscard]] bool starts_with_insensitive(StringRef Prefix) const;
267 [[nodiscard]] bool startswith_insensitive(StringRef Prefix) const { in startswith_insensitive() argument
268 return starts_with_insensitive(Prefix); in startswith_insensitive()
623 bool consume_front(StringRef Prefix) { in consume_front() argument
624 if (!starts_with(Prefix)) in consume_front()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp137 LLVMPerfJitRecordPrefix Prefix; member
155 LLVMPerfJitRecordPrefix Prefix; member
413 rec.Prefix.Id = JIT_CODE_LOAD; in NotifyCode()
414 rec.Prefix.TotalSize = sizeof(rec) + // debug record itself in NotifyCode()
417 rec.Prefix.Timestamp = perf_get_timestamp(); in NotifyCode()
444 rec.Prefix.Id = JIT_CODE_DEBUG_INFO; in NotifyDebug()
445 rec.Prefix.TotalSize = sizeof(rec); // will be increased further in NotifyDebug()
446 rec.Prefix.Timestamp = perf_get_timestamp(); in NotifyDebug()
455 rec.Prefix.TotalSize += sizeof(LLVMPerfJitDebugEntry); in NotifyDebug()
456 rec.Prefix.TotalSize += line.FileName.size() + 1; in NotifyDebug()
/openbsd-src/gnu/llvm/lldb/source/Plugins/Language/ObjC/
H A DNSDictionary.h50 class Prefix : public Matcher {
52 Prefix(ConstString p);
53 ~Prefix() override = default;
73 return std::make_unique<Prefix>(p); in GetPrefixMatch()
/openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/
H A DPS4CPU.cpp26 static const char *makeArgString(const ArgList &Args, const char *Prefix, in makeArgString() argument
29 return Args.MakeArgString(Twine(StringRef(Prefix), Base) + Suffix); in makeArgString()
92 const char *Prefix, in addSanitizerArgs() argument
95 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs()
106 const char *Prefix, in addSanitizerArgs() argument
109 return makeArgString(Args, Prefix, Name, Suffix); in addSanitizerArgs()
163 const char *Prefix = nullptr; in ConstructJob() local
165 Prefix = "-lto-thin-debug-options="; in ConstructJob()
167 Prefix = "-lto-debug-options="; in ConstructJob()
169 Prefix = "-plugin-opt="; in ConstructJob()
[all …]

12345678910>>...16