MLIR 23.0.0git
OpenACCUtilsType.h File Reference
#include "llvm/Support/TypeSize.h"
#include <optional>
#include <utility>

Go to the source code of this file.

Namespaces

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

Typedefs

using mlir::acc::TypeSizeAndAlignment = std::pair<llvm::TypeSize, llvm::TypeSize>

Functions

std::optional< TypeSizeAndAlignmentmlir::acc::getTypeSizeAndAlignment (Type ty, ModuleOp module, const DataLayout &dl, OpenACCSupport *support=nullptr)
 Returns the size and ABI alignment in bytes.
std::optional< TypeSizeAndAlignmentmlir::acc::getTypeSizeAndAlignment (Type ty, ModuleOp module, OpenACCSupport *support=nullptr)
 Same as above, obtaining dl from module via getDataLayout.