-
Notifications
You must be signed in to change notification settings - Fork 15
/
MockUtils.h
41 lines (33 loc) · 1.24 KB
/
MockUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//===- MockUtils.h ----------------------------------------------*- C++ -*-===//
//
// (C) Copyright IBM 2023.
//
// This code is part of Qiskit.
//
// This code is licensed under the Apache License, Version 2.0 with LLVM
// Exceptions. You may obtain a copy of this license in the LICENSE.txt
// file in the root directory of this source tree.
//
// Any modifications or derivative works of this code must retain this
// copyright notice, and modified files need to carry a notice indicating
// that they have been altered from the originals.
//
//===----------------------------------------------------------------------===//
//
// Declaration of utility functions for the Mock Target
//
//===----------------------------------------------------------------------===//
#ifndef HAL_MOCKUTILS_H
#define HAL_MOCKUTILS_H
#include <vector>
namespace mlir {
class ModuleOp;
} // end namespace mlir
namespace qssc::targets::systems::mock {
// Looks for and returns the Controller submodule if it exists
// Returns nullptr otherwise
auto getControllerModule(mlir::ModuleOp topModuleOp) -> mlir::ModuleOp;
auto getActuatorModules(mlir::ModuleOp topModuleOp)
-> std::vector<mlir::ModuleOp>;
} // namespace qssc::targets::systems::mock
#endif // HAL_MOCKUTILS_H