SmallString ‐ A SmallString is just a SmallVector with methods and accessors that make it work better as a string (e.g. operator+ etc).
Synopsis
Declared in <llvm/ADT/SmallString.h>
template<unsigned int InternalLen>
class SmallString
: public SmallVector<char, InternalLen>
Base Classes
Name |
Description |
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference |
Type Aliases
Name |
Description |
Const iterator over the vector elements. |
|
Const pointer to an element. |
|
Const reference to an element. |
|
Const reverse iterator over the vector elements. |
|
Signed type used to express the distance between iterators. |
|
Mutable iterator over the vector elements. |
|
Mutable pointer to an element. |
|
Mutable reference to an element. |
|
Reverse iterator over the vector elements. |
|
Unsigned type used to express the size of the vector. |
|
Element type stored in the vector. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
|
|
|
|
Return an iterator to the first element. |
|
Return a null‐terminated C string view of this buffer. |
|
Return the number of elements the vector can hold without reallocating. |
|
Return the number of bytes of allocated storage. |
|
Remove all elements from the vector. |
|
compare ‐ Compare two strings; the result is negative, zero, or positive if this string is lexicographically less than, equal to, or greater than the |
|
compare_insensitive ‐ Compare two strings, ignoring case. |
|
compare_numeric ‐ Compare two strings, treating sequences of digits as numbers. |
|
|
|
|
|
Return a pointer to the vector's buffer, even if empty(). |
|
Construct an element in place at the end using |
|
Return true if the vector contains no elements. |
|
Return an iterator past the last element. |
|
|
|
Check for string equality. This is more efficient than compare() when the relative ordering of inequal strings isn't needed. |
|
Check for string equality, ignoring case. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return the maximum number of elements the vector can hold. |
|
Addition assignment operators |
|
Subscript operators |
|
Destroy and remove the last element of the vector. |
|
Remove the last |
|
Remove and return the last element by move. |
|
|
|
|
|
|
|
Ensure capacity for at least |
|
|
|
Like resize, but new elements are default‐initialized without value construction when |
|
|
|
Return the number of elements in the vector. |
|
Return the number of bytes used by the current elements. |
|
Return a reference to the substring from [Start, End).] |
|
|
|
Explicit conversion to StringRef. |
|
Return a reference to the substring from [Start, Start + N).] |
|
Exchange the contents of this vector with |
|
Like resize, but requires that |
|
Implicit conversion to StringRef. |
|
Explicit conversion to std::string, copying the characters. |
|
Return true if this vector and |
|
Return true if this vector and |
|
Lexicographically compare this vector with |
|
Lexicographically compare this vector with |
|
Lexicographically compare this vector with |
|
Lexicographically compare this vector with |
Using Declarations
Protected Type Aliases
Name |
Description |
Parameter type used when passing elements to mutating operations. |
Protected Member Functions
Name |
Description |
Check whether Elt will be invalidated by increasing the size of the vector by N. |
|
Check whether any part of the range will be invalidated by growing. |
|
Check whether any part of the range will be invalidated by clearing. |
|
Check whether Elt will be invalidated by resizing the vector to NewSize. |
|
Take ownership of |
|
Return a pointer to the first element of inline storage. |
|
Grow the allocated memory without initializing new elements. |
|
Grow storage and replace contents with |
|
Grow storage and emplace an element at the end using |
|
|
|
Return true if First and Last form a valid (possibly empty) range in this vector's storage. |
|
Return true if V is an internal reference to the given range. |
|
Return true if V is an internal reference to this vector. |
|
Return true unless Elt will be invalidated by resizing the vector to NewSize. |
|
Return true if this is a smallvector which has not had dynamic memory allocated for it. |
|
|
|
Move existing elements over to the new allocation |
|
Reserve enough space to add one element, and return the updated element pointer in case it was a reference to the storage. |
|
Put this vector in a state of being small. |
|
Set the array data pointer to |
|
Set the array size to |
|
Transfer ownership of the allocation, finishing up grow(). |
Protected Static Member Functions
Name |
Description |
The maximum value of the Size_T used. |
|
Destroy the elements in the range []`S,` |
|
|
|
Reserve enough space to add one element, and return the updated element pointer in case it was a reference to the storage. |
|
Copy the range []`I,` |
|
Move the range []`I,` |
Protected Data Members
Protected Static Data Members
Name |
Description |
False when elements are passed by const reference rather than by value. |
Protected Using Declarations
Name |
Description |
Whether element parameters are passed by value rather than by const reference. |
Non-Member Functions
Name |
Description |
Compute a frame description string for AddressSanitizer reports. |
|
Compute the AddressSanitizer layout of a stack frame. |
|
Return shadow bytes for a stack frame with all locals in scope. |
|
Return shadow bytes after all locals have gone out of scope. |
|
Recursively delete a worklist of trivially dead instructions. |
|
Recursively delete trivially dead instructions from a permissive worklist. |
|
Append a LEB128‐encoded value to a byte buffer. |
|
Return the capacity of |
|
Filter out potentially dead comdat functions where other entries keep the entire comdat group alive. |
|
Given a call to the intrinsic @llvm.type.checked.load, find all devirtualizable call sites based on the call and return them in DevirtCalls. |
|
Given a call to the intrinsic @llvm.type.test, find all devirtualizable call sites based on the call and return them in DevirtCalls. |
|
Ensures LCSSA form for every instruction from the Worklist in the scope of innermost containing loop. |
|
Get the branch weights of a branch conditioned on b1 || b2. |
|
Return the symbol name for a prefetch target. |
|
Get the name of the current thread. |
|
Determine whether any block in |
|
Determine whether any block in |
|
Return true if SmallVector |
|
Return true if SmallVector |
|
Ensures temporary files exist, creating or re‐using them. |
|
Sets the list of debuginfod server URLs to query. This overrides the environment variable DEBUGINFOD_URLS. |
|
Append all valid CPU and architecture names to |
|
Append the valid AMDGCN GPU names to |
|
Append the valid R600 GPU names to |
|
Append every valid ARM CPU name to |
|
Append every valid CSKY CPU name to |
|
Append every valid LoongArch CPU name to |
|
Replace extension considering frameworks. |
|
Append every valid PowerPC CPU name to |
|
Append every valid PowerPC tune CPU name to |
|
Append every valid RISC‐V CPU name for the given bitness to |
|
Append every valid RISC‐V tune CPU name for the given bitness to |
|
Append every recognized RISC‐V tune‐feature name to |
|
Return the number of cases within a range. |
|
Provide a list of valid CPU names. If |
|
Provide a list of valid |
|
Return a space‐separated string of extended traceback‐table flag names. |
|
Decode fixed and floating parameter types from a traceback‐table bitfield. |
|
Decode fixed, floating, and vector parameter types from a bitfield. |
|
Decode vector parameter element types from a traceback‐table bitfield. |
|
Append every valid Xtensa CPU name (and aliases) to |
|
Return the index (into |
|
Convenience function for tests. |
|
Append |
|
Get the current path. |
|
Make path an absolute path. |
|
Append path components using path |
|
Append to path. |
|
Append to path. |
|
Get the directory where installed packages should put their machine‐local cache, e.g. $XDG_CACHE_HOME. |
|
Get the user's home directory. |
|
For Windows path styles, convert path to use the preferred path separators. For other styles, do nothing. |
|
Convert path to the native form in place. |
|
Remove './' and optionally '../' components, and canonicalize separators. |
|
Remove the last component from path unless it is the root dir. |
|
Replace the file extension of path with extension. |
|
|
Replace matching path prefix with another path. |
|
Get the directory where packages should read user‐specific configurations. e.g. $XDG_CONFIG_HOME. |
Created with MrDocs