1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Add new interfaces

llvm-svn: 12918
This commit is contained in:
Chris Lattner 2004-04-13 19:28:32 +00:00
parent 8c0e9c95e9
commit 2bf8038c69

View File

@ -47,6 +47,15 @@ bool ConstantFoldTerminator(BasicBlock *BB);
Constant *ConstantFoldInstruction(Instruction *I);
/// canConstantFoldCallTo - Return true if its even possible to fold a call to
/// the specified function.
bool canConstantFoldCallTo(Function *F);
/// ConstantFoldCall - Attempt to constant fold a call to the specified function
/// with the specified arguments, returning null if unsuccessful.
Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
//===----------------------------------------------------------------------===//
// Local dead code elimination...
//