Searched defs:Fold (Results 1 - 5 of 5) sorted by relevance
/external/llvm/include/llvm/Support/ |
H A D | TargetFolder.h | 35 /// 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 D | InstCombineMulDivRem.cpp | 1047 Constant *Fold = 0; local 1053 Fold = ConstantExpr::getFDiv(C1, C2); 1056 Fold = ConstantExpr::getFMul(C1, C2); 1059 Fold = ConstantExpr::getFDiv(C1, C2); 1063 if (Fold) { 1064 const APFloat &FoldC = cast<ConstantFP>(Fold)->getValueAPF(); 1067 BinaryOperator::CreateFDiv(Fold, X) : 1068 BinaryOperator::CreateFMul(X, Fold);
|
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 837 // Fold if the operand is constant. 909 // Fold if the operand is constant. 1167 // Fold if the operand is constant. 1587 const SCEV *Fold = getAddExpr(LargeOps, Flags); variable 1589 if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold)) 1590 return getTruncateExpr(Fold, DstType); 1665 // Fold W + X + (X * Y * Z) --> W + (X * ((Y*Z)+1)) 1700 // Fold X + (A*B*C) + (A*D*E) --> X + (A*(B*C+D*E)) 1910 ConstantInt *Fold [all...] |
/external/llvm/lib/TableGen/ |
H A D | Record.cpp | 704 Resolved = OResolved->Fold(&R, 0); 740 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:UnOpInit 854 return (UnOpInit::get(getOpcode(), lhs, getType()))->Fold(&R, 0); 855 return Fold(&R, 0); 887 Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:BinOpInit 967 return (BinOpInit::get(getOpcode(), lhs, rhs, getType()))->Fold(&R, 0); 968 return Fold(&R, 0); 1051 Init *NewVal = NewOp->Fold(CurRec, CurMultiClass); 1124 Init *NewItem = NewOp->Fold(CurRec, CurMultiClass); 1134 Init *TernOpInit::Fold(Recor function in class:TernOpInit [all...] |
/external/clang/lib/AST/ |
H A D | ExprConstant.cpp | 605 void Fold(EvalInfo &Info) { function in struct:__anon15117::FoldConstant 3800 FoldConstant Fold(Info); 3806 Fold.Fold(Info);
|
Completed in 116 milliseconds