clang 22.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::IncrementalCUDADeviceParser Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/DeviceOffload.h"

Inheritance diagram for clang::IncrementalCUDADeviceParser:
[legend]

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 ()
 
- Public Member Functions inherited from clang::IncrementalParser
 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)
 
PartialTranslationUnitRegisterPTU (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
 
CodeGenOptionsCodeGenOpts
 
const TargetOptionsTargetOpts
 
- Protected Attributes inherited from clang::IncrementalParser
SemaS
 The Sema performing the incremental compilation.
 
std::unique_ptr< ParserP
 Parser.
 
ASTConsumerConsumer = 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.
 
IncrementalActionAct = nullptr
 The FrontendAction used during incremental parsing.
 
std::list< PartialTranslationUnit > & PTUs
 

Detailed Description

Definition at line 27 of file DeviceOffload.h.

Constructor & Destructor Documentation

◆ IncrementalCUDADeviceParser()

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.

◆ ~IncrementalCUDADeviceParser()

clang::IncrementalCUDADeviceParser::~IncrementalCUDADeviceParser ( )

Definition at line 162 of file DeviceOffload.cpp.

Member Function Documentation

◆ GenerateFatbinary()

llvm::Error clang::IncrementalCUDADeviceParser::GenerateFatbinary ( )

◆ GeneratePTX()

llvm::Expected< llvm::StringRef > clang::IncrementalCUDADeviceParser::GeneratePTX ( )

Member Data Documentation

◆ CodeGenOpts

CodeGenOptions& clang::IncrementalCUDADeviceParser::CodeGenOpts
protected

Definition at line 49 of file DeviceOffload.h.

Referenced by GenerateFatbinary().

◆ FatbinContent

llvm::SmallVector<char, 1024> clang::IncrementalCUDADeviceParser::FatbinContent
protected

Definition at line 47 of file DeviceOffload.h.

Referenced by GenerateFatbinary().

◆ PTXCode

llvm::SmallString<1024> clang::IncrementalCUDADeviceParser::PTXCode
protected

Definition at line 46 of file DeviceOffload.h.

Referenced by GenerateFatbinary(), and GeneratePTX().

◆ SMVersion

int clang::IncrementalCUDADeviceParser::SMVersion
protected

Definition at line 45 of file DeviceOffload.h.

Referenced by GenerateFatbinary(), and IncrementalCUDADeviceParser().

◆ TargetOpts

const TargetOptions& clang::IncrementalCUDADeviceParser::TargetOpts
protected

Definition at line 50 of file DeviceOffload.h.

Referenced by GeneratePTX(), and IncrementalCUDADeviceParser().

◆ VFS

llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> clang::IncrementalCUDADeviceParser::VFS
protected

Definition at line 48 of file DeviceOffload.h.

Referenced by GenerateFatbinary().


The documentation for this class was generated from the following files: