|
My Project
|
#include <Identifier.h>
Public Member Functions | |
| Identifier (const Identifier &)=default | |
| Identifier & | operator= (const Identifier &other)=default |
| StringRef | strref () const |
| Return a StringRef for the string. More... | |
| operator StringRef () const | |
| Identifiers implicitly convert to StringRefs. More... | |
| std::string | str () const |
| Return an std::string. More... | |
| const char * | c_str () const |
| Return a null terminated C string. More... | |
| const char * | data () const |
| Return a pointer to the start of the string data. More... | |
| unsigned | size () const |
| Return the number of bytes in this string. More... | |
| bool | is (StringRef string) const |
| Return true if this identifier is the specified string. More... | |
| const char * | begin () const |
| const char * | end () const |
| void | print (raw_ostream &os) const |
| void | dump () const |
| const void * | getAsOpaquePointer () const |
Static Public Member Functions | |
| static Identifier | get (StringRef str, MLIRContext *context) |
| Return an identifier for the specified string. More... | |
| static Identifier | getFromOpaquePointer (const void *pointer) |
This class represents a uniqued string owned by an MLIRContext. Strings represented by this type cannot contain nul characters, and may not have a zero length.
This is a POD type with pointer size, so it should be passed around by value. The underlying data is owned by MLIRContext and is thus immortal for almost all clients.
|
default |
|
inline |
|
inline |
Return a null terminated C string.
|
inline |
Return a pointer to the start of the string data.
| void Identifier::dump | ( | ) | const |
|
inline |
|
static |
Return an identifier for the specified string.
|
inline |
|
inlinestatic |
|
inline |
Return true if this identifier is the specified string.
|
inline |
Identifiers implicitly convert to StringRefs.
|
default |
| void Identifier::print | ( | raw_ostream & | os | ) | const |
|
inline |
Return the number of bytes in this string.
|
inline |
Return an std::string.
|
inline |
Return a StringRef for the string.
1.8.13