MLIR 23.0.0git
OpenACCUtilsGPU.h File Reference
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
#include "mlir/IR/BuiltinOps.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::acc

Functions

std::optional< gpu::GPUModuleOp > mlir::acc::getOrCreateGPUModule (ModuleOp mod, bool create=true, llvm::StringRef name=kDefaultGPUModuleName)
 Get or create a GPU module in the given module.

Variables

constexpr llvm::StringLiteral mlir::acc::kDefaultGPUModuleName = "acc_gpu_module"
 Default GPU module name used by OpenACC.