MLIR 22.0.0git
mlir::LLVM::DIScopeAttr Class Reference

This class represents a LLVM attribute that describes a debug info scope. More...

#include "mlir/Dialect/LLVMIR/LLVMAttrs.h"

Inheritance diagram for mlir::LLVM::DIScopeAttr:

Static Public Member Functions

static bool classof (Attribute attr)
 Support LLVM type casting.
Static Public Member Functions inherited from mlir::LLVM::DINodeAttr
static bool classof (Attribute attr)
Static Public Member Functions inherited from mlir::Attribute
static Attribute getFromOpaquePointer (const void *ptr)
 Construct an attribute from the opaque pointer representation.

Additional Inherited Members

Public Types inherited from mlir::Attribute
template<typename ConcreteType, typename BaseType, typename StorageType, template< typename T > class... Traits>
using AttrBase
 Utility class for implementing attributes.
using ImplType = AttributeStorage
using ValueType = void
using AbstractTy = AbstractAttribute
Public Member Functions inherited from mlir::LLVM::DINodeAttr
constexpr Attribute ()=default
 Attribute (const ImplType *impl)
 Attribute (const Attribute &other)=default
Public Member Functions inherited from mlir::Attribute
constexpr Attribute ()=default
 Attribute (const ImplType *impl)
 Attribute (const Attribute &other)=default
Attributeoperator= (const Attribute &other)=default
bool operator== (Attribute other) const
bool operator!= (Attribute other) const
 operator bool () const
bool operator! () const
TypeID getTypeID ()
 Return a unique identifier for the concrete attribute type.
MLIRContextgetContext () const
 Return the context this attribute belongs to.
DialectgetDialect () const
 Get the dialect this attribute is registered to.
void print (raw_ostream &os, bool elideType=false) const
 Print the attribute.
void print (raw_ostream &os, AsmState &state, bool elideType=false) const
void dump () const
void printStripped (raw_ostream &os) const
 Print the attribute without dialect wrapping.
void printStripped (raw_ostream &os, AsmState &state) const
const voidgetAsOpaquePointer () const
 Get an opaque pointer to the attribute.
friend::llvm::hash_code hash_value (Attribute arg)
template<typename InterfaceT>
bool hasPromiseOrImplementsInterface ()
 Returns true if InterfaceT has been promised by the dialect or implemented.
template<template< typename T > class Trait>
bool hasTrait ()
 Returns true if the type was registered with a particular trait.
const AbstractTygetAbstractAttribute () const
 Return the abstract descriptor for this attribute.
void walkImmediateSubElements (function_ref< void(Attribute)> walkAttrsFn, function_ref< void(Type)> walkTypesFn) const
 Walk all of the immediately nested sub-attributes and sub-types.
auto replaceImmediateSubElements (ArrayRef< Attribute > replAttrs, ArrayRef< Type > replTypes) const
 Replace the immediately nested sub-attributes and sub-types with those provided.
template<WalkOrder Order = WalkOrder::PostOrder, typename... WalkFns>
auto walk (WalkFns &&...walkFns)
 Walk this attribute and all attibutes/types nested within using the provided walk functions.
template<typename... ReplacementFns>
auto replace (ReplacementFns &&...replacementFns)
 Recursively replace all of the nested sub-attributes and sub-types using the provided map functions.
ImplTypegetImpl () const
 Return the internal Attribute implementation.
Protected Attributes inherited from mlir::Attribute
ImplTypeimpl {nullptr}

Detailed Description

This class represents a LLVM attribute that describes a debug info scope.

Definition at line 38 of file LLVMAttrs.h.

Member Function Documentation

◆ classof()

bool DIScopeAttr::classof ( Attribute attr)
static

Support LLVM type casting.

Definition at line 174 of file LLVMAttrs.cpp.

References mlir::LLVM::DINodeAttr::Attribute().


The documentation for this class was generated from the following files: