My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::LLVM::LLVMDialect Class Reference

#include <LLVMDialect.h>

Inheritance diagram for mlir::LLVM::LLVMDialect:
Inheritance graph
[legend]
Collaboration diagram for mlir::LLVM::LLVMDialect:
Collaboration graph
[legend]

Public Member Functions

 LLVMDialect (MLIRContext *context)
 
 ~LLVMDialect ()
 
llvm::LLVMContext & getLLVMContext ()
 
llvm::Module & getLLVMModule ()
 
Type parseType (DialectAsmParser &parser) const override
 Parse a type registered to this dialect. More...
 
void printType (Type type, DialectAsmPrinter &os) const override
 Print a type registered to this dialect. More...
 
LogicalResult verifyRegionArgAttribute (Operation *op, unsigned regionIdx, unsigned argIdx, NamedAttribute argAttr) override
 Verify LLVMIR function argument attributes. More...
 
- Public Member Functions inherited from mlir::Dialect
virtual ~Dialect ()
 
MLIRContextgetContext () const
 
StringRef getNamespace () const
 
bool allowsUnknownOperations () const
 
bool allowsUnknownTypes () const
 
virtual OperationmaterializeConstant (OpBuilder &builder, Attribute value, Type type, Location loc)
 
virtual Attribute parseAttribute (DialectAsmParser &parser, Type type) const
 Parse an attribute registered to this dialect. More...
 
virtual void printAttribute (Attribute, DialectAsmPrinter &) const
 
virtual LogicalResult verifyRegionResultAttribute (Operation *, unsigned regionIndex, unsigned resultIndex, NamedAttribute)
 
virtual LogicalResult verifyOperationAttribute (Operation *, NamedAttribute)
 
const DialectInterfacegetRegisteredInterface (ClassID *interfaceID)
 
template<typename InterfaceT >
const InterfaceT * getRegisteredInterface ()
 

Static Public Member Functions

static StringRef getDialectNamespace ()
 
- Static Public Member Functions inherited from mlir::Dialect
static bool isValidNamespace (StringRef str)
 

Additional Inherited Members

- Public Attributes inherited from mlir::Dialect
DialectConstantFoldHook constantFoldHook
 
DialectConstantDecodeHook decodeHook
 
DialectExtractElementHook extractElementHook
 
- Protected Member Functions inherited from mlir::Dialect
 Dialect (StringRef name, MLIRContext *context)
 
template<typename... Args>
void addOperations ()
 
void addOperation (AbstractOperation opInfo)
 
template<typename... Args>
void addTypes ()
 This method is used by derived classes to add their types to the set. More...
 
template<typename... Args>
void addAttributes ()
 This method is used by derived classes to add their attributes to the set. More...
 
void allowUnknownOperations (bool allow=true)
 Enable support for unregistered operations. More...
 
void allowUnknownTypes (bool allow=true)
 Enable support for unregistered types. More...
 
void addInterface (std::unique_ptr< DialectInterface > interface)
 Register a dialect interface with this dialect instance. More...
 
template<typename T , typename T2 , typename... Tys>
void addInterfaces ()
 Register a set of dialect interfaces with this dialect instance. More...
 
template<typename T >
void addInterfaces ()
 

Constructor & Destructor Documentation

◆ LLVMDialect()

LLVMDialect::LLVMDialect ( MLIRContext context)
explicit

Integer Types.

Float Types.

Other Types.

◆ ~LLVMDialect()

LLVMDialect::~LLVMDialect ( )

Member Function Documentation

◆ getDialectNamespace()

static StringRef mlir::LLVM::LLVMDialect::getDialectNamespace ( )
inlinestatic

◆ getLLVMContext()

llvm::LLVMContext & LLVMDialect::getLLVMContext ( )

◆ getLLVMModule()

llvm::Module & LLVMDialect::getLLVMModule ( )

◆ parseType()

Type LLVMDialect::parseType ( DialectAsmParser parser) const
overridevirtual

Parse a type registered to this dialect.

Reimplemented from mlir::Dialect.

◆ printType()

void LLVMDialect::printType ( Type  type,
DialectAsmPrinter os 
) const
overridevirtual

Print a type registered to this dialect.

Reimplemented from mlir::Dialect.

◆ verifyRegionArgAttribute()

LogicalResult LLVMDialect::verifyRegionArgAttribute ( Operation op,
unsigned  regionIdx,
unsigned  argIdx,
NamedAttribute  argAttr 
)
overridevirtual

Verify LLVMIR function argument attributes.

Verify a region argument attribute registered to this dialect. Returns failure if the verification failed, success otherwise.

Reimplemented from mlir::Dialect.


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