Lines Matching full:os
30 static raw_ostream &printEnum(raw_ostream &OS, const T Value, in printEnum() argument
34 OS << *MaybeName; in printEnum()
35 return OS; in printEnum()
39 static raw_ostream &printFlags(raw_ostream &OS, const T Value, in printFlags() argument
47 OS << " | "; in printFlags()
51 OS << *MaybeFlag; in printFlags()
53 OS << "invalid: " << Bit; in printFlags()
61 OS << "None"; in printFlags()
62 return OS; in printFlags()
72 static raw_ostream &operator<<(raw_ostream &OS, const Register &Reg) { in operator <<() argument
73 printEnum(OS, Reg.ViewType, ArrayRef(RegisterNames)); in operator <<()
74 OS << Reg.Number; in operator <<()
76 return OS; in operator <<()
79 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
81 printEnum(OS, Visibility, dxbc::getShaderVisibility()); in operator <<()
83 return OS; in operator <<()
86 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
88 printEnum(OS, Filter, dxbc::getSamplerFilters()); in operator <<()
90 return OS; in operator <<()
93 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
95 printEnum(OS, Address, dxbc::getTextureAddressModes()); in operator <<()
97 return OS; in operator <<()
100 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
102 printEnum(OS, CompFunc, dxbc::getComparisonFuncs()); in operator <<()
104 return OS; in operator <<()
107 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
109 printEnum(OS, BorderColor, dxbc::getStaticBorderColors()); in operator <<()
111 return OS; in operator <<()
121 static raw_ostream &operator<<(raw_ostream &OS, const ClauseType &Type) { in operator <<() argument
122 printEnum(OS, dxil::ResourceClass(llvm::to_underlying(Type)), in operator <<()
125 return OS; in operator <<()
128 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
130 printFlags(OS, Flags, dxbc::getRootDescriptorFlags()); in operator <<()
132 return OS; in operator <<()
135 static raw_ostream &operator<<(raw_ostream &OS, in operator <<() argument
137 printFlags(OS, Flags, dxbc::getDescriptorRangeFlags()); in operator <<()
139 return OS; in operator <<()
142 raw_ostream &operator<<(raw_ostream &OS, const dxbc::RootFlags &Flags) { in operator <<() argument
143 OS << "RootFlags("; in operator <<()
144 printFlags(OS, Flags, dxbc::getRootFlags()); in operator <<()
145 OS << ")"; in operator <<()
147 return OS; in operator <<()
150 raw_ostream &operator<<(raw_ostream &OS, const RootConstants &Constants) { in operator <<() argument
151 OS << "RootConstants(num32BitConstants = " << Constants.Num32BitConstants in operator <<()
155 return OS; in operator <<()
158 raw_ostream &operator<<(raw_ostream &OS, const DescriptorTable &Table) { in operator <<() argument
159 OS << "DescriptorTable(numClauses = " << Table.NumClauses in operator <<()
162 return OS; in operator <<()
165 raw_ostream &operator<<(raw_ostream &OS, const DescriptorTableClause &Clause) { in operator <<() argument
166 OS << Clause.Type << "(" << Clause.Reg << ", numDescriptors = "; in operator <<()
168 OS << "unbounded"; in operator <<()
170 OS << Clause.NumDescriptors; in operator <<()
171 OS << ", space = " << Clause.Space << ", offset = "; in operator <<()
173 OS << "DescriptorTableOffsetAppend"; in operator <<()
175 OS << Clause.Offset; in operator <<()
176 OS << ", flags = " << Clause.Flags << ")"; in operator <<()
178 return OS; in operator <<()
181 raw_ostream &operator<<(raw_ostream &OS, const RootDescriptor &Descriptor) { in operator <<() argument
183 OS << "Root" << Type << "(" << Descriptor.Reg in operator <<()
188 return OS; in operator <<()
191 raw_ostream &operator<<(raw_ostream &OS, const StaticSampler &Sampler) { in operator <<() argument
192 OS << "StaticSampler(" << Sampler.Reg << ", filter = " << Sampler.Filter in operator <<()
203 return OS; in operator <<()
217 raw_ostream &operator<<(raw_ostream &OS, const RootElement &Element) { in operator <<() argument
219 [&OS](const dxbc::RootFlags &Flags) { OS << Flags; }, in operator <<()
220 [&OS](const RootConstants &Constants) { OS << Constants; }, in operator <<()
221 [&OS](const RootDescriptor &Descriptor) { OS << Descriptor; }, in operator <<()
222 [&OS](const DescriptorTableClause &Clause) { OS << Clause; }, in operator <<()
223 [&OS](const DescriptorTable &Table) { OS << Table; }, in operator <<()
224 [&OS](const StaticSampler &Sampler) { OS << Sampler; }, in operator <<()
227 return OS; in operator <<()
230 void dumpRootElements(raw_ostream &OS, ArrayRef<RootElement> Elements) { in dumpRootElements() argument
231 OS << " RootElements{"; in dumpRootElements()
235 OS << ","; in dumpRootElements()
236 OS << " " << Element; in dumpRootElements()
239 OS << "}"; in dumpRootElements()