mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
add a new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -22,6 +22,7 @@ namespace llvm {
|
|||||||
class Pass;
|
class Pass;
|
||||||
class PHINode;
|
class PHINode;
|
||||||
class AllocaInst;
|
class AllocaInst;
|
||||||
|
class ConstantExpr;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Local constant propagation...
|
// Local constant propagation...
|
||||||
@@ -55,6 +56,10 @@ bool canConstantFoldCallTo(Function *F);
|
|||||||
/// with the specified arguments, returning null if unsuccessful.
|
/// with the specified arguments, returning null if unsuccessful.
|
||||||
Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
|
Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
|
||||||
|
|
||||||
|
/// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a
|
||||||
|
/// getelementptr constantexpr, return the constant value being addressed by the
|
||||||
|
/// constant expression, or null if something is funny and we can't decide.
|
||||||
|
Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Local dead code elimination...
|
// Local dead code elimination...
|
||||||
|
|||||||
Reference in New Issue
Block a user