clang 20.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:
Inheritance graph
[legend]

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< CompilerInstanceDeviceCI
 
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.
 

Detailed Description

Definition at line 26 of file DeviceOffload.h.

Constructor & Destructor Documentation

◆ IncrementalCUDADeviceParser()

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.

◆ ~IncrementalCUDADeviceParser()

clang::IncrementalCUDADeviceParser::~IncrementalCUDADeviceParser ( )

Definition at line 178 of file DeviceOffload.cpp.

Member Function Documentation

◆ GenerateFatbinary()

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

Definition at line 111 of file DeviceOffload.cpp.

References FatbinContent, Kind, PTXCode, and SMVersion.

Referenced by Parse().

◆ GeneratePTX()

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().

◆ Parse()

llvm::Expected< TranslationUnitDecl * > clang::IncrementalCUDADeviceParser::Parse ( llvm::StringRef  Input)
overridevirtual

Parses incremental input by creating an in-memory file.

Returns
a 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.

Member Data Documentation

◆ CodeGenOpts

CodeGenOptions& clang::IncrementalCUDADeviceParser::CodeGenOpts
protected

Definition at line 52 of file DeviceOffload.h.

Referenced by Parse().

◆ DeviceCI

std::unique_ptr<CompilerInstance> clang::IncrementalCUDADeviceParser::DeviceCI
protected

Definition at line 47 of file DeviceOffload.h.

Referenced by IncrementalCUDADeviceParser().

◆ FatbinContent

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

Definition at line 50 of file DeviceOffload.h.

Referenced by GenerateFatbinary(), and Parse().

◆ PTXCode

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

Definition at line 49 of file DeviceOffload.h.

Referenced by GenerateFatbinary(), and GeneratePTX().

◆ SMVersion

int clang::IncrementalCUDADeviceParser::SMVersion
protected

Definition at line 48 of file DeviceOffload.h.

Referenced by GenerateFatbinary(), and IncrementalCUDADeviceParser().

◆ TargetOpts

const TargetOptions& clang::IncrementalCUDADeviceParser::TargetOpts
protected

Definition at line 53 of file DeviceOffload.h.

Referenced by GeneratePTX(), and IncrementalCUDADeviceParser().

◆ VFS

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

Definition at line 51 of file DeviceOffload.h.

Referenced by Parse().


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