My Project
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::detail::BoolAttributeStorage Struct Reference

An attribute representing a boolean value. More...

#include <AttributeDetail.h>

Inheritance diagram for mlir::detail::BoolAttributeStorage:
Inheritance graph
[legend]
Collaboration diagram for mlir::detail::BoolAttributeStorage:
Collaboration graph
[legend]

Public Types

using KeyTy = std::pair< MLIRContext *, bool >
 

Public Member Functions

 BoolAttributeStorage (Type type, bool value)
 
bool operator== (const KeyTy &key) const
 We only check equality for and hash with the boolean key parameter. More...
 
- Public Member Functions inherited from mlir::AttributeStorage
Type getType () const
 Get the type of this attribute. More...
 
DialectgetDialect () const
 Get the dialect of this attribute. More...
 
- Public Member Functions inherited from mlir::StorageUniquer::BaseStorage
unsigned getKind () const
 Get the kind classification of this storage. More...
 

Static Public Member Functions

static unsigned hashKey (const KeyTy &key)
 
static BoolAttributeStorageconstruct (AttributeStorageAllocator &allocator, const KeyTy &key)
 

Public Attributes

bool value
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::AttributeStorage
 AttributeStorage (Type type)
 
 AttributeStorage ()
 
void setType (Type type)
 Set the type of this attribute. More...
 
void initializeDialect (Dialect &newDialect)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()
 

Detailed Description

An attribute representing a boolean value.

Member Typedef Documentation

◆ KeyTy

Constructor & Destructor Documentation

◆ BoolAttributeStorage()

mlir::detail::BoolAttributeStorage::BoolAttributeStorage ( Type  type,
bool  value 
)
inline

Member Function Documentation

◆ construct()

static BoolAttributeStorage* mlir::detail::BoolAttributeStorage::construct ( AttributeStorageAllocator allocator,
const KeyTy key 
)
inlinestatic

◆ hashKey()

static unsigned mlir::detail::BoolAttributeStorage::hashKey ( const KeyTy key)
inlinestatic

◆ operator==()

bool mlir::detail::BoolAttributeStorage::operator== ( const KeyTy key) const
inline

We only check equality for and hash with the boolean key parameter.

Member Data Documentation

◆ value

bool mlir::detail::BoolAttributeStorage::value

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