clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/DeviceOffload.h"
Public Member Functions | |
IncrementalCUDADeviceParser (std::unique_ptr< CompilerInstance > DeviceInstance, CompilerInstance &HostInstance, llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > VFS, llvm::Error &Err, const std::list< PartialTranslationUnit > &PTUs) | |
llvm::Expected< TranslationUnitDecl * > | Parse (llvm::StringRef Input) override |
Parses incremental input by creating an in-memory file. | |
llvm::Expected< llvm::StringRef > | GeneratePTX () |
llvm::Error | GenerateFatbinary () |
~IncrementalCUDADeviceParser () | |
Public Member Functions inherited from clang::IncrementalParser | |
IncrementalParser (CompilerInstance &Instance, llvm::Error &Err) | |
virtual | ~IncrementalParser () |
virtual llvm::Expected< TranslationUnitDecl * > | Parse (llvm::StringRef Input) |
Parses incremental input by creating an in-memory file. | |
void | CleanUpPTU (TranslationUnitDecl *MostRecentTU) |
Protected Attributes | |
std::unique_ptr< CompilerInstance > | DeviceCI |
int | SMVersion |
llvm::SmallString< 1024 > | PTXCode |
llvm::SmallVector< char, 1024 > | FatbinContent |
llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > | VFS |
CodeGenOptions & | CodeGenOpts |
const TargetOptions & | TargetOpts |
Protected Attributes inherited from clang::IncrementalParser | |
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. | |
Definition at line 26 of file DeviceOffload.h.
clang::IncrementalCUDADeviceParser::IncrementalCUDADeviceParser | ( | std::unique_ptr< CompilerInstance > | DeviceInstance, |
CompilerInstance & | HostInstance, | ||
llvm::IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > | VFS, | ||
llvm::Error & | Err, | ||
const std::list< PartialTranslationUnit > & | PTUs | ||
) |
Definition at line 27 of file DeviceOffload.cpp.
References clang::TargetOptions::CPU, DeviceCI, SMVersion, and TargetOpts.
clang::IncrementalCUDADeviceParser::~IncrementalCUDADeviceParser | ( | ) |
Definition at line 178 of file DeviceOffload.cpp.
llvm::Error clang::IncrementalCUDADeviceParser::GenerateFatbinary | ( | ) |
Definition at line 111 of file DeviceOffload.cpp.
References FatbinContent, Kind, PTXCode, and SMVersion.
Referenced by Parse().
llvm::Expected< llvm::StringRef > clang::IncrementalCUDADeviceParser::GeneratePTX | ( | ) |
Definition at line 75 of file DeviceOffload.cpp.
References clang::TargetOptions::CPU, PTXCode, and TargetOpts.
Referenced by Parse().
|
overridevirtual |
Parses incremental input by creating an in-memory file.
PartialTranslationUnit
which holds information about the TranslationUnitDecl
. Reimplemented from clang::IncrementalParser.
Definition at line 48 of file DeviceOffload.cpp.
References CodeGenOpts, clang::CodeGenOptions::CudaGpuBinaryFileName, FatbinContent, GenerateFatbinary(), GeneratePTX(), clang::IncrementalParser::Parse(), and VFS.
|
protected |
Definition at line 52 of file DeviceOffload.h.
Referenced by Parse().
|
protected |
Definition at line 47 of file DeviceOffload.h.
Referenced by IncrementalCUDADeviceParser().
|
protected |
Definition at line 50 of file DeviceOffload.h.
Referenced by GenerateFatbinary(), and Parse().
|
protected |
Definition at line 49 of file DeviceOffload.h.
Referenced by GenerateFatbinary(), and GeneratePTX().
|
protected |
Definition at line 48 of file DeviceOffload.h.
Referenced by GenerateFatbinary(), and IncrementalCUDADeviceParser().
|
protected |
Definition at line 53 of file DeviceOffload.h.
Referenced by GeneratePTX(), and IncrementalCUDADeviceParser().
|
protected |
Definition at line 51 of file DeviceOffload.h.
Referenced by Parse().