Introduce a common interface for operations with alignment attributes across MemRef, Vector, and SPIRV dialects. The interface exposes getMaybeAlign() to retrieve alignment as llvm::MaybeAlign. This is the second part of the PRs addressing issue #155677. Co-authored-by: Erick Ochoa Lopez <erick.ochoalopez@amd.com>
14 lines
504 B
C++
14 lines
504 B
C++
//===- AlignmentAttrInterface.cpp -----------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "mlir/Interfaces/AlignmentAttrInterface.h"
|
|
|
|
using namespace mlir;
|
|
|
|
#include "mlir/Interfaces/AlignmentAttrInterface.cpp.inc"
|