MLIR
20.0.0git
|
Helper class that translates an LLVM data layout to an MLIR data layout specification. More...
#include "Target/LLVMIR/DataLayoutImporter.h"
Public Member Functions | |
DataLayoutImporter (MLIRContext *context, const llvm::DataLayout &llvmDataLayout) | |
DataLayoutSpecInterface | getDataLayout () 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 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 46 of file DataLayoutImporter.h.
|
inline |
Definition at line 48 of file DataLayoutImporter.h.
|
inline |
Returns the MLIR data layout specification translated from the LLVM data layout.
Definition at line 56 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 60 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 64 of file DataLayoutImporter.h.
Referenced by mlir::LLVM::ModuleImport::convertDataLayout().