clang 24.0.0git
IncrementalExecutorBuilder.cpp
Go to the documentation of this file.
1//===-- IncrementalExecutorBuilder.cpp - Executor Builder ------*- 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// This implements the common incremental executor builder.
10//
11//===----------------------------------------------------------------------===//
12
14
15namespace clang {
16
18
20IncrementalExecutorBuilder::create(llvm::orc::ThreadSafeContext &TSC,
21 const clang::TargetInfo &TI) {
22 if (IE)
23 return std::move(IE);
24 return createExecutor(TSC, TI);
25}
26
27} // namespace clang
std::unique_ptr< IncrementalExecutor > IE
An optional external IncrementalExecutor.
llvm::Expected< std::unique_ptr< IncrementalExecutor > > create(llvm::orc::ThreadSafeContext &TSC, const clang::TargetInfo &TI)
Return the supplied executor, or create one using the selected backend.
Exposes information about the current target.
Definition TargetInfo.h:228
Top level wrappers for InstallAPI frontend operations.