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 native exegesis target.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H
16 #define LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H
21 #ifdef LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET
22 void LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET();
25 // Initializes the native exegesis target, or returns false if there is no
26 // native target (either because llvm-exegesis does not support the target or
27 // because it's not linked in).
28 inline bool InitializeNativeExegesisTarget() {
29 #ifdef LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET
30 LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET();
37 } // namespace exegesis
40 #endif // LLVM_TOOLS_LLVM_EXEGESIS_TARGET_SELECT_H