Allow SymbolUserOpInterface operators to be used in RemoveDeadValues Pass (#117405)
[llvm-project.git] / llvm / tools / llvm-exegesis / lib / TargetSelect.h
blobc8c6a1cd532a8a6deb87fa4ee01729fd8a32074c
1 //===-- TargetSelect.h ------------------------------------------*- 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 ///
9 /// \file
10 ///
11 /// Utilities to handle the creation of the enabled exegesis target(s).
12 ///
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H
16 #define LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H
18 #include "llvm/Config/llvm-config.h"
20 namespace llvm {
21 namespace exegesis {
23 // Forward declare all of the initialize methods for targets compiled in
24 #define LLVM_EXEGESIS(TargetName) void Initialize##TargetName##ExegesisTarget();
25 #include "llvm/Config/TargetExegesis.def"
27 // Initializes all exegesis targets compiled in.
28 inline void InitializeAllExegesisTargets() {
29 #define LLVM_EXEGESIS(TargetName) Initialize##TargetName##ExegesisTarget();
30 #include "llvm/Config/TargetExegesis.def"
33 } // namespace exegesis
34 } // namespace llvm
36 #endif // LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H