MLIR-AIE
PyTypes.h
Go to the documentation of this file.
1//===- PyTypes.h ------------------------------------------------*- C++ -*-===//
2//
3// This file is licensed 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// (c) Copyright 2024 Advanced Micro Devices, Inc.
8//
9//===----------------------------------------------------------------------===//
10#ifndef AIE_BINDINGS_PYTYPES_H
11#define AIE_BINDINGS_PYTYPES_H
12
13#include "aie-c/TargetModel.h"
14
16public:
17 PyAieTargetModel(AieTargetModel model) : model(model) {}
18 operator AieTargetModel() const { return model; }
19 AieTargetModel get() const { return model; }
20
21private:
22 AieTargetModel model;
23};
24
25#endif // AIE_BINDINGS_PYTYPES_H
PyAieTargetModel(AieTargetModel model)
Definition PyTypes.h:17
AieTargetModel get() const
Definition PyTypes.h:19