MLIR 24.0.0git
Utils.h File Reference
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/Value.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
 Offload-specific OpenMP module attributes, associated to the OffloadModuleInterface. More...

Namespaces

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

Functions

void mlir::omp::setOffloadModuleInterfaceAttributes (ModuleOp module, const OffloadModuleOpts &opts)
 Sets OpenMP offload module interface attributes on a ModuleOp, shared between Flang and Clang (CIR) frontends.
void mlir::omp::setOpenMPVersionAttribute (ModuleOp module, int64_t version)
 Adds or updates the omp.version attribute.
int64_t mlir::omp::getOpenMPVersionAttribute (ModuleOp module, int64_t fallback=-1)
 Returns the value of the omp.version attribute, if present, or the fallback.
bool mlir::omp::isOpenMPModule (ModuleOp module)
 Checks whether this is an OpenMP-enabled module.
bool mlir::omp::allocaUsesRequireSharedMem (Value alloc)
 Check whether the value representing an allocation, assumed to have been defined in a shared device context, is used in a manner that would require device shared memory for correctness.
bool mlir::omp::opInSharedDeviceContext (Operation &op)
 Check whether the given operation is located in a context where an allocation to be used by multiple threads in a parallel region would have to be placed in device shared memory to be accessible.