mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 05:27:43 +00:00
llvm::ConstantFoldInstruction
llvm-svn: 10787
This commit is contained in:
parent
28e5347635
commit
98a45667fb
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user