Intel SPMD Program Compiler  1.3.0
Public Member Functions | Static Public Attributes
VSelMovmskOpt Class Reference
Inheritance diagram for VSelMovmskOpt:
Inheritance graph
[legend]
Collaboration diagram for VSelMovmskOpt:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Attributes

static char ID = 0

Detailed Description

This simple optimization pass looks for a vector select instruction with an all-on or all-off constant mask, simplifying it to the appropriate operand if so.

Todo:
The better thing to do would be to submit a patch to LLVM to get these; they're presumably pretty simple patterns to match.

Definition at line 884 of file opt.cpp.


Constructor & Destructor Documentation

VSelMovmskOpt::VSelMovmskOpt ( ) [inline]

Definition at line 886 of file opt.cpp.


Member Function Documentation

const char* VSelMovmskOpt::getPassName ( ) const [inline]

Definition at line 889 of file opt.cpp.

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

Member Data Documentation

char VSelMovmskOpt::ID = 0 [static]

Definition at line 892 of file opt.cpp.


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