Lines Matching refs:Constant
49 isSimpleEnoughValueToCommit(Constant *C,
50 SmallPtrSetImpl<Constant *> &SimpleConstants,
62 isSimpleEnoughValueToCommitHelper(Constant *C, in isSimpleEnoughValueToCommitHelper()
63 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommitHelper()
77 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) in isSimpleEnoughValueToCommitHelper()
117 isSimpleEnoughValueToCommit(Constant *C, in isSimpleEnoughValueToCommit()
118 SmallPtrSetImpl<Constant *> &SimpleConstants, in isSimpleEnoughValueToCommit()
132 static bool isSimpleEnoughPointerToCommit(Constant *C) { in isSimpleEnoughPointerToCommit()
178 static Constant *getInitializer(Constant *C) { in getInitializer()
185 Constant *Evaluator::ComputeLoadResult(Constant *P) { in ComputeLoadResult()
188 DenseMap<Constant*, Constant*>::const_iterator I = MutatedMemory.find(P); in ComputeLoadResult()
207 Constant *Val = getVal(CE->getOperand(0)); in ComputeLoadResult()
221 static Function *getFunction(Constant *C) { in getFunction()
233 SmallVector<Constant *, 8> &Formals) { in getCalleeWithFormalArgs() argument
248 SmallVector<Constant *, 8> &Formals) { in getFormalParams() argument
274 Constant *Evaluator::castCallResultIfNeeded(Value *CallExpr, Constant *RV) { in castCallResultIfNeeded()
295 Constant *InstResult = nullptr; in EvaluateBlock()
304 Constant *Ptr = getVal(SI->getOperand(1)); in EvaluateBlock()
317 Constant *Val = getVal(SI->getOperand(0)); in EvaluateBlock()
341 Constant *NewVal; in EvaluateBlock()
350 Constant *IdxZero = ConstantInt::get(IdxTy, 0, false); in EvaluateBlock()
351 Constant * const IdxList[] = {IdxZero, IdxZero}; in EvaluateBlock()
408 Constant *P = getVal(GEP->getOperand(0)); in EvaluateBlock()
409 SmallVector<Constant*, 8> GEPOps; in EvaluateBlock()
424 Constant *Ptr = getVal(LI->getOperand(0)); in EvaluateBlock()
475 Constant *Ptr = getVal(MSI->getDest()); in EvaluateBlock()
476 Constant *Val = getVal(MSI->getValue()); in EvaluateBlock()
477 Constant *DestVal = ComputeLoadResult(getVal(Ptr)); in EvaluateBlock()
535 SmallVector<Constant *, 8> Formals; in EvaluateBlock()
544 if (Constant *C = ConstantFoldCall(CS, Callee, Formals, TLI)) { in EvaluateBlock()
560 Constant *RetVal = nullptr; in EvaluateBlock()
645 bool Evaluator::EvaluateFunction(Function *F, Constant *&RetVal, in EvaluateFunction()
646 const SmallVectorImpl<Constant*> &ActualArgs) { in EvaluateFunction()