FLANG
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fir::BaseBoxType Class Reference

This class provides a shared interface for box and class types. More...

#include <flang/Optimizer/Dialect/FIRType.h>

Inheritance diagram for fir::BaseBoxType:

Public Types

enum class  Attribute { None , Allocatable , Pointer }
 Box attributes.
 

Public Member Functions

mlir::Type getEleTy () const
 Returns the element type of this box type.
 
mlir::Type unwrapInnerType () const
 Unwrap element type from fir.heap, fir.ptr and fir.array.
 
bool isAssumedRank () const
 Is this the box for an assumed rank?
 
BaseBoxType getBoxTypeWithNewShape (mlir::Type shapeMold) const
 
BaseBoxType getBoxTypeWithNewShape (int rank) const
 
BaseBoxType getBoxTypeWithNewAttr (Attribute attr) const
 Return the same type, except for the attribute (fir.heap/fir.ptr).
 

Static Public Member Functions

static bool classof (mlir::Type type)
 Methods for support type inquiry through isa, cast, and dyn_cast.
 

Detailed Description

This class provides a shared interface for box and class types.

Member Function Documentation

◆ getBoxTypeWithNewShape()

fir::BaseBoxType fir::BaseBoxType::getBoxTypeWithNewShape ( mlir::Type  shapeMold) const

Return the same type, except for the shape, that is taken the shape of shapeMold.


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