| /llvm-project-15.0.7/llvm/lib/TableGen/ |
| H A D | TableGenBackend.cpp | 22 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()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 62 assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent"); in Create() 65 Mockup.Prefix.setPointer(Prefix); in Create() 76 assert((!Prefix || in Create() 81 Mockup.Prefix.setPointer(Prefix); in Create() 82 Mockup.Prefix.setInt(StoredDecl); in Create() 92 assert((!Prefix || in Create() 97 Mockup.Prefix.setPointer(Prefix); in Create() 109 Mockup.Prefix.setPointer(Prefix); in Create() 147 switch (Prefix.getInt()) { in getKind() 186 switch (Prefix.getInt()) { in getAsRecordDecl() [all …]
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | defmclass.td | 4 class XD { bits<4> Prefix = 11; } 5 // CHECK: Prefix = { 1, 1, 0, 0 }; 6 class XS { bits<4> Prefix = 12; } 12 bits<4> Prefix = 0; 18 int val = !if(!eq(Prefix, xd.Prefix), 7, 21); 32 // CHECK: Prefix = { 1, 1, 0, 0 }; 33 // CHECK: Prefix = { 1, 1, 0, 0 };
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 143 Result.Prefix = getEndianAdjustedWord(BucketPtr->Prefix); in getBucket() 190 StringRef Prefix = getStringOrInvalid(B.Prefix); in dump() local 192 llvm::dbgs() << " " << i << ". " << Key << " -> '" << Prefix << "' '" in dump() 219 Optional<StringRef> Prefix = getString(B.Prefix); in lookupFilename() local 223 if (LLVM_LIKELY(Prefix && Suffix)) { in lookupFilename() 224 DestPath.append(Prefix->begin(), Prefix->end()); in lookupFilename() 244 Optional<StringRef> Prefix = getString(B.Prefix); in reverseLookupFilename() local 246 if (LLVM_LIKELY(Key && Prefix && Suffix)) { in reverseLookupFilename() 248 Buf.append(Prefix->begin(), Prefix->end()); in reverseLookupFilename()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | WithColor.cpp | 91 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error() argument 93 if (!Prefix.empty()) in error() 94 OS << Prefix << ": "; in error() 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 123 if (!Prefix.empty()) in remark() [all …]
|
| H A D | TarWriter.cpp | 51 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()
|
| /llvm-project-15.0.7/lld/test/wasm/ |
| H A D | target-feature-disallowed.yaml | 31 - Prefix: DISALLOWED 34 - Prefix: USED 41 # SPECIFIED-NEXT: - Prefix: USED 43 # SPECIFIED-NEXT: - Prefix: USED 45 # SPECIFIED-NEXT: - Prefix: USED 52 # UNSPECIFIED-NEXT: - Prefix: USED 54 # UNSPECIFIED-NEXT: - Prefix: USED 56 # UNSPECIFIED-NEXT: - Prefix: USED 63 # DISALLOWED-NEXT: - Prefix: USED 70 # NONE-NEXT: - Prefix: USED
|
| H A D | target-feature-used.yaml | 41 - Prefix: USED 48 # SPECIFIED-NEXT: - Prefix: USED 50 # SPECIFIED-NEXT: - Prefix: USED 52 # SPECIFIED-NEXT: - Prefix: USED 61 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 63 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 65 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 72 # USED-NEXT: - Prefix: USED 79 # REQUIRED-NEXT: - Prefix: USED 88 # DISALLOWED-NOCHECK-NEXT: - Prefix: USED [all …]
|
| H A D | target-feature-required.yaml | 39 - Prefix: REQUIRED 46 # SPECIFIED-NEXT: - Prefix: USED 48 # SPECIFIED-NEXT: - Prefix: USED 50 # SPECIFIED-NEXT: - Prefix: USED 59 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 61 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 63 # UNSPECIFIED-NOCHECK-NEXT: - Prefix: USED 70 # REQUIRED-NEXT: - Prefix: USED 79 # DISALLOWED-NOCHECK-NEXT: - Prefix: USED 88 # NONE-NOCHECK-NEXT: - Prefix: USED
|
| /llvm-project-15.0.7/llvm/test/ObjectYAML/wasm/ |
| H A D | target-features-section.yaml | 9 - Prefix: USED 11 - Prefix: REQUIRED 13 - Prefix: DISALLOWED 20 # CHECK-NEXT: - Prefix: USED 22 # CHECK-NEXT: - Prefix: REQUIRED 24 # CHECK-NEXT: - Prefix: DISALLOWED
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Mangler.cpp | 35 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 164 Prefix = '\0'; // vectorcall functions have no prefix. in getNameWithPrefix() [all …]
|
| H A D | PassInstrumentation.cpp | 35 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | SymbolSerializer.h | 41 RecordPrefix Prefix; in writeRecordPrefix() local 42 Prefix.RecordKind = Kind; in writeRecordPrefix() 43 Prefix.RecordLen = 0; in writeRecordPrefix() 44 if (auto EC = Writer.writeObject(Prefix)) in writeRecordPrefix() 55 RecordPrefix Prefix{uint16_t(Sym.Kind)}; in writeOneSymbol() 56 CVSymbol Result(&Prefix, sizeof(Prefix)); in writeOneSymbol()
|
| H A D | CVRecord.h | 73 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()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | ContinuationRecordBuilder.cpp | 14 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()
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | BreakableToken.cpp | 272 StartColumn(StartColumn), Prefix(Prefix), Postfix(Postfix), in BreakableStringLiteral() 276 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableStringLiteral() 341 for (StringRef Prefix : in mayReflowContent() 604 StringRef Prefix = Decoration; in insertBreak() local 612 Prefix = ""; in insertBreak() 695 StringRef Prefix = Decoration; in adaptStartOfLine() local 701 Prefix = ""; in adaptStartOfLine() 706 Prefix = Prefix.substr(0, 1); in adaptStartOfLine() 710 Prefix = Prefix.substr(0, 1); in adaptStartOfLine() 775 Prefix.resize(Lines.size()); in BreakableLineCommentSection() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | HeaderSearchOptions.h | 88 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()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | NestedNameSpecifier.h | 65 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 …]
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | DefinitionBlockSeparatorTest.cpp | 182 std::string Prefix = "enum Foo { FOO, BAR };\n" in TEST_F() local 206 verifyFormat(removeEmptyLines(Prefix) + "\n" + CommentedCode + "\n" + in TEST_F() 208 Style, Prefix + "\n" + CommentedCode + "\n" + Suffix); in TEST_F() 209 verifyFormat(removeEmptyLines(Prefix) + "\n" + CommentedCode + in TEST_F() 211 Style, Prefix + "\n" + CommentedCode + Suffix); in TEST_F() 286 std::string Prefix = "namespace {\n"; in TEST_F() local 336 verifyFormat(Prefix + removeEmptyLines(Infix) + removeEmptyLines(Postfix), in TEST_F() 337 Style, Prefix + Infix + Postfix); in TEST_F() 343 std::string Prefix = "namespace {\n"; in TEST_F() local 387 verifyFormat(Prefix + "\n\n\n" + Postfix, Style, in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/ |
| H A D | Error.h | 25 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';
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | CrashDebugger.cpp | 93 if (!Prefix.empty()) { in doTest() 140 if (!Prefix.empty() && TestGlobalVariables(Prefix)) in doTest() 207 if (!Prefix.empty() && TestFuncs(Prefix)) in doTest() 340 if (!Prefix.empty() && TestFuncAttrs(Prefix)) in doTest() 442 if (!Prefix.empty() && TestBlocks(Prefix)) in doTest() 561 if (!Prefix.empty() && TestBlocks(Prefix)) in doTest() 667 if (!Prefix.empty() && TestBlocks(Prefix)) in doTest() 759 if (!Prefix.empty() && TestInsts(Prefix)) in doTest() 835 if (!Prefix.empty() && TestInsts(Prefix)) in doTest() 906 if (!Prefix.empty() && TestNamedMDs(Prefix)) in doTest() [all …]
|
| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | StringView.h | 130 bool starts_with(StringView Prefix) const { in starts_with() argument 131 return Len >= Prefix.Len && in starts_with() 132 compareMemory(Data, Prefix.Data, Prefix.Len) == 0; in starts_with() 136 bool starts_with(const char Prefix) const { in starts_with() argument 137 return !empty() && front() == Prefix; in starts_with() 272 bool consume_front(StringView Prefix) { in consume_front() argument 273 if (!starts_with(Prefix)) in consume_front() 276 *this = drop_front(Prefix.size()); in consume_front()
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | HeaderMapTestUtils.h | 65 void addBucket(StringRef Str, unsigned Key, unsigned Prefix, in addBucket() 67 addBucket(getHash(Str), Key, Prefix, Suffix); in addBucket() 70 void addBucket(unsigned Hash, unsigned Key, unsigned Prefix, in addBucket() 77 File.Buckets[I].Prefix = Prefix; in addBucket()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | TapiFile.h | 57 StringRef Prefix; member 61 constexpr Symbol(StringRef Prefix, StringRef Name, uint32_t Flags) in Symbol() 62 : Prefix(Prefix), Name(Name), Flags(Flags) {} in Symbol()
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingUtil.c | 257 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()
|