| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MCCodeEmitter.cpp | 989 X86OpcodePrefixHelper Prefix(*Ctx.getRegisterInfo()); in emitVEXOpcodePrefix() local 994 Prefix.setLowerBound(XOP); in emitVEXOpcodePrefix() 998 Prefix.setLowerBound((MI.getFlags() & X86::IP_USE_VEX3) ? VEX3 : VEX2); in emitVEXOpcodePrefix() 1001 Prefix.setLowerBound(EVEX); in emitVEXOpcodePrefix() 1005 Prefix.setW(TSFlags & X86II::REX_W); in emitVEXOpcodePrefix() 1006 Prefix.setNF(TSFlags & X86II::EVEX_NF); in emitVEXOpcodePrefix() 1017 Prefix.set5M(0x1); // 0F in emitVEXOpcodePrefix() 1020 Prefix.set5M(0x2); // 0F 38 in emitVEXOpcodePrefix() 1023 Prefix.set5M(0x3); // 0F 3A in emitVEXOpcodePrefix() 1026 Prefix.set5M(0x8); in emitVEXOpcodePrefix() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 57 NestedNameSpecifier *Prefix, in Create() argument 60 assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent"); in Create() 63 Mockup.Prefix.setPointer(Prefix); in Create() 64 Mockup.Prefix.setInt(StoredIdentifier); in Create() 71 NestedNameSpecifier *Prefix, in Create() argument 74 assert((!Prefix || in Create() 75 (Prefix->getAsType() == nullptr && in Create() 76 Prefix->getAsIdentifier() == nullptr)) && in Create() 79 Mockup.Prefix.setPointer(Prefix); in Create() 80 Mockup.Prefix.setInt(StoredDecl); in Create() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | TableGenBackend.cpp | 72 static void printLine(raw_ostream &OS, const Twine &Prefix, char Fill, in printLine() argument 75 assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) && in printLine() 77 OS << Prefix; in printLine() 87 StringRef Prefix("|* "); in emitSourceFileHeader() local 89 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader() 90 size_t PSLen = Prefix.size() + Suffix.size(); in emitSourceFileHeader() 95 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix); in emitSourceFileHeader() 98 printLine(OS, Prefix, ' ', Suffix); in emitSourceFileHeader() 99 printLine(OS, Prefix + "Automatically generated file, do not edit!", ' ', in emitSourceFileHeader() 105 OS, Prefix + "From: " + sys::path::filename(Record.getInputFilename()), in emitSourceFileHeader() [all …]
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | WebAssemblyDisassemblerEmitter.cpp | 43 unsigned Prefix; in emitWebAssemblyDisassemblerTables() local 45 Prefix = Opc >> 8; in emitWebAssemblyDisassemblerTables() 48 Prefix = Opc >> 16; in emitWebAssemblyDisassemblerTables() 51 auto &CGIP = OpcodeTable[Prefix][Opc]; in emitWebAssemblyDisassemblerTables() 100 for (const auto &[Prefix, Table] : OpcodeTable) { in emitWebAssemblyDisassemblerTables() 103 OS << "constexpr WebAssemblyInstruction InstructionTable" << Prefix; in emitWebAssemblyDisassemblerTables() 134 if (PrefixIt != OpcodeTable.end() && I && !Prefix) in emitWebAssemblyDisassemblerTables() 157 for (const auto &[Prefix, Table] : OpcodeTable) { in emitWebAssemblyDisassemblerTables() 158 if (Table.empty() || !Prefix) in emitWebAssemblyDisassemblerTables() 160 OS << " { " << Prefix << ", InstructionTable" << Prefix << " },\n"; in emitWebAssemblyDisassemblerTables()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 142 Result.Prefix = getEndianAdjustedWord(BucketPtr->Prefix); in getBucket() 193 StringRef Prefix = getStringOrInvalid(B.Prefix); in dump() local 195 llvm::dbgs() << " " << i << ". " << Key << " -> '" << Prefix << "' '" in dump() 222 std::optional<StringRef> Prefix = getString(B.Prefix); in lookupFilename() local 226 if (LLVM_LIKELY(Prefix && Suffix)) { in lookupFilename() 227 DestPath.append(Prefix->begin(), Prefix->end()); in lookupFilename() 247 std::optional<StringRef> Prefix = getString(B.Prefix); in reverseLookupFilename() local 249 if (LLVM_LIKELY(Key && Prefix && Suffix)) { in reverseLookupFilename() 251 Buf.append(Prefix->begin(), Prefix->end()); in reverseLookupFilename()
|
| /freebsd/contrib/llvm-project/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() 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 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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | InterleavedRange.h | 37 StringRef Prefix; variable 41 InterleavedRange(const Range &R, StringRef Separator, StringRef Prefix, in InterleavedRange() argument 43 : TheRange(R), Separator(Separator), Prefix(Prefix), Suffix(Suffix) {} in InterleavedRange() 47 if (!Interleaved.Prefix.empty()) 48 OS << Interleaved.Prefix; 77 StringRef Prefix = "", 79 return {R, Separator, Prefix, Suffix};
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | NestedNameSpecifier.h | 64 llvm::PointerIntPair<NestedNameSpecifier *, 2, StoredSpecifierKind> Prefix; variable 101 NestedNameSpecifier() : Prefix(nullptr, StoredIdentifier) {} in NestedNameSpecifier() 121 NestedNameSpecifier *Prefix, 126 NestedNameSpecifier *Prefix, 131 NestedNameSpecifier *Prefix, 136 Create(const ASTContext &Context, NestedNameSpecifier *Prefix, const Type *T); 163 NestedNameSpecifier *getPrefix() const { return Prefix.getPointer(); } in getPrefix() 171 if (Prefix.getInt() == StoredIdentifier) in getAsIdentifier() 191 if (Prefix.getInt() == StoredTypeSpec) in getAsType() 228 ID.AddPointer(Prefix.getOpaqueValue()); in Profile() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | BreakableToken.cpp | 251 return StartColumn + Prefix.size(); in getContentStartColumn() 255 const FormatToken &Tok, unsigned StartColumn, StringRef Prefix, in BreakableStringLiteral() argument 259 StartColumn(StartColumn), Prefix(Prefix), Postfix(Postfix), in BreakableStringLiteral() 261 assert(Tok.TokenText.starts_with(Prefix) && Tok.TokenText.ends_with(Postfix)); in BreakableStringLiteral() 263 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableStringLiteral() 278 Tok, Prefix.size() + TailOffset + Split.first, Split.second, Postfix, in insertBreak() 279 Prefix, InPPDirective, 1, StartColumn); in insertBreak() 312 Prefix = "\""; in BreakableStringLiteralUsingOperators() 320 Prefix = SignOnNewLine ? "+ '" : "'"; in BreakableStringLiteralUsingOperators() 324 Prefix = SignOnNewLine ? "+ @\"" : "@\""; in BreakableStringLiteralUsingOperators() [all …]
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | DirectiveEmitter.cpp | 76 static std::string getIdentifierName(const Record *Rec, StringRef Prefix) { in getIdentifierName() argument 77 return Prefix.str() + BaseRecord(Rec).getFormattedName(); in getIdentifierName() 95 StringRef Prefix) { in generateEnumExports() argument 97 std::string N = getIdentifierName(R, Prefix); in generateEnumExports() 105 StringRef Enum, StringRef Prefix, in generateEnumClass() argument 110 OS << " " << getIdentifierName(R, Prefix) << ",\n"; in generateEnumClass() 124 generateEnumExports(Records, OS, Enum, Prefix); in generateEnumClass() 133 StringRef Prefix, bool ExportEnums) { in generateEnumBitmask() argument 142 LastName = getIdentifierName(R, Prefix); in generateEnumBitmask() 158 generateEnumExports(Records, OS, Enum, Prefix); in generateEnumBitmask() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | PerfSharedStructs.h | 39 PerfJITRecordPrefix Prefix; member 58 PerfJITRecordPrefix Prefix; member 65 PerfJITRecordPrefix Prefix; member 121 Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in size() 127 IB, Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in deserialize() 133 OB, Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in serialize() 167 return SPSPerfJITDebugInfoRecord::AsArgList::size(Val.Prefix, Val.CodeAddr, in size() 172 IB, Val.Prefix, Val.CodeAddr, Val.Entries); in deserialize() 177 OB, Val.Prefix, Val.CodeAddr, Val.Entries); in serialize() 190 Val.Prefix, Val.UnwindDataSize, Val.EHFrameHdrSize, Val.MappedSize, in size() [all …]
|
| /freebsd/sys/contrib/dev/acpica/compiler/ |
| H A D | aslcompile.c | 582 char *Prefix = ""; in AslCompilerSignon() local 593 Prefix = "; "; in AslCompilerSignon() 600 Prefix = "; "; in AslCompilerSignon() 606 Prefix = " * "; in AslCompilerSignon() 614 Prefix = " * "; in AslCompilerSignon() 637 FlPrintFile (FileId, "%s\n", Prefix); in AslCompilerSignon() 638 FlPrintFile (FileId, ACPI_COMMON_HEADER (UtilityName, Prefix)); in AslCompilerSignon() 660 char *Prefix = ""; in AslCompilerFileHeader() local 670 Prefix = "; "; in AslCompilerFileHeader() 677 Prefix = "; "; in AslCompilerFileHeader() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Mangler.cpp | 37 const DataLayout &DL, char Prefix) { in getNameWithPrefixImpl() argument 50 Prefix = '\0'; in getNameWithPrefixImpl() 57 if (Prefix != '\0') in getNameWithPrefixImpl() 58 OS << Prefix; in getNameWithPrefixImpl() 67 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefixImpl() local 68 return getNameWithPrefixImpl(OS, GVName, PrefixTy, DL, Prefix); in getNameWithPrefixImpl() 79 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefix() local 80 return getNameWithPrefixImpl(OS, GVName, Default, DL, Prefix); in getNameWithPrefix() 146 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefix() local 165 Prefix = '@'; // fastcall functions have an @ prefix instead of _. in getNameWithPrefix() [all …]
|
| H A D | MemoryModelRelaxationAnnotations.cpp | 58 MDTuple *MMRAMetadata::getTagMD(LLVMContext &Ctx, StringRef Prefix, in getTagMD() argument 61 {MDString::get(Ctx, Prefix), MDString::get(Ctx, Suffix)}); in getTagMD() 101 bool MMRAMetadata::hasTag(StringRef Prefix, StringRef Suffix) const { in hasTag() argument 102 return Tags.count({Prefix, Suffix}); in hasTag() 117 for (auto &[Prefix, Status] : PrefixStatuses) { in isCompatibleWith() 125 bool MMRAMetadata::hasTagWithPrefix(StringRef Prefix) const { in hasTagWithPrefix() 127 if (P == Prefix) in hasTagWithPrefix()
|
| H A D | PassInstrumentation.cpp | 43 StringRef Prefix = PassID; in isSpecialPass() local 45 Prefix = PassID.substr(0, Pos); in isSpecialPass() 47 [Prefix](StringRef S) { return Prefix.ends_with(S); }); in isSpecialPass()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | CrashDebugger.cpp | 101 ReducePassList::doTest(std::vector<std::string> &Prefix, in doTest() argument 105 if (!Prefix.empty()) { in doTest() 107 << getPassesString(Prefix) << ": "; in doTest() 108 if (BD.runPasses(BD.getProgram(), Prefix, PrefixOutput)) in doTest() 148 Expected<TestResult> doTest(std::vector<GlobalVariable *> &Prefix, in doTest() argument 152 if (!Prefix.empty() && TestGlobalVariables(Prefix)) in doTest() 215 Expected<TestResult> doTest(std::vector<Function *> &Prefix, in doTest() argument 219 if (!Prefix.empty() && TestFuncs(Prefix)) in doTest() 224 bool TestFuncs(std::vector<Function *> &Prefix); 348 Expected<TestResult> doTest(std::vector<Attribute> &Prefix, in doTest() argument [all …]
|
| /freebsd/sys/contrib/dev/acpica/include/ |
| H A D | acapps.h | 184 #define ACPI_COMMON_HEADER(UtilityName, Prefix) \ argument 186 Prefix, ACPICA_NAME, \ 187 Prefix, UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, \ 188 Prefix, ACPICA_COPYRIGHT, \ 189 Prefix 333 char *Prefix,
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/ |
| H A D | Error.h | 24 inline void error(Error Err, StringRef Prefix = "") { 26 WithColor::error(errs(), Prefix) << Info.message() << '\n'; 31 inline void warning(const Twine &Message, StringRef Prefix = "") { 32 WithColor::warning(errs(), Prefix) << Message << '\n';
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | HeaderSearchOptions.h | 86 std::string Prefix; member 92 SystemHeaderPrefix(StringRef Prefix, bool IsSystemHeader) in SystemHeaderPrefix() 93 : Prefix(Prefix), IsSystemHeader(IsSystemHeader) {} in SystemHeaderPrefix() 315 void AddSystemHeaderPrefix(StringRef Prefix, bool IsSystemHeader) { in AddSystemHeaderPrefix() argument 316 SystemHeaderPrefixes.emplace_back(Prefix, IsSystemHeader); in AddSystemHeaderPrefix() 337 HBuilder.add(SHP.Prefix, SHP.IsSystemHeader); in addHash()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | ProfileList.cpp | 37 bool hasPrefix(StringRef Prefix) const { in hasPrefix() 39 if (It.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()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ |
| H A D | PerfSupportPlugin.cpp | 92 Record.Prefix.Id = PerfJITRecordType::JIT_CODE_LOAD; in getCodeLoadRecord() 103 Record.Prefix.TotalSize = in getCodeLoadRecord() 132 Record.Prefix.Id = PerfJITRecordType::JIT_CODE_DEBUG_INFO; in getDebugInfoRecord() 153 Record.Prefix.TotalSize = EntriesBytes; in getDebugInfoRecord() 155 << "Total size: " << Record.Prefix.TotalSize << "\n" in getDebugInfoRecord() 163 Record.Prefix.Id = PerfJITRecordType::JIT_CODE_UNWINDING_INFO; in getUnwindingRecord() 164 Record.Prefix.TotalSize = 0; in getUnwindingRecord() 199 Record.Prefix.TotalSize = in getUnwindingRecord() 207 << "Total size: " << Record.Prefix.TotalSize << "\n" in getUnwindingRecord() 248 Batch.UnwindingRecord.Prefix.TotalSize = 0; in getRecords()
|