Searched defs:Fold (Results 1 - 4 of 4) sorted by relevance

/external/llvm/include/llvm/Analysis/
H A DTargetFolder.h35 /// Fold - Fold the constant using target specific information.
36 Constant *Fold(Constant *C) const { function in class:llvm::TargetFolder
52 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
55 return Fold(ConstantExpr::getFAdd(LHS, RHS));
59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
62 return Fold(ConstantExpr::getFSub(LHS, RHS));
66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
69 return Fold(ConstantExpr::getFMul(LHS, RHS));
72 return Fold(ConstantExp
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1123 Constant *Fold = nullptr; local
1129 Fold = ConstantExpr::getFDiv(C1, C2);
1132 Fold = ConstantExpr::getFMul(C1, C2);
1135 Fold = ConstantExpr::getFDiv(C1, C2);
1139 if (Fold && isNormalFp(Fold)) {
1140 Instruction *R = CreateDiv ? BinaryOperator::CreateFDiv(Fold, X)
1141 : BinaryOperator::CreateFMul(X, Fold);
/external/llvm/lib/Analysis/
H A DScalarEvolution.cpp836 // Fold if the operand is constant.
908 // Fold if the operand is constant.
1165 // Fold if the operand is constant.
1617 const SCEV *Fold = getAddExpr(LargeOps, Flags); variable
1619 if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold))
1620 return getTruncateExpr(Fold, DstType);
1695 // Fold W + X + (X * Y * Z) --> W + (X * ((Y*Z)+1))
1730 // Fold X + (A*B*C) + (A*D*E) --> X + (A*(B*C+D*E))
1940 ConstantInt *Fold
[all...]
/external/llvm/lib/TableGen/
H A DRecord.cpp717 Resolved = OResolved->Fold(&R, nullptr);
751 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:UnOpInit
859 return (UnOpInit::get(getOpcode(), lhs, getType()))->Fold(&R, nullptr);
860 return Fold(&R, nullptr);
891 Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:BinOpInit
983 return (BinOpInit::get(getOpcode(), lhs, rhs, getType()))->Fold(&R,nullptr);
984 return Fold(&R, nullptr);
1064 Init *NewVal = NewOp->Fold(CurRec, CurMultiClass);
1134 Init *NewItem = NewOp->Fold(CurRec, CurMultiClass);
1144 Init *TernOpInit::Fold(Recor function in class:TernOpInit
[all...]

Completed in 83 milliseconds