MLIR 23.0.0git
Utils.h File Reference
#include "mlir/IR/Operation.h"
#include "mlir/IR/Value.h"

Go to the source code of this file.

Namespaces

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

Functions

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.