14#ifndef MLIR_DIALECT_OPENACC_OPENACCUTILSGPU_H_
15#define MLIR_DIALECT_OPENACC_OPENACCUTILSGPU_H_
20#include "llvm/ADT/DenseMap.h"
40std::optional<gpu::GPUModuleOp>
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Value getGPUSize(gpu::Processor processor, gpu::LaunchOp launch, const llvm::DenseMap< gpu::Processor, Value > &dimensionOps)
Return the launch dimension for processor from launch, or from dimensionOps when launch is null.
std::optional< gpu::GPUModuleOp > getOrCreateGPUModule(ModuleOp mod, bool create=true, llvm::StringRef name=kDefaultGPUModuleName)
Get or create a GPU module in the given module.
Value getGPUThreadId(gpu::Processor processor, gpu::LaunchOp launch, const llvm::DenseMap< gpu::Processor, Value > &indexOps)
Return the thread/block index for processor from launch, or from indexOps when launch is null.
constexpr llvm::StringLiteral kDefaultGPUModuleName
Default GPU module name used by OpenACC.
Include the generated interface declarations.