Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Constant

24   class Constant;
34 /// ConstantFoldInstruction - Try to constant fold the specified instruction.
35 /// If successful, the constant result is returned, if not, null is returned.
36 /// Note that this fails if not all of the operands are constant. Otherwise,
38 /// and stores, which have no constant expression form.
39 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL,
42 /// ConstantFoldConstantExpression - Attempt to fold the constant expression
43 /// using the specified DataLayout. If successful, the constant result is
45 Constant *
49 /// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
50 /// specified operands. If successful, the constant result is returned, if not,
52 /// fold instructions like loads and stores, which have no constant expression
55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
56 ArrayRef<Constant *> Ops,
60 /// ConstantFoldCompareInstOperands - Attempt to constant fold a compare
62 /// returns a constant expression of the specified operands.
64 Constant *
65 ConstantFoldCompareInstOperands(unsigned Predicate, Constant *LHS,
66 Constant *RHS, const DataLayout &DL,
69 /// ConstantFoldInsertValueInstruction - Attempt to constant fold an insertvalue
70 /// instruction with the specified operands and indices. The constant result is
72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
75 /// \brief Attempt to constant fold an extractvalue instruction with the
76 /// specified operands and indices. The constant result is returned if
78 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
81 /// \brief Attempt to constant fold an extractelement instruction with the
82 /// specified operands and indices. The constant result is returned if
84 Constant *ConstantFoldExtractElementInstruction(Constant *Val, Constant *Idx);
87 /// produce if it is constant and determinable. If this is not determinable,
89 Constant *ConstantFoldLoadFromConstPtr(Constant *C, const DataLayout &DL);
91 /// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a
92 /// getelementptr constantexpr, return the constant value being addressed by the
93 /// constant expression, or null if something is funny and we can't decide.
94 Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
96 /// ConstantFoldLoadThroughGEPIndices - Given a constant and getelementptr
98 /// return the constant value being addressed by a virtual load, or null if
100 Constant *ConstantFoldLoadThroughGEPIndices(Constant *C,
101 ArrayRef<Constant*> Indices);
107 /// ConstantFoldCall - Attempt to constant fold a call to the specified function
109 Constant *ConstantFoldCall(Function *F, ArrayRef<Constant *> Operands,