13#ifndef LLVM_CLANG_LIB_INTERPRETER_DEVICE_OFFLOAD_H
14#define LLVM_CLANG_LIB_INTERPRETER_DEVICE_OFFLOAD_H
17#include "llvm/Support/FileSystem.h"
18#include "llvm/Support/VirtualFileSystem.h"
21struct PartialTranslationUnit;
22class CompilerInstance;
27 const std::list<PartialTranslationUnit> &PTUs;
31 std::unique_ptr<CompilerInstance> DeviceInstance,
34 llvm::Error &Err,
const std::list<PartialTranslationUnit> &PTUs);
CodeGenOptions - Track various options which control how the code is optimized and passed to the back...
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
llvm::SmallVector< char, 1024 > FatbinContent
llvm::SmallString< 1024 > PTXCode
std::unique_ptr< CompilerInstance > DeviceCI
llvm::Expected< TranslationUnitDecl * > Parse(llvm::StringRef Input) override
Parses incremental input by creating an in-memory file.
CodeGenOptions & CodeGenOpts
llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > VFS
llvm::Expected< llvm::StringRef > GeneratePTX()
~IncrementalCUDADeviceParser()
llvm::Error GenerateFatbinary()
const TargetOptions & TargetOpts
Provides support for incremental compilation.
Options for controlling the target.
The JSON file list parser is used to communicate input to InstallAPI.