CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::HWArithToHWTypeConverter Class Reference

A helper type converter class that automatically populates the relevant materializations and type conversions for converting HWArith to HW. More...

#include <HWArithToHW.h>

Inheritance diagram for circt::HWArithToHWTypeConverter:
Collaboration diagram for circt::HWArithToHWTypeConverter:

Public Member Functions

 HWArithToHWTypeConverter ()
mlir::Type removeSignedness (mlir::Type type)
bool hasSignednessSemantics (mlir::Type type)
bool hasSignednessSemantics (mlir::TypeRange types)

Private Attributes

mlir::AttrTypeReplacer signednessReplacer

Detailed Description

A helper type converter class that automatically populates the relevant materializations and type conversions for converting HWArith to HW.

Definition at line 33 of file HWArithToHW.h.

Constructor & Destructor Documentation

◆ HWArithToHWTypeConverter()

HWArithToHWTypeConverter::HWArithToHWTypeConverter ( )

Definition at line 398 of file HWArithToHW.cpp.

References removeSignedness(), and signednessReplacer.

Member Function Documentation

◆ hasSignednessSemantics() [1/2]

bool circt::HWArithToHWTypeConverter::hasSignednessSemantics ( mlir::Type type)

◆ hasSignednessSemantics() [2/2]

bool circt::HWArithToHWTypeConverter::hasSignednessSemantics ( mlir::TypeRange types)

◆ removeSignedness()

Type HWArithToHWTypeConverter::removeSignedness ( mlir::Type type)

Definition at line 394 of file HWArithToHW.cpp.

References signednessReplacer.

Referenced by HWArithToHWTypeConverter().

Member Data Documentation

◆ signednessReplacer

mlir::AttrTypeReplacer circt::HWArithToHWTypeConverter::signednessReplacer
private

Definition at line 46 of file HWArithToHW.h.

Referenced by HWArithToHWTypeConverter(), and removeSignedness().


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