1 //===- Chipset.h - AMDGPU Chipset version struct ----------*- C++ -*-===//
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 #ifndef MLIR_CONVERSION_AMDGPUTOROCDL_CHIPSET_H_
9 #define MLIR_CONVERSION_AMDGPUTOROCDL_CHIPSET_H_
10 
11 #include "mlir/Support/LogicalResult.h"
12 
13 namespace mlir {
14 namespace amdgpu {
15 struct Chipset {
16   Chipset() = default;
ChipsetChipset17   Chipset(unsigned majorVersion, unsigned minorVersion)
18       : majorVersion(majorVersion), minorVersion(minorVersion){};
19   static FailureOr<Chipset> parse(StringRef name);
20 
21   unsigned majorVersion = 0;
22   unsigned minorVersion = 0;
23 };
24 } // end namespace amdgpu
25 } // end namespace mlir
26 
27 #endif
28