|
FLANG
|
#include <flang/Optimizer/Builder/TemporaryStorage.h>
Public Member Functions | |
| AnyValueStack (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 |
Data structure to stack any kind of values with the same static type and rank. Each value may have different type parameters, bounds, and dynamic type. Fetching value N will return a value with the same dynamic type, bounds, and type parameters as the Nth value that was pushed. It is implemented using runtime.