llvm::ConstantFoldInstruction

llvm-svn: 10787
This commit is contained in:
Chris Lattner 2004-01-12 18:25:56 +00:00
parent aecd3e8a10
commit c04cf98fb6
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,13 @@ bool doConstantPropagation(BasicBlock::iterator &I);
///
bool ConstantFoldTerminator(BasicBlock *BB);
/// ConstantFoldInstruction - Attempt to constant fold the specified
/// instruction. If successful, the constant result is returned, if not, null
/// is returned. Note that this function can only fail when attempting to fold
/// instructions like loads and stores, which have no constant expression form.
///
Constant *ConstantFoldInstruction(Instruction *I);
//===----------------------------------------------------------------------===//
// Local dead code elimination...