clang
24.0.0git
lib
Interpreter
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
13
#include "
clang/Interpreter/IncrementalExecutor.h
"
14
15
namespace
clang
{
16
17
IncrementalExecutorBuilder::~IncrementalExecutorBuilder
() =
default
;
18
19
llvm::Expected<std::unique_ptr<IncrementalExecutor>
>
20
IncrementalExecutorBuilder::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
IncrementalExecutor.h
clang::IncrementalExecutorBuilder::~IncrementalExecutorBuilder
virtual ~IncrementalExecutorBuilder()
clang::IncrementalExecutorBuilder::IE
std::unique_ptr< IncrementalExecutor > IE
An optional external IncrementalExecutor.
Definition
IncrementalExecutor.h:48
clang::IncrementalExecutorBuilder::create
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.
Definition
IncrementalExecutorBuilder.cpp:20
clang::TargetInfo
Exposes information about the current target.
Definition
TargetInfo.h:228
llvm::Expected
Definition
LLVM.h:36
clang
Top level wrappers for InstallAPI frontend operations.
Definition
CalledOnceCheck.h:17
Generated on
for clang by
1.14.0