Lines Matching refs:Value

29   T Value;
37 HexNumber(int8_t Value) : Value(static_cast<uint8_t >(Value)) { }
38 HexNumber(int16_t Value) : Value(static_cast<uint16_t>(Value)) { }
39 HexNumber(int32_t Value) : Value(static_cast<uint32_t>(Value)) { }
40 HexNumber(int64_t Value) : Value(static_cast<uint64_t>(Value)) { }
41 HexNumber(uint8_t Value) : Value(Value) { }
42 HexNumber(uint16_t Value) : Value(Value) { }
43 HexNumber(uint32_t Value) : Value(Value) { }
44 HexNumber(uint64_t Value) : Value(Value) { }
45 uint64_t Value;
48 raw_ostream &operator<<(raw_ostream &OS, const HexNumber& Value);
75 HexNumber hex(T Value) {
76 return HexNumber(Value);
80 void printEnum(StringRef Label, T Value,
85 if (EnumItem.Value == Value) {
93 startLine() << Label << ": " << Name << " (" << hex(Value) << ")\n";
95 startLine() << Label << ": " << hex(Value) << "\n";
100 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag> > Flags,
107 if (Flag.Value == 0)
110 bool IsEnum = (Flag.Value & EnumMask) != 0;
111 if ((!IsEnum && (Value & Flag.Value) == Flag.Value) ||
112 (IsEnum && (Value & EnumMask) == Flag.Value)) {
119 startLine() << Label << " [ (" << hex(Value) << ")\n";
121 startLine() << " " << Flag.Name << " (" << hex(Flag.Value) << ")\n";
127 void printFlags(StringRef Label, T Value) {
128 startLine() << Label << " [ (" << hex(Value) << ")\n";
130 uint64_t Curr = Value;
140 void printNumber(StringRef Label, uint64_t Value) {
141 startLine() << Label << ": " << Value << "\n";
144 void printNumber(StringRef Label, uint32_t Value) {
145 startLine() << Label << ": " << Value << "\n";
148 void printNumber(StringRef Label, uint16_t Value) {
149 startLine() << Label << ": " << Value << "\n";
152 void printNumber(StringRef Label, uint8_t Value) {
153 startLine() << Label << ": " << unsigned(Value) << "\n";
156 void printNumber(StringRef Label, int64_t Value) {
157 startLine() << Label << ": " << Value << "\n";
160 void printNumber(StringRef Label, int32_t Value) {
161 startLine() << Label << ": " << Value << "\n";
164 void printNumber(StringRef Label, int16_t Value) {
165 startLine() << Label << ": " << Value << "\n";
168 void printNumber(StringRef Label, int8_t Value) {
169 startLine() << Label << ": " << int(Value) << "\n";
172 void printBoolean(StringRef Label, bool Value) {
173 startLine() << Label << ": " << (Value ? "Yes" : "No") << '\n';
190 void printHex(StringRef Label, T Value) {
191 startLine() << Label << ": " << hex(Value) << "\n";
195 void printHex(StringRef Label, StringRef Str, T Value) {
196 startLine() << Label << ": " << Str << " (" << hex(Value) << ")\n";
199 void printString(StringRef Label, StringRef Value) {
200 startLine() << Label << ": " << Value << "\n";
203 void printString(StringRef Label, const std::string &Value) {
204 startLine() << Label << ": " << Value << "\n";
208 void printNumber(StringRef Label, StringRef Str, T Value) {
209 startLine() << Label << ": " << Str << " (" << Value << ")\n";
212 void printBinary(StringRef Label, StringRef Str, ArrayRef<uint8_t> Value) {
213 printBinaryImpl(Label, Str, Value, false);
216 void printBinary(StringRef Label, StringRef Str, ArrayRef<char> Value) {
217 ArrayRef<uint8_t> V(reinterpret_cast<const uint8_t*>(Value.data()),
218 Value.size());
222 void printBinary(StringRef Label, ArrayRef<uint8_t> Value) {
223 printBinaryImpl(Label, StringRef(), Value, false);
226 void printBinary(StringRef Label, ArrayRef<char> Value) {
227 ArrayRef<uint8_t> V(reinterpret_cast<const uint8_t*>(Value.data()),
228 Value.size());
232 void printBinary(StringRef Label, StringRef Value) {
233 ArrayRef<uint8_t> V(reinterpret_cast<const uint8_t*>(Value.data()),
234 Value.size());
238 void printBinaryBlock(StringRef Label, StringRef Value) {
239 ArrayRef<uint8_t> V(reinterpret_cast<const uint8_t*>(Value.data()),
240 Value.size());
259 void printBinaryImpl(StringRef Label, StringRef Str, ArrayRef<uint8_t> Value,