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

Public Member Functions

 MaskOpsCleanupPass (llvm::Module *m)
const char * getPassName () const
bool runOnBasicBlock (llvm::BasicBlock &BB)

Private Member Functions

llvm::Value * lGetNotOperand (llvm::Value *v) const

Private Attributes

llvm::Function * notFunc
llvm::Function * andNotFuncs [2]

Static Private Attributes

static char ID = 0

Detailed Description

This pass does various peephole improvements to mask modification operations. In particular, it converts mask XORs with "all true" to calls to __not() and replaces operations like and(not(a), b) to __and_not1(a, b) (and similarly if the second operand has not applied to it...)

Definition at line 5512 of file cbackend.cpp.

Constructor & Destructor Documentation

◆ MaskOpsCleanupPass()

MaskOpsCleanupPass::MaskOpsCleanupPass ( llvm::Module *  m)

Definition at line 5514 of file cbackend.cpp.

Member Function Documentation

◆ getPassName()

const char* MaskOpsCleanupPass::getPassName ( ) const

Definition at line 5571 of file cbackend.cpp.

◆ lGetNotOperand()

llvm::Value * MaskOpsCleanupPass::lGetNotOperand ( llvm::Value *  v) const

Checks to see if the given value is the NOT of some other value. If so, it returns the operand of the NOT; otherwise returns NULL.

Definition at line 5609 of file cbackend.cpp.

◆ runOnBasicBlock()

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

Definition at line 5623 of file cbackend.cpp.

Member Data Documentation

◆ andNotFuncs

llvm::Function * MaskOpsCleanupPass::andNotFuncs[2]

Definition at line 5580 of file cbackend.cpp.

◆ ID

char MaskOpsCleanupPass::ID = 0

Definition at line 5582 of file cbackend.cpp.

◆ notFunc

llvm::Function* MaskOpsCleanupPass::notFunc

Definition at line 5580 of file cbackend.cpp.

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