#include "mlir/Support/LLVM.h"
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/PointerLikeTypeTraits.h"
#include "llvm/Support/TypeName.h"
Go to the source code of this file.
◆ MLIR_DECLARE_EXPLICIT_TYPE_ID
#define MLIR_DECLARE_EXPLICIT_TYPE_ID |
( |
|
CLASS_NAME | ) |
|
Value:
namespace detail { \
template <> \
class TypeIDResolver<CLASS_NAME> { \
public: \
static TypeID resolveTypeID() { return id; } \
\
private: \
static SelfOwningTypeID id; \
}; \
} \
}
Include the generated interface declarations.
Definition at line 249 of file TypeID.h.
◆ MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID
#define MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID |
( |
|
CLASS_NAME | ) |
|
Value: static ::mlir::TypeID resolveTypeID() { \
static ::mlir::SelfOwningTypeID id; \
return id; \
} \
static_assert( \
CLASS_NAME>::value, \
"`MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID` must be placed in a " \
"public section of `" #CLASS_NAME "`");
llvm::is_detected< has_resolve_typeid_trait, T > has_resolve_typeid
Definition at line 274 of file TypeID.h.
◆ MLIR_DEFINE_EXPLICIT_TYPE_ID
#define MLIR_DEFINE_EXPLICIT_TYPE_ID |
( |
|
CLASS_NAME | ) |
|
Value:
namespace detail { \
SelfOwningTypeID TypeIDResolver<CLASS_NAME>::id = {}; \
} \
}
Definition at line 263 of file TypeID.h.