LLVM API Documentation

Public Member Functions | Static Public Attributes
llvm::NVPTXAllocaHoisting Class Reference

#include <NVPTXAllocaHoisting.h>

Inheritance diagram for llvm::NVPTXAllocaHoisting:
Inheritance graph
[legend]
Collaboration diagram for llvm::NVPTXAllocaHoisting:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NVPTXAllocaHoisting ()
void getAnalysisUsage (AnalysisUsage &AU) const override
const char * getPassName () const override
bool runOnFunction (Function &function) override

Static Public Attributes

static char ID = 1

Detailed Description

Definition at line 28 of file NVPTXAllocaHoisting.h.


Constructor & Destructor Documentation

Definition at line 31 of file NVPTXAllocaHoisting.h.


Member Function Documentation

void llvm::NVPTXAllocaHoisting::getAnalysisUsage ( AnalysisUsage ) const [inline, override, virtual]

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.

Reimplemented from llvm::Pass.

Definition at line 33 of file NVPTXAllocaHoisting.h.

References llvm::AnalysisUsage::addPreserved(), and llvm::AnalysisUsage::addRequired().

const char* llvm::NVPTXAllocaHoisting::getPassName ( ) const [inline, override, virtual]

getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Reimplemented from llvm::Pass.

Definition at line 39 of file NVPTXAllocaHoisting.h.

runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.

Implements llvm::FunctionPass.

Definition at line 21 of file NVPTXAllocaHoisting.cpp.

References llvm::dyn_cast(), llvm::sys::path::end(), llvm::AllocaInst::getArraySize(), I, and llvm::Instruction::moveBefore().


Member Data Documentation

char llvm::NVPTXAllocaHoisting::ID = 1 [static]

Definition at line 30 of file NVPTXAllocaHoisting.h.


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