Intel® Implicit SPMD Program Compiler (Intel® ISPC)  1.13.0
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
IsCompileTimeConstantPass Class Reference
Inheritance diagram for IsCompileTimeConstantPass:
Inheritance graph
[legend]
Collaboration diagram for IsCompileTimeConstantPass:
Collaboration graph
[legend]

Public Member Functions

 IsCompileTimeConstantPass (bool last=false)
 
llvm::StringRef getPassName () const
 
bool runOnBasicBlock (llvm::BasicBlock &BB)
 
bool runOnFunction (llvm::Function &F)
 

Public Attributes

bool isLastTry
 

Static Public Attributes

static char ID = 0
 

Detailed Description

LLVM IR implementations of target-specific functions may include calls to the functions "bool __is_compile_time_constant_*(...)"; these allow them to have specialied code paths for where the corresponding value is known at compile time. For masks, for example, this allows them to not incur the cost of a MOVMSK call at runtime to compute its value in cases where the mask value isn't known until runtime.

This pass resolves these calls into either 'true' or 'false' values so that later optimization passes can operate with these as constants.

See stdlib.m4 for a number of uses of this idiom.

Definition at line 4118 of file opt.cpp.

Constructor & Destructor Documentation

◆ IsCompileTimeConstantPass()

IsCompileTimeConstantPass::IsCompileTimeConstantPass ( bool  last = false)
inline

Definition at line 4121 of file opt.cpp.

Member Function Documentation

◆ getPassName()

llvm::StringRef IsCompileTimeConstantPass::getPassName ( ) const
inline

Definition at line 4123 of file opt.cpp.

◆ runOnBasicBlock()

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

◆ runOnFunction()

bool IsCompileTimeConstantPass::runOnFunction ( llvm::Function &  F)

Definition at line 4194 of file opt.cpp.

Member Data Documentation

◆ ID

char IsCompileTimeConstantPass::ID = 0
static

Definition at line 4120 of file opt.cpp.

◆ isLastTry

bool IsCompileTimeConstantPass::isLastTry

Definition at line 4127 of file opt.cpp.


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