MLIR 24.0.0git
OpenMPUtils.h File Reference

Shared utilities for setting OpenMP offload module interface attributes. More...

#include "mlir/Dialect/OpenMP/OpenMPInterfaces.h"
#include "mlir/Dialect/OpenMP/OpenMPOpsAttributes.h"
#include "mlir/IR/BuiltinOps.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/TargetParser/Triple.h"
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  mlir::omp::OffloadModuleOpts

Namespaces

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

Functions

static void mlir::omp::setOffloadModuleInterfaceAttributes (ModuleOp module, OffloadModuleOpts opts)
 Sets OpenMP offload module interface attributes on a ModuleOp, shared between Flang and Clang (CIR) frontends.
static void mlir::omp::setOpenMPVersionAttribute (ModuleOp module, int64_t version)
static int64_t mlir::omp::getOpenMPVersionAttribute (ModuleOp module, int64_t fallback=-1)
static bool mlir::omp::isOpenMPModule (ModuleOp module)
 Returns true if the given module contains OpenMP code.

Detailed Description

Shared utilities for setting OpenMP offload module interface attributes.

These are used by both Flang and Clang (CIR) frontends.

Definition in file OpenMPUtils.h.