FLANG
Public Member Functions | List of all members
fir::factory::AnyVariableStack Class Reference

#include <flang/Optimizer/Builder/TemporaryStorage.h>

Inheritance diagram for fir::factory::AnyVariableStack:
fir::factory::AnyVectorSubscriptStack

Public Member Functions

 AnyVariableStack (mlir::Location loc, fir::FirOpBuilder &builder, mlir::Type valueStaticType)
 
void pushValue (mlir::Location loc, fir::FirOpBuilder &builder, mlir::Value value)
 
void resetFetchPosition (mlir::Location loc, fir::FirOpBuilder &builder)
 
mlir::Value fetch (mlir::Location loc, fir::FirOpBuilder &builder)
 
void destroy (mlir::Location loc, fir::FirOpBuilder &builder)
 
bool canBeFetchedAfterPush () const
 

Detailed Description

Data structure to stack any kind of variables with the same static type and rank. Each variable may have different type parameters, bounds, and dynamic type. Fetching variable N will return a variable with the same address, dynamic type, bounds, and type parameters as the Nth variable that was pushed. It is implemented using runtime.


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