MLIR 22.0.0git
BuiltinAttributes.h File Reference
#include "mlir/IR/BuiltinAttributeInterfaces.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/Sequence.h"
#include <complex>
#include <optional>
#include "mlir/IR/BuiltinAttributes.h.inc"

Go to the source code of this file.

Classes

class  mlir::detail::DenseElementIndexedIteratorImpl< ConcreteT, T, PointerT, ReferenceT >
 Impl iterator for indexed DenseElementsAttr iterators that records a data pointer and data index that is adjusted for the case of a splat attribute. More...
struct  mlir::detail::is_complex_t< T >
 Type trait detector that checks if a given type T is a complex type. More...
struct  mlir::detail::is_complex_t< std::complex< T > >
class  mlir::DenseElementsAttr
 An attribute that represents a reference to a dense vector or tensor object. More...
struct  mlir::DenseElementsAttr::is_valid_cpp_fp_type< T >
 Type trait used to check if the given type T is a potentially valid C++ floating point type that can be used to access the underlying element types of a DenseElementsAttr. More...
class  mlir::DenseElementsAttr::AttributeElementIterator
 A utility iterator that allows walking over the internal Attribute values of a DenseElementsAttr. More...
class  mlir::DenseElementsAttr::ElementIterator< T >
 Iterator for walking raw element values of the specified type 'T', which may be any c++ data type matching the stored representation: int32_t, float, etc. More...
class  mlir::DenseElementsAttr::BoolElementIterator
 A utility iterator that allows walking over the internal bool values. More...
class  mlir::DenseElementsAttr::IntElementIterator
 A utility iterator that allows walking over the internal raw APInt values. More...
class  mlir::DenseElementsAttr::ComplexIntElementIterator
 A utility iterator that allows walking over the internal raw complex APInt values. More...
class  mlir::DenseElementsAttr::FloatElementIterator
 Iterator for walking over APFloat values. More...
class  mlir::DenseElementsAttr::ComplexFloatElementIterator
 Iterator for walking over complex APFloat values. More...
struct  mlir::DenseElementsAttr::DerivedAttributeElementIterator< T >
class  mlir::SplatElementsAttr
 An attribute that represents a reference to a splat vector or tensor constant, meaning all of the elements have the same value. More...
class  mlir::detail::DenseArrayAttrImpl< T >
 Base class for DenseArrayAttr that is instantiated and specialized for each supported element type below. More...
class  mlir::detail::DenseResourceElementsAttrBase< T >
 Base class for DenseResourceElementsAttr that is instantiated and specialized for each supported element type below. More...
class  mlir::BoolAttr
 Special case of IntegerAttr to represent boolean integers, i.e., signless i1 integers. More...
class  mlir::FlatSymbolRefAttr
 A symbol reference with a reference path containing a single element. More...
class  mlir::DenseFPElementsAttr
 An attribute that represents a reference to a dense float vector or tensor object. More...
class  mlir::DenseIntElementsAttr
 An attribute that represents a reference to a dense integer vector or tensor object. More...
class  mlir::DistinctAttr
 An attribute that associates a referenced attribute with a unique identifier. More...
struct  llvm::DenseMapInfo< mlir::StringAttr >
struct  llvm::PointerLikeTypeTraits< mlir::StringAttr >
struct  llvm::PointerLikeTypeTraits< mlir::IntegerAttr >
struct  llvm::PointerLikeTypeTraits< mlir::SymbolRefAttr >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::detail
 AttrTypeReplacer.
namespace  llvm
 The OpAsmOpInterface, see OpAsmInterface.td for more details.

Macros

#define GET_ATTRDEF_CLASSES

Typedefs

using mlir::detail::DenseIterPtrAndSplat = std::pair<const char *, bool>
 Pair of raw pointer and a boolean flag of whether the pointer holds a splat,.
using mlir::DenseResourceElementsHandle = DialectResourceBlobHandle<BuiltinDialect>
using mlir::DenseBoolArrayAttr = detail::DenseArrayAttrImpl<bool>
using mlir::DenseI8ArrayAttr = detail::DenseArrayAttrImpl<int8_t>
using mlir::DenseI16ArrayAttr = detail::DenseArrayAttrImpl<int16_t>
using mlir::DenseI32ArrayAttr = detail::DenseArrayAttrImpl<int32_t>
using mlir::DenseI64ArrayAttr = detail::DenseArrayAttrImpl<int64_t>
using mlir::DenseF32ArrayAttr = detail::DenseArrayAttrImpl<float>
using mlir::DenseF64ArrayAttr = detail::DenseArrayAttrImpl<double>
using mlir::DenseBoolResourceElementsAttr
using mlir::DenseI8ResourceElementsAttr
using mlir::DenseI16ResourceElementsAttr
using mlir::DenseI32ResourceElementsAttr
using mlir::DenseI64ResourceElementsAttr
using mlir::DenseUI8ResourceElementsAttr
using mlir::DenseUI16ResourceElementsAttr
using mlir::DenseUI32ResourceElementsAttr
using mlir::DenseUI64ResourceElementsAttr
using mlir::DenseF32ResourceElementsAttr
using mlir::DenseF64ResourceElementsAttr

Functions

bool mlir::operator== (StringAttr lhs, std::nullptr_t)
 Define comparisons for StringAttr against nullptr and itself to avoid the StringRef overloads from being chosen when not desirable.
bool mlir::operator!= (StringAttr lhs, std::nullptr_t)
bool mlir::operator== (StringAttr lhs, StringAttr rhs)
bool mlir::operator!= (StringAttr lhs, StringAttr rhs)
bool mlir::operator== (StringAttr lhs, StringRef rhs)
 Allow direct comparison with StringRef.
bool mlir::operator!= (StringAttr lhs, StringRef rhs)
bool mlir::operator== (StringRef lhs, StringAttr rhs)
bool mlir::operator!= (StringRef lhs, StringAttr rhs)
AffineMap mlir::makeStridedLinearLayoutMap (ArrayRef< int64_t > strides, int64_t offset, MLIRContext *context)
 Given a list of strides (in which ShapedType::kDynamic represents a dynamic value), return the single result AffineMap which represents the linearized strided layout map.

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 710 of file BuiltinAttributes.h.