FLANG
fir::AllocMemConversion Class Reference

Converts a fir.allocmem to a fir.alloca. More...

#include <Optimizer/Transforms/StackArrays.h>

Inheritance diagram for fir::AllocMemConversion:

Public Member Functions

 AllocMemConversion (mlir::MLIRContext *ctx, const StackArraysAnalysisWrapper::AllocMemMap &candidateOps, std::optional< mlir::DataLayout > &dl, std::optional< fir::KindMapping > &kindMap)
llvm::LogicalResult matchAndRewrite (fir::AllocMemOp allocmem, mlir::PatternRewriter &rewriter) const override

Static Public Member Functions

static InsertionPoint findAllocaInsertionPoint (fir::AllocMemOp &oldAlloc, const llvm::SmallVector< mlir::Operation * > &freeOps)

Detailed Description

Converts a fir.allocmem to a fir.alloca.

Member Function Documentation

◆ findAllocaInsertionPoint()

fir::InsertionPoint fir::AllocMemConversion::findAllocaInsertionPoint ( fir::AllocMemOp & oldAlloc,
const llvm::SmallVector< mlir::Operation * > & freeOps )
static

Determine where to insert the alloca operation. The returned value should be checked to see if it is inside a loop


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