MLIR 23.0.0git
MlirStringRef Struct Reference

A pointer to a sized fragment of a string, not necessarily null-terminated. More...

#include "mlir-c/Support.h"

Public Attributes

const char * data
 Pointer to the first symbol.
size_t length
 Length of the fragment.

Detailed Description

A pointer to a sized fragment of a string, not necessarily null-terminated.

Does not own the underlying string. This is equivalent to llvm::StringRef.

Definition at line 78 of file Support.h.

Member Data Documentation

◆ data

const char* MlirStringRef::data

Pointer to the first symbol.

Definition at line 79 of file Support.h.

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyRewritePatternSet::addConversion(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::gpu::ObjectAttr::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::llvm::StructType::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyFlatSymbolRefAttribute::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpaqueAttribute::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpaqueType::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyStringAttribute::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PySymbolRefAttribute::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::transform::OperationType::bindDerived(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PySymbolRefAttribute::fromList(), mlir::PyPrintAccumulator::getCallback(), mlir::PySinglePartStringAccumulator::getCallback(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyGlobals::lookupTypeCaster(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyGlobals::lookupValueCaster(), mlirExecutionEngineCreate(), mlirInferTypeOpInterfaceInferReturnTypes(), mlirOperationImplementsInterfaceStatic(), mlirStringRefEqual(), mlirSymbolTableLookup(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< ConcreteIface >::PyConcreteOpInterface(), mlir::PyFileAccumulator::PyFileAccumulator(), and unwrap().

◆ length


The documentation for this struct was generated from the following file: