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>
105 if (Braces.size() > 1) {
106 size_t NumEscapedBraces = Braces.
size() / 2;
118 "Unterminated brace sequence. Escape with {{ for a literal brace.");
135 return std::make_pair(*RI, Right);
144 std::vector<ReplacementItem>
148 while (!Fmt.
empty()) {
151 Replacements.push_back(I);
156 void detail::format_adapter::anchor() { }
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
This class represents lattice values for constants.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
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 LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
LLVM_NODISCARD StringRef trim(char Char) const
Return string with consecutive Char characters starting from the left and right removed.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE 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...
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef drop_front(size_t N=1) const
Return a StringRef equal to 'this' but with the first N elements dropped.
BlockVerifier::State From
testing::Matcher< const detail::ErrorHolder & > Failed()
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE StringRef slice(size_t Start, size_t End) const
Return a reference to the substring from [Start, End).
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.