clang 22.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/DeviceOffload.h"
Public Member Functions | |
IncrementalCUDADeviceParser (CompilerInstance &DeviceInstance, CompilerInstance &HostInstance, IncrementalAction *DeviceAct, llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > VFS, llvm::Error &Err, std::list< PartialTranslationUnit > &PTUs) | |
llvm::Expected< llvm::StringRef > | GeneratePTX () |
llvm::Error | GenerateFatbinary () |
~IncrementalCUDADeviceParser () | |
![]() | |
IncrementalParser (CompilerInstance &Instance, IncrementalAction *Act, llvm::Error &Err, std::list< PartialTranslationUnit > &PTUs) | |
virtual | ~IncrementalParser () |
virtual llvm::Expected< TranslationUnitDecl * > | Parse (llvm::StringRef Input) |
Parses incremental input by creating an in-memory file. | |
void | CleanUpPTU (TranslationUnitDecl *MostRecentTU) |
PartialTranslationUnit & | RegisterPTU (TranslationUnitDecl *TU, std::unique_ptr< llvm::Module > M={}) |
Register a PTU produced by Parse. | |
Protected Attributes | |
int | SMVersion |
llvm::SmallString< 1024 > | PTXCode |
llvm::SmallVector< char, 1024 > | FatbinContent |
llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > | VFS |
CodeGenOptions & | CodeGenOpts |
const TargetOptions & | TargetOpts |
![]() | |
Sema & | S |
The Sema performing the incremental compilation. | |
std::unique_ptr< Parser > | P |
Parser. | |
ASTConsumer * | Consumer = nullptr |
Consumer to process the produced top level decls. Owned by Act. | |
unsigned | InputCount = 0 |
Counts the number of direct user input lines that have been parsed. | |
IncrementalAction * | Act = nullptr |
The FrontendAction used during incremental parsing. | |
std::list< PartialTranslationUnit > & | PTUs |
Definition at line 27 of file DeviceOffload.h.
clang::IncrementalCUDADeviceParser::IncrementalCUDADeviceParser | ( | CompilerInstance & | DeviceInstance, |
CompilerInstance & | HostInstance, | ||
IncrementalAction * | DeviceAct, | ||
llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > | VFS, | ||
llvm::Error & | Err, | ||
std::list< PartialTranslationUnit > & | PTUs | ||
) |
Definition at line 27 of file DeviceOffload.cpp.
References Arch, clang::TargetOptions::CPU, SMVersion, and TargetOpts.
clang::IncrementalCUDADeviceParser::~IncrementalCUDADeviceParser | ( | ) |
Definition at line 162 of file DeviceOffload.cpp.
llvm::Error clang::IncrementalCUDADeviceParser::GenerateFatbinary | ( | ) |
Definition at line 82 of file DeviceOffload.cpp.
References CodeGenOpts, clang::CodeGenOptions::CudaGpuBinaryFileName, FatbinContent, Kind, clang::IncrementalParser::PTUs, PTXCode, SMVersion, clang::PartialTranslationUnit::TheModule, and VFS.
llvm::Expected< llvm::StringRef > clang::IncrementalCUDADeviceParser::GeneratePTX | ( | ) |
Definition at line 46 of file DeviceOffload.cpp.
References clang::TargetOptions::CPU, clang::IncrementalParser::PTUs, PTXCode, and TargetOpts.
|
protected |
Definition at line 49 of file DeviceOffload.h.
Referenced by GenerateFatbinary().
|
protected |
Definition at line 47 of file DeviceOffload.h.
Referenced by GenerateFatbinary().
|
protected |
Definition at line 46 of file DeviceOffload.h.
Referenced by GenerateFatbinary(), and GeneratePTX().
|
protected |
Definition at line 45 of file DeviceOffload.h.
Referenced by GenerateFatbinary(), and IncrementalCUDADeviceParser().
|
protected |
Definition at line 50 of file DeviceOffload.h.
Referenced by GeneratePTX(), and IncrementalCUDADeviceParser().
|
protected |
Definition at line 48 of file DeviceOffload.h.
Referenced by GenerateFatbinary().