Lines Matching +full:left +full:- +full:aligned
1 //===-- RegisterFlags.cpp -------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
42 for (const auto &enumerator : m_enum_type->GetEnumerators()) {
69 // Where left will be the MSB and right will be the LSB.
71 unsigned rhs_end = other.GetStart() + other.GetSizeInBits() - 1;
75 rhs_end = GetStart() + GetSizeInBits() - 1;
78 return lhs_start - rhs_end - 1;
82 return end - start + 1;
97 max = ((uint64_t)1 << bits) - 1;
124 unsigned register_msb = (m_size * 8) - 1;
127 unsigned padding = previous_field->PaddingDistance(field);
129 // -1 to end just before the previous field.
130 unsigned end = previous_field->GetStart() - 1;
145 if (previous_field && previous_field->GetStart() != 0)
146 m_fields.push_back(Field("", 0, previous_field->GetStart() - 1));
163 unsigned pad = column_width - content.GetString().size();
171 StreamString aligned;
172 aligned.Printf("|%s%s%s", pad_l.c_str(), content.GetString().data(),
174 return aligned;
199 position.Printf(" %d-%d ", field.GetEnd(), field.GetStart());
227 grid << '|' << std::string(column_width, '-');
232 // +1 for the left side '|'.
255 enumerator_strm.Printf("%" PRIu64 " = %s", it->m_value, it->m_name.c_str());
297 const FieldEnum::Enumerators &enumerators = enum_type->GetEnumerators();
322 const std::string &id = enum_type->GetID();
324 enum_type->ToXML(strm, GetSize());
418 strm << " type=\"" << enum_type->GetID() << "\"";