MLIR  20.0.0git
Chipset.h
Go to the documentation of this file.
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_DIALECT_AMDGPU_UTILS_CHIPSET_H_
9 #define MLIR_DIALECT_AMDGPU_UTILS_CHIPSET_H_
10 
11 #include "mlir/Support/LLVM.h"
12 
13 namespace mlir {
14 namespace amdgpu {
15 struct Chipset {
16  Chipset() = default;
17  Chipset(unsigned majorVersion, unsigned 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
Include the generated interface declarations.
Chipset(unsigned majorVersion, unsigned minorVersion)
Definition: Chipset.h:17
static FailureOr< Chipset > parse(StringRef name)
Definition: Chipset.cpp:16
unsigned majorVersion
Definition: Chipset.h:21
unsigned minorVersion
Definition: Chipset.h:22