MLIR 22.0.0git
mlir::arith::NarrowTypeEmulationConverter Class Reference

Converts narrow integer or float types that are not supported by the target hardware to wider types. More...

#include "mlir/Dialect/Arith/Transforms/NarrowTypeEmulationConverter.h"

Inheritance diagram for mlir::arith::NarrowTypeEmulationConverter:

Public Member Functions

 NarrowTypeEmulationConverter (unsigned targetBitwidth)
unsigned getLoadStoreBitwidth () const

Detailed Description

Converts narrow integer or float types that are not supported by the target hardware to wider types.

Currently, we only handle power-of-two integer types and convert them to wider integers that are equal or larger than 8 bits.

Definition at line 20 of file NarrowTypeEmulationConverter.h.

Constructor & Destructor Documentation

◆ NarrowTypeEmulationConverter()

arith::NarrowTypeEmulationConverter::NarrowTypeEmulationConverter ( unsigned targetBitwidth)
explicit

Definition at line 27 of file EmulateNarrowType.cpp.

References mlir::Type::getContext().

Member Function Documentation

◆ getLoadStoreBitwidth()

unsigned mlir::arith::NarrowTypeEmulationConverter::getLoadStoreBitwidth ( ) const
inline

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