1//===- BufferizationEnums.td - Bufferization enums ---------*- tablegen -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// This is the definition file for enums used in Bufferization. 10// 11//===----------------------------------------------------------------------===// 12 13#ifndef BUFFERIZATION_ENUMS 14#define BUFFERIZATION_ENUMS 15 16include "mlir/IR/EnumAttr.td" 17 18def LayoutMapOption : I32EnumAttr<"LayoutMapOption", 19 "option for map layout", [ 20 I32EnumAttrCase<"InferLayoutMap", 0>, 21 I32EnumAttrCase<"IdentityLayoutMap", 1>, 22 I32EnumAttrCase<"FullyDynamicLayoutMap", 2> 23]> { 24 let cppNamespace = "::mlir::bufferization"; 25} 26 27#endif // BUFFERIZATION_ENUMS 28