//===- Utils.cpp - Transform utilities ------------------------------------===// // // 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/Dialect/NVGPU/Transforms/Utils.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/Dialect/NVGPU/IR/NVGPUDialect.h" #include "mlir/Dialect/Vector/IR/VectorOps.h" usingnamespacemlir; usingnamespacemlir::nvgpu; Operation::operand_range nvgpu::getIndices(Operation *op) { … } void nvgpu::setIndices(Operation *op, ArrayRef<Value> indices) { … } Value nvgpu::getValueStored(Operation *op) { … } Value nvgpu::getMemrefOperand(Operation *op) { … }