Intel SPMD Program Compiler  1.9.2
Public Member Functions | Static Public Attributes | List of all members
ImproveMemoryOpsPass Class Reference
Inheritance diagram for ImproveMemoryOpsPass:
Inheritance graph
[legend]
Collaboration diagram for ImproveMemoryOpsPass:
Collaboration graph
[legend]

Public Member Functions

 ImproveMemoryOpsPass ()
 
const char * getPassName () const
 
bool runOnBasicBlock (llvm::BasicBlock &BB)
 

Static Public Attributes

static char ID = 0
 

Detailed Description

When the front-end emits gathers and scatters, it generates an array of vector-width pointers to represent the set of addresses to read from or write to. This optimization detects cases when the base pointer is a uniform pointer or when the indexing is into an array that can be converted into scatters/gathers from a single base pointer and an array of offsets.

See for example the comments discussing the __pseudo_gather functions in builtins.cpp for more information about this.

Definition at line 1441 of file opt.cpp.

Constructor & Destructor Documentation

ImproveMemoryOpsPass::ImproveMemoryOpsPass ( )
inline

Definition at line 1444 of file opt.cpp.

Member Function Documentation

const char* ImproveMemoryOpsPass::getPassName ( ) const
inline

Definition at line 1447 of file opt.cpp.

References ID.

bool ImproveMemoryOpsPass::runOnBasicBlock ( llvm::BasicBlock &  BB)

Member Data Documentation

char ImproveMemoryOpsPass::ID = 0
static

Definition at line 1443 of file opt.cpp.

Referenced by getPassName().


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