Go to the documentation of this file.
24 LLVM_BUILTIN_UNREACHABLE;
28 size_t &
Align,
char &Pad) {
35 if (Spec.
size() > 1) {
64 std::size_t
Align = 0;
68 RepString = RepString.
trim();
70 assert(
false &&
"Invalid replacement sequence index!");
73 RepString = RepString.
trim();
74 if (!RepString.
empty() && RepString.
front() ==
',') {
77 assert(
false &&
"Invalid replacement field layout specification!");
79 RepString = RepString.
trim();
80 if (!RepString.
empty() && RepString.
front() ==
':') {
84 RepString = RepString.
trim();
85 if (!RepString.
empty()) {
86 assert(
false &&
"Unexpected characters found in replacement string!");
92 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);
150 Replacements.push_back(
I);
155 void detail::format_adapter::anchor() { }
StringRef take_front(size_t N=1) const
Return a StringRef equal to 'this' but with only the first N elements remaining.
This is an optimization pass for GlobalISel generic memory operations.
StringRef trim(char Char) const
Return string with consecutive Char characters starting from the left and right removed.
char front() const
front - Get the first character in the string.
static constexpr size_t npos
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
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.
StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
testing::Matcher< const detail::ErrorHolder & > Failed()
(vector float) vec_cmpeq(*A, *B) C
const char LLVMTargetMachineRef LLVMPassBuilderOptionsRef Options
This struct is a compact representation of a valid (non-zero power of two) alignment.
StringRef slice(size_t Start, size_t End) const
Return a reference to the substring from [Start, End).
constexpr bool empty() const
empty - Check if the string is empty.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
std::enable_if_t< std::numeric_limits< T >::is_signed, bool > consumeInteger(unsigned Radix, T &Result)
Parse the current string as an integer of the specified radix.
constexpr size_t size() const
size - Get the string size.
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...
StringRef drop_front(size_t N=1) const
Return a StringRef equal to 'this' but with the first N elements dropped.