Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Constant

24   class Constant;
33 /// ConstantFoldInstruction - Try to constant fold the specified instruction.
34 /// If successful, the constant result is returned, if not, null is returned.
35 /// Note that this fails if not all of the operands are constant. Otherwise,
37 /// and stores, which have no constant expression form.
38 Constant *ConstantFoldInstruction(Instruction *I, const TargetData *TD = 0);
40 /// ConstantFoldConstantExpression - Attempt to fold the constant expression
41 /// using the specified TargetData. If successful, the constant result is
43 Constant *ConstantFoldConstantExpression(const ConstantExpr *CE,
46 /// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
47 /// specified operands. If successful, the constant result is returned, if not,
49 /// fold instructions like loads and stores, which have no constant expression
52 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
53 ArrayRef<Constant *> Ops,
56 /// ConstantFoldCompareInstOperands - Attempt to constant fold a compare
58 /// returns a constant expression of the specified operands.
60 Constant *ConstantFoldCompareInstOperands(unsigned Predicate,
61 Constant *LHS, Constant *RHS,
64 /// ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue
65 /// instruction with the specified operands and indices. The constant result is
67 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
71 /// produce if it is constant and determinable. If this is not determinable,
73 Constant *ConstantFoldLoadFromConstPtr(Constant *C, const TargetData *TD = 0);
75 /// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a
76 /// getelementptr constantexpr, return the constant value being addressed by the
77 /// constant expression, or null if something is funny and we can't decide.
78 Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
84 /// ConstantFoldCall - Attempt to constant fold a call to the specified function
86 Constant *
87 ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands);