23 LLVM_BUILTIN_UNREACHABLE;
27 size_t &
Align,
char &Pad) {
34 if (Spec.
size() > 1) {
63 std::size_t
Align = 0;
67 RepString = RepString.
trim();
69 assert(
false &&
"Invalid replacement sequence index!");
72 RepString = RepString.
trim();
73 if (!RepString.
empty() && RepString.
front() ==
',') {
76 assert(
false &&
"Invalid replacement field layout specification!");
78 RepString = RepString.
trim();
79 if (!RepString.
empty() && RepString.
front() ==
':') {
83 RepString = RepString.
trim();
84 if (!RepString.
empty()) {
85 assert(
false &&
"Unexpected characters found in replacement string!");
91 std::pair<ReplacementItem, StringRef>
104 if (Braces.size() > 1) {
105 size_t NumEscapedBraces = Braces.
size() / 2;
117 "Unterminated brace sequence. Escape with {{ for a literal brace.");
134 return std::make_pair(*RI, Right);
143 std::vector<ReplacementItem>
147 while (!Fmt.
empty()) {
150 Replacements.push_back(I);
155 void detail::format_adapter::anchor() { }
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
This class represents lattice values for constants.
LLVM_NODISCARD StringRef drop_front(size_t N=1) const
Return a StringRef equal to 'this' but with the first N elements dropped.
LLVM_NODISCARD StringRef slice(size_t Start, size_t End) const
Return a reference to the substring from [Start, End).
LLVM_NODISCARD StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
LLVM_NODISCARD StringRef take_while(function_ref< bool(char)> F) const
Return the longest prefix of 'this' such that every character in the prefix satisfies the given predi...
std::enable_if< std::numeric_limits< T >::is_signed, bool >::type consumeInteger(unsigned Radix, T &Result)
Parse the current string as an integer of the specified radix.
LLVM_NODISCARD size_t size() const
size - Get the string size.
LLVM_NODISCARD StringRef trim(char Char) const
Return string with consecutive Char characters starting from the left and right removed.
This struct is a compact representation of a valid (non-zero power of two) alignment.
BlockVerifier::State From
testing::Matcher< const detail::ErrorHolder & > Failed()
LLVM_NODISCARD size_t find_first_of(char C, size_t From=0) const
Find the first character in the string that is C, or npos if not found.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM_NODISCARD char front() const
front - Get the first character in the string.
StringRef - Represent a constant reference to a string, i.e.