FLANG
fir::acc::FIROpenACCSupportAnalysis Class Reference

#include <flang/Optimizer/OpenACC/Analysis/FIROpenACCSupportAnalysis.h>

Public Member Functions

std::string getVariableName (mlir::Value v, mlir::acc::VariableNameConfig config)
std::string getRecipeName (mlir::acc::RecipeKind kind, mlir::Type type, mlir::Value var)
mlir::InFlightDiagnostic emitNYI (mlir::Location loc, const mlir::Twine &message)
bool isValidSymbolUse (mlir::Operation *user, mlir::SymbolRefAttr symbol, mlir::Operation **definingOpPtr)
bool isValidValueUse (mlir::Value v, mlir::Region &region, mlir::SymbolTableCollection *symbolTables)
std::optional< mlir::acc::TypeSizeAndAlignment > getTypeSizeAndAlignment (mlir::Type ty, mlir::ModuleOp module, mlir::acc::OpenACCSupport &support)
bool isAddressNotCapturedByCalls (mlir::Value v)

Detailed Description

FIR-specific implementation for the OpenACCSupport analysis interface.

This class provides the custom implementations of the OpenACCSupport interface methods that are tailored to FIR's requirements and can handle FIR dialect operations and types. Its primary intent is to be registered with the OpenACCSupport analysis using setImplementation()

Usage: auto &support = getAnalysis<mlir::acc::OpenACCSupport>(); support.setImplementation(fir::acc::FIROpenACCSupportAnalysis());

Member Function Documentation

◆ isAddressNotCapturedByCalls()

bool fir::acc::FIROpenACCSupportAnalysis::isAddressNotCapturedByCalls ( mlir::Value v)

Returns true when Fortran semantics forbid a procedure from using the address of v after a call that receives it returns.


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