/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/ |
H A D | PDBExtras.cpp | 23 raw_ostream &llvm::pdb::operator<<(raw_ostream &OS, in operator <<() argument 26 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Bool, OS) in operator <<() 27 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Single, OS) in operator <<() 28 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Double, OS) in operator <<() 29 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int8, OS) in operator <<() 30 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int16, OS) in operator <<() 31 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int32, OS) in operator <<() 32 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, Int64, OS) in operator <<() 33 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, UInt8, OS) in operator <<() 34 CASE_OUTPUT_ENUM_CLASS_NAME(PDB_VariantType, UInt16, OS) in operator <<() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | InstrInfoEmitter.cpp | 60 void run(raw_ostream &OS); 63 void emitEnums(raw_ostream &OS); 81 void emitTIIHelperMethods(raw_ostream &OS, StringRef TargetName, 86 void emitMCIIHelperMethods(raw_ostream &OS, StringRef TargetName); 89 void emitFeatureVerifier(raw_ostream &OS, const CodeGenTarget &Target); 93 const OperandInfoMapTy &OperandInfo, raw_ostream &OS); 95 raw_ostream &OS, const CodeGenTarget &Target, 103 raw_ostream &OS, const CodeGenTarget &Target, 107 raw_ostream &OS, StringRef Namespace, 110 raw_ostream &OS, StringRef Namespace, [all …]
|
H A D | IntrinsicEmitter.cpp | 51 void run(raw_ostream &OS, bool Enums); 53 void EmitEnumInfo(const CodeGenIntrinsicTable &Ints, raw_ostream &OS); 54 void EmitArgKind(raw_ostream &OS); 55 void EmitIITInfo(raw_ostream &OS); 56 void EmitTargetInfo(const CodeGenIntrinsicTable &Ints, raw_ostream &OS); 58 raw_ostream &OS); 60 raw_ostream &OS); 61 void EmitGenerator(const CodeGenIntrinsicTable &Ints, raw_ostream &OS); 62 void EmitAttributes(const CodeGenIntrinsicTable &Ints, raw_ostream &OS); 64 bool IsClang, raw_ostream &OS); [all …]
|
H A D | DirectiveEmitter.cpp | 34 IfDefScope(StringRef Name, raw_ostream &OS) : Name(Name), OS(OS) { in IfDefScope() argument 35 OS << "#ifdef " << Name << "\n" in IfDefScope() 39 ~IfDefScope() { OS << "\n#endif // " << Name << "\n\n"; } in ~IfDefScope() 43 raw_ostream &OS; member in __anon4d8ebcf40111::IfDefScope 50 raw_ostream &OS, StringRef Enum, StringRef Prefix, in GenerateEnumClass() argument 53 OS << "\n"; in GenerateEnumClass() 54 OS << "enum class " << Enum << " {\n"; in GenerateEnumClass() 57 OS << " " << Prefix << Rec.getFormattedName() << ",\n"; in GenerateEnumClass() 59 OS << "};\n"; in GenerateEnumClass() 60 OS << "\n"; in GenerateEnumClass() [all …]
|
H A D | DAGISelMatcherEmitter.cpp | 170 unsigned StartIdx, raw_ostream &OS); 172 unsigned SizeMatcherList(Matcher *N, raw_ostream &OS); 174 void EmitPredicateFunctions(raw_ostream &OS); 176 void EmitHistogram(const Matcher *N, raw_ostream &OS); 178 void EmitPatternMatchTable(raw_ostream &OS); 182 StringRef Decl, raw_ostream &OS); 184 unsigned SizeMatcher(Matcher *N, raw_ostream &OS); 187 unsigned CurrentIdx, raw_ostream &OS); 238 static unsigned EmitVBRValue(uint64_t Val, raw_ostream &OS) { in EmitVBRValue() argument 240 OS << Val << ", "; in EmitVBRValue() [all …]
|
H A D | MacroFusionPredicatorEmitter.cpp | 59 raw_ostream &OS); 61 raw_ostream &OS); 63 PredicateExpander &PE, raw_ostream &OS); 65 PredicateExpander &PE, raw_ostream &OS); 67 PredicateExpander &PE, raw_ostream &OS); 69 PredicateExpander &PE, raw_ostream &OS); 74 void run(raw_ostream &OS); 79 ArrayRef<Record *> Fusions, PredicateExpander &PE, raw_ostream &OS) { in emitMacroFusionDecl() argument 80 OS << "#ifdef GET_" << Target.getName() << "_MACRO_FUSION_PRED_DECL\n"; in emitMacroFusionDecl() 81 OS << "#undef GET_" << Target.getName() << "_MACRO_FUSION_PRED_DECL\n\n"; in emitMacroFusionDecl() [all …]
|
H A D | OptParserEmitter.cpp | 30 static raw_ostream &write_cstring(raw_ostream &OS, llvm::StringRef Str) { in write_cstring() argument 31 OS << '"'; in write_cstring() 32 OS.write_escaped(Str); in write_cstring() 33 OS << '"'; in write_cstring() 34 return OS; in write_cstring() 91 void emit(raw_ostream &OS) const { in emit() 92 OS << ShouldParse; in emit() 93 OS << ", "; in emit() 94 OS << ShouldAlwaysEmit; in emit() 95 OS << ", "; in emit() [all …]
|
H A D | RegisterInfoEmitter.cpp | 85 void debugDump(raw_ostream &OS); 93 void EmitRegUnitPressure(raw_ostream &OS, const CodeGenRegBank &RegBank, 95 void emitComposeSubRegIndices(raw_ostream &OS, CodeGenRegBank &RegBank, 97 void emitComposeSubRegIndexLaneMask(raw_ostream &OS, CodeGenRegBank &RegBank, 104 void RegisterInfoEmitter::runEnums(raw_ostream &OS, CodeGenTarget &Target, in runEnums() argument 113 emitSourceFileHeader("Target Register Enum Values", OS); in runEnums() 115 OS << "\n#ifdef GET_REGINFO_ENUM\n"; in runEnums() 116 OS << "#undef GET_REGINFO_ENUM\n\n"; in runEnums() 118 OS << "namespace llvm {\n\n"; in runEnums() 120 OS << "class MCRegisterClass;\n" in runEnums() [all …]
|
H A D | AsmMatcherEmitter.cpp | 1980 raw_ostream &OS) { in emitConvertFuncs() argument 2301 OS << "enum {\n"; in emitConvertFuncs() 2303 OS << " " << KV.second << ",\n"; in emitConvertFuncs() 2305 OS << "};\n\n"; in emitConvertFuncs() 2307 OS << "static const uint8_t TiedAsmOperandTable[][3] = {\n"; in emitConvertFuncs() 2309 OS << " /* " << KV.second << " */ { " << utostr(std::get<0>(KV.first)) in emitConvertFuncs() 2313 OS << "};\n\n"; in emitConvertFuncs() 2315 OS << "static const uint8_t TiedAsmOperandTable[][3] = " in emitConvertFuncs() 2318 OS << "namespace {\n"; in emitConvertFuncs() 2321 OS << "enum OperatorConversionKind {\n"; in emitConvertFuncs() [all …]
|
H A D | Attributes.cpp | 21 void run(raw_ostream &OS); 24 void emitTargetIndependentNames(raw_ostream &OS); 25 void emitFnAttrCompatCheck(raw_ostream &OS, bool IsStringAttr); 33 void Attributes::emitTargetIndependentNames(raw_ostream &OS) { in emitTargetIndependentNames() argument 34 OS << "#ifdef GET_ATTR_NAMES\n"; in emitTargetIndependentNames() 35 OS << "#undef GET_ATTR_NAMES\n"; in emitTargetIndependentNames() 37 OS << "#ifndef ATTRIBUTE_ALL\n"; in emitTargetIndependentNames() 38 OS << "#define ATTRIBUTE_ALL(FIRST, SECOND)\n"; in emitTargetIndependentNames() 39 OS << "#endif\n\n"; in emitTargetIndependentNames() 42 OS << "#ifndef " << MacroName << "\n"; in emitTargetIndependentNames() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | PredicateExpander.cpp | 19 void PredicateExpander::expandTrue(raw_ostream &OS) { OS << "true"; } in expandTrue() argument 20 void PredicateExpander::expandFalse(raw_ostream &OS) { OS << "false"; } in expandFalse() argument 22 void PredicateExpander::expandCheckImmOperand(raw_ostream &OS, int OpIndex, in expandCheckImmOperand() argument 26 OS << FunctionMapper << "("; in expandCheckImmOperand() 27 OS << "MI" << (isByRef() ? "." : "->") << "getOperand(" << OpIndex in expandCheckImmOperand() 30 OS << ")"; in expandCheckImmOperand() 31 OS << (shouldNegate() ? " != " : " == ") << ImmVal; in expandCheckImmOperand() 34 void PredicateExpander::expandCheckImmOperand(raw_ostream &OS, int OpIndex, in expandCheckImmOperand() argument 38 expandCheckImmOperandSimple(OS, OpIndex, FunctionMapper); in expandCheckImmOperand() 41 OS << FunctionMapper << "("; in expandCheckImmOperand() [all …]
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangAttrEmitter.cpp | 240 virtual void writeAccessors(raw_ostream &OS) const = 0; 241 virtual void writeAccessorDefinitions(raw_ostream &OS) const {} in writeAccessorDefinitions() 242 virtual void writeASTVisitorTraversal(raw_ostream &OS) const {} in writeASTVisitorTraversal() 243 virtual void writeCloneArgs(raw_ostream &OS) const = 0; 244 virtual void writeTemplateInstantiationArgs(raw_ostream &OS) const = 0; 245 virtual void writeTemplateInstantiation(raw_ostream &OS) const {} in writeTemplateInstantiation() 246 virtual void writeCtorBody(raw_ostream &OS) const {} in writeCtorBody() 247 virtual void writeCtorInitializers(raw_ostream &OS) const = 0; 248 virtual void writeCtorDefaultInitializers(raw_ostream &OS) const = 0; 249 virtual void writeCtorParameters(raw_ostream &OS) const = 0; [all …]
|
H A D | ClangOpcodesEmitter.cpp | 30 void run(raw_ostream &OS); 35 void EmitEnum(raw_ostream &OS, StringRef N, const Record *R); 38 void EmitInterp(raw_ostream &OS, StringRef N, const Record *R); 41 void EmitDisasm(raw_ostream &OS, StringRef N, const Record *R); 44 void EmitEmitter(raw_ostream &OS, StringRef N, const Record *R); 47 void EmitProto(raw_ostream &OS, StringRef N, const Record *R); 50 void EmitGroup(raw_ostream &OS, StringRef N, const Record *R); 53 void EmitEval(raw_ostream &OS, StringRef N, const Record *R); 55 void PrintTypes(raw_ostream &OS, ArrayRef<const Record *> Types); 86 void ClangOpcodesEmitter::run(raw_ostream &OS) { in run() argument [all …]
|
H A D | TableGen.cpp | 315 bool ClangTableGenMain(raw_ostream &OS, RecordKeeper &Records) { in ClangTableGenMain() argument 318 OS << Records; // No argument, dump all contents in ClangTableGenMain() 321 EmitJSON(Records, OS); in ClangTableGenMain() 324 EmitClangAttrClass(Records, OS); in ClangTableGenMain() 327 EmitClangAttrParserStringSwitches(Records, OS); in ClangTableGenMain() 330 EmitClangAttrSubjectMatchRulesParserStringSwitches(Records, OS); in ClangTableGenMain() 333 EmitClangAttrImpl(Records, OS); in ClangTableGenMain() 336 EmitClangAttrList(Records, OS); in ClangTableGenMain() 339 EmitClangAttrDocTable(Records, OS); in ClangTableGenMain() 342 EmitClangAttrSubjectMatchRuleList(Records, OS); in ClangTableGenMain() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | MCAsmLexer.cpp | 38 void AsmToken::dump(raw_ostream &OS) const { in dump() 41 OS << "error"; in dump() 44 OS << "identifier: " << getString(); in dump() 47 OS << "int: " << getString(); in dump() 50 OS << "real: " << getString(); in dump() 53 OS << "string: " << getString(); in dump() 56 case AsmToken::Amp: OS << "Amp"; break; in dump() 57 case AsmToken::AmpAmp: OS << "AmpAmp"; break; in dump() 58 case AsmToken::At: OS << "At"; break; in dump() 59 case AsmToken::BackSlash: OS << "BackSlash"; break; in dump() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TypePrinter.cpp | 123 void print(const Type *ty, Qualifiers qs, raw_ostream &OS, 125 void print(QualType T, raw_ostream &OS, StringRef PlaceHolder); 128 void spaceBeforePlaceHolder(raw_ostream &OS); 129 void printTypeSpec(NamedDecl *D, raw_ostream &OS); 130 void printTemplateId(const TemplateSpecializationType *T, raw_ostream &OS, 133 void printBefore(QualType T, raw_ostream &OS); 134 void printAfter(QualType T, raw_ostream &OS); 135 void AppendScope(DeclContext *DC, raw_ostream &OS, 137 void printTag(TagDecl *T, raw_ostream &OS); 138 void printFunctionAfter(const FunctionType::ExtInfo &Info, raw_ostream &OS); [all …]
|
H A D | TextNodeDumper.cpp | 33 static void dumpPreviousDeclImpl(raw_ostream &OS, ...) {} in dumpPreviousDeclImpl() argument 36 static void dumpPreviousDeclImpl(raw_ostream &OS, const Mergeable<T> *D) { in dumpPreviousDeclImpl() argument 39 OS << " first " << First; in dumpPreviousDeclImpl() 43 static void dumpPreviousDeclImpl(raw_ostream &OS, const Redeclarable<T> *D) { in dumpPreviousDeclImpl() argument 46 OS << " prev " << Prev; in dumpPreviousDeclImpl() 51 static void dumpPreviousDecl(raw_ostream &OS, const Decl *D) { in dumpPreviousDecl() argument 55 return dumpPreviousDeclImpl(OS, cast<DERIVED##Decl>(D)); in dumpPreviousDecl() 62 TextNodeDumper::TextNodeDumper(raw_ostream &OS, const ASTContext &Context, in TextNodeDumper() argument 64 : TextTreeStructure(OS, ShowColors), OS(OS), ShowColors(ShowColors), in TextNodeDumper() 69 TextNodeDumper::TextNodeDumper(raw_ostream &OS, bool ShowColors) in TextNodeDumper() argument [all …]
|
H A D | StmtPrinter.cpp | 69 raw_ostream &OS; member in __anon7ba585bd0111::StmtPrinter 80 : OS(os), IndentLevel(Indentation), Helper(helper), Policy(Policy), in StmtPrinter() 91 OS << ";" << NL; in PrintStmt() 107 OS << "; "; in PrintInitStmt() 113 OS << " "; in PrintControlledStmt() 115 OS << NL; in PrintControlledStmt() 117 OS << NL; in PrintControlledStmt() 138 OS << "<null expr>"; in PrintExpr() 143 OS << " "; in Indent() 144 return OS; in Indent() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCSectionELF.cpp | 30 static void printName(raw_ostream &OS, StringRef Name) { in printName() argument 34 OS << Name; in printName() 37 OS << '"'; in printName() 40 OS << "\\\""; in printName() 42 OS << *B; in printName() 44 OS << "\\\\"; in printName() 46 OS << B[0] << B[1]; // Quoted character in printName() 50 OS << '"'; in printName() 54 raw_ostream &OS, in printSwitchToSection() argument 57 OS << '\t' << getName(); in printSwitchToSection() [all …]
|
H A D | MCFragment.cpp | 93 raw_ostream &operator<<(raw_ostream &OS, const MCFixup &AF) { in operator <<() argument 94 OS << "<MCFixup" << " Offset:" << AF.getOffset() in operator <<() 97 return OS; in operator <<() 104 raw_ostream &OS = errs(); in dump() local 106 OS << "<"; in dump() 108 case MCFragment::FT_Align: OS << "MCAlignFragment"; break; in dump() 109 case MCFragment::FT_Data: OS << "MCDataFragment"; break; in dump() 111 OS << "MCCompactEncodedInstFragment"; break; in dump() 112 case MCFragment::FT_Fill: OS << "MCFillFragment"; break; in dump() 114 OS << "MCFNopsFragment"; in dump() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Disasm.cpp | 66 LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const { in dump() 68 ColorScope SC(OS, true, {llvm::raw_ostream::BRIGHT_GREEN, true}); in dump() 69 OS << getName() << " " << (const void *)this << "\n"; in dump() 71 OS << "frame size: " << getFrameSize() << "\n"; in dump() 72 OS << "arg size: " << getArgSize() << "\n"; in dump() 73 OS << "rvo: " << hasRVO() << "\n"; in dump() 74 OS << "this arg: " << hasThisPointer() << "\n"; in dump() 76 auto PrintName = [&OS](const char *Name) { in dump() 77 OS << Name; in dump() 80 OS.indent(N); in dump() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesTypes.cpp | 14 LLVM_DUMP_METHOD void CommonEntityInfo::dump(llvm::raw_ostream &OS) const { in dump() 16 OS << "[Unavailable] (" << UnavailableMsg << ")" << ' '; in dump() 18 OS << "[UnavailableInSwift] "; in dump() 20 OS << (SwiftPrivate ? "[SwiftPrivate] " : ""); in dump() 22 OS << "Swift Name: " << SwiftName << ' '; in dump() 23 OS << '\n'; in dump() 26 LLVM_DUMP_METHOD void CommonTypeInfo::dump(llvm::raw_ostream &OS) const { in dump() 27 static_cast<const CommonEntityInfo &>(*this).dump(OS); in dump() 29 OS << "Swift Briged Type: " << *SwiftBridge << ' '; in dump() 31 OS << "NSError Domain: " << *NSErrorDomain << ' '; in dump() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | GlobalISelMatchTableExecutorEmitter.cpp | 16 raw_ostream &OS, ArrayRef<RuleMatcher> Rules) { in emitSubtargetFeatureBitsetImpl() argument 18 OS, &HwModes); in emitSubtargetFeatureBitsetImpl() 36 ModuleFeatures, OS, "", &HwModes); in emitSubtargetFeatureBitsetImpl() 38 OS << "void " << getClassName() in emitSubtargetFeatureBitsetImpl() 48 FunctionFeatures, OS, "const MachineFunction *MF"); in emitSubtargetFeatureBitsetImpl() 74 OS << "// Feature bitsets.\n" in emitSubtargetFeatureBitsetImpl() 80 OS << " " in emitSubtargetFeatureBitsetImpl() 84 OS << "};\n" in emitSubtargetFeatureBitsetImpl() 90 OS << " {"; in emitSubtargetFeatureBitsetImpl() 94 OS << I->second.getEnumBitName() << ", "; in emitSubtargetFeatureBitsetImpl() [all …]
|
/freebsd/contrib/llvm-project/lldb/utils/TableGen/ |
H A D | LLDBPropertyDefEmitter.cpp | 24 static void emitPropertyEnum(Record *Property, raw_ostream &OS) { in emitPropertyEnum() argument 25 OS << "eProperty"; in emitPropertyEnum() 26 OS << Property->getName(); in emitPropertyEnum() 27 OS << ",\n"; in emitPropertyEnum() 30 static void emitProperty(Record *Property, raw_ostream &OS) { in emitProperty() argument 31 OS << " {"; in emitProperty() 34 OS << "\"" << Property->getValueAsString("Name") << "\""; in emitProperty() 35 OS << ", "; in emitProperty() 39 OS << "OptionValue::eType"; in emitProperty() 40 OS << typ in emitProperty() 130 emityProperties(std::string PropertyName,std::vector<Record * > PropertyRecords,raw_ostream & OS) emityProperties() argument 153 emitPropertyEnum(std::string PropertyName,std::vector<Record * > PropertyRecords,raw_ostream & OS) emitPropertyEnum() argument 170 EmitPropertyDefs(RecordKeeper & Records,raw_ostream & OS) EmitPropertyDefs() argument 181 EmitPropertyEnumDefs(RecordKeeper & Records,raw_ostream & OS) EmitPropertyEnumDefs() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | DetailedRecordsBackend.cpp | 44 void run(raw_ostream &OS); 45 void printReportHeading(raw_ostream &OS); 46 void printVariables(raw_ostream &OS); 47 void printClasses(raw_ostream &OS); 48 void printRecords(raw_ostream &OS); 49 void printSectionHeading(StringRef Title, int Count, raw_ostream &OS); 50 void printDefms(Record *Rec, raw_ostream &OS); 51 void printTemplateArgs(Record *Rec, raw_ostream &OS); 52 void printSuperclasses(Record *Rec, raw_ostream &OS); 53 void printFields(Record *Rec, raw_ostream &OS); [all …]
|