CIRCT  18.0.0git
Classes | Public Member Functions | Private Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for circt::HWArithToHWTypeConverter:
Collaboration graph
[legend]

Classes

struct  ConvertedType
 

Public Member Functions

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

Private Attributes

llvm::DenseMap< mlir::Type, ConvertedTypeconversionCache
 

Detailed Description

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

Definition at line 29 of file HWArithToHW.h.

Constructor & Destructor Documentation

◆ HWArithToHWTypeConverter()

HWArithToHWTypeConverter::HWArithToHWTypeConverter ( )

Definition at line 382 of file HWArithToHW.cpp.

References builder, and inputs.

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 349 of file HWArithToHW.cpp.

References circt::calyx::direction::get().

Member Data Documentation

◆ conversionCache

llvm::DenseMap<mlir::Type, ConvertedType> circt::HWArithToHWTypeConverter::conversionCache
private

Definition at line 47 of file HWArithToHW.h.


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