1 //===-- TargetSelect.h ------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
11 /// Utilities to handle the creation of the enabled exegesis target(s).
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"
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
36 #endif // LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H