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

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 1351 of file opt.cpp.

Constructor & Destructor Documentation

◆ ImproveMemoryOpsPass()

ImproveMemoryOpsPass::ImproveMemoryOpsPass ( )

Definition at line 1354 of file opt.cpp.

Member Function Documentation

◆ getPassName()

const char* ImproveMemoryOpsPass::getPassName ( ) const

Definition at line 1357 of file opt.cpp.

References ID.

◆ runOnBasicBlock()

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

Member Data Documentation

◆ ID

char ImproveMemoryOpsPass::ID = 0

Definition at line 1353 of file opt.cpp.

Referenced by getPassName().

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