MLIR
22.0.0git
|
Helper class that translates an LLVM data layout string to an MLIR data layout specification. More...
#include "mlir/Target/LLVMIR/DataLayoutImporter.h"
Public Member Functions | |
DataLayoutImporter (MLIRContext *context, StringRef dataLayoutStr) | |
DataLayoutSpecInterface | getDataLayoutSpec () const |
Returns the MLIR data layout specification translated from the LLVM data layout. More... | |
StringRef | getLastToken () const |
Returns the last data layout token that has been processed before the data layout translation failed. More... | |
ArrayRef< StringRef > | getUnhandledTokens () const |
Returns the data layout tokens that have not been handled during the data layout translation. More... | |
Helper class that translates an LLVM data layout string to an MLIR data layout specification.
Only integer, float, pointer, alloca memory space, stack alignment, and endianness entries are translated. The class also returns all entries from the default data layout specification found in the language reference (https://llvm.org/docs/LangRef.html#data-layout) if they are not overwritten by the provided data layout.
Definition at line 47 of file DataLayoutImporter.h.
|
inline |
Definition at line 49 of file DataLayoutImporter.h.
|
inline |
Returns the MLIR data layout specification translated from the LLVM data layout.
Definition at line 65 of file DataLayoutImporter.h.
Referenced by mlir::LLVM::ModuleImport::convertDataLayout(), and mlir::translateDataLayout().
|
inline |
Returns the last data layout token that has been processed before the data layout translation failed.
Definition at line 69 of file DataLayoutImporter.h.
Referenced by mlir::LLVM::ModuleImport::convertDataLayout().
|
inline |
Returns the data layout tokens that have not been handled during the data layout translation.
Definition at line 73 of file DataLayoutImporter.h.
Referenced by mlir::LLVM::ModuleImport::convertDataLayout().