Searched refs:Fold (Results 1 - 9 of 9) sorted by relevance

/external/llvm/include/llvm/Support/
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/TableGen/
H A DRecord.cpp704 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...]
H A DTGParser.cpp912 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
973 ->Fold(CurRec, CurMultiClass);
980 ->Fold(CurRec, CurMultiClass);
1099 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,
1543 StringRecTy::get())->Fold(CurRec, CurMultiClass);
2300 StringRecTy::get())->Fold(DefProto, &MC),
2301 DefName, StringRecTy::get())->Fold(DefProto, &MC);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1047 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/Transforms/Utils/
H A DLoopUnroll.cpp407 if (BasicBlock *Fold = FoldBlockIntoPredecessor(Dest, LI, LPM))
408 std::replace(Latches.begin(), Latches.end(), Dest, Fold);
/external/llvm/include/llvm/TableGen/
H A DRecord.h865 // Fold - If possible, fold this to a simpler init. Return this if not
867 virtual Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const = 0;
917 // Fold - If possible, fold this to a simpler init. Return this if not
919 virtual Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const;
969 // Fold - If possible, fold this to a simpler init. Return this if not
971 virtual Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const;
1028 // Fold - If possible, fold this to a simpler init. Return this if not
1030 virtual Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const;
/external/llvm/lib/Analysis/
H A DScalarEvolution.cpp837 // 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/clang/lib/AST/
H A DExprConstant.cpp605 void Fold(EvalInfo &Info) { function in struct:__anon16030::FoldConstant
3800 FoldConstant Fold(Info);
3806 Fold.Fold(Info);
/external/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp1312 namespace Fold {

Completed in 248 milliseconds