MLIR
18.0.0git
|
Enumerations | |
enum | OpenACCExecMapping { NONE = 0 , VECTOR = 1 , WORKER = 2 , GANG = 4 } |
Enumeration used to encode the execution mapping on a loop construct. More... | |
Functions | |
mlir::Value | getVarPtr (mlir::Operation *accDataEntryOp) |
Used to obtain the varPtr from a data entry operation. More... | |
std::optional< mlir::acc::DataClause > | getDataClause (mlir::Operation *accDataEntryOp) |
Used to obtain the dataClause from a data entry operation. More... | |
bool | getImplicitFlag (mlir::Operation *accDataEntryOp) |
Used to find out whether data operation is implicit. More... | |
static constexpr StringLiteral | getDeclareAttrName () |
Used to obtain the attribute name for declare. More... | |
static constexpr StringLiteral | getDeclareActionAttrName () |
static constexpr StringLiteral | getRoutineInfoAttrName () |
Enumeration used to encode the execution mapping on a loop construct.
They refer directly to the OpenACC 3.3 standard: 2.9.2. gang 2.9.3. worker 2.9.4. vector
Value can be combined bitwise to reflect the mapping applied to the construct. e.g. acc.loop gang vector
, the gang
and vector
could be combined and the final mapping value would be 5 (4 | 1).
Enumerator | |
---|---|
NONE | |
VECTOR | |
WORKER | |
GANG |
std::optional< mlir::acc::DataClause > mlir::acc::getDataClause | ( | mlir::Operation * | accDataEntryOp | ) |
Used to obtain the dataClause
from a data entry operation.
Returns empty optional if not a data entry operation.
Definition at line 1348 of file OpenACC.cpp.
|
staticconstexpr |
|
staticconstexpr |
bool mlir::acc::getImplicitFlag | ( | mlir::Operation * | accDataEntryOp | ) |
Used to find out whether data operation is implicit.
Returns false if not a data operation or if it is a data operation without implicit flag.
Definition at line 1358 of file OpenACC.cpp.
References ACC_DATA_ENTRY_OPS.
|
staticconstexpr |
mlir::Value mlir::acc::getVarPtr | ( | mlir::Operation * | accDataEntryOp | ) |
Used to obtain the varPtr
from a data entry operation.
Returns empty value if not a data entry operation.
Definition at line 1339 of file OpenACC.cpp.
References ACC_DATA_ENTRY_OPS.