Searched refs:Fold (Results 1 - 10 of 10) 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/Target/R600/
H A DSIFoldOperands.cpp1 //===-- SIFoldOperands.cpp - Fold operands --- ----------------------------===//
43 return "SI Fold Operands";
79 "SI Fold Operands", false, false)
82 "SI Fold Operands", false, false)
106 static bool updateOperand(FoldCandidate &Fold, argument
108 MachineInstr *MI = Fold.UseMI;
109 MachineOperand &Old = MI->getOperand(Fold.UseOpNo);
112 if (Fold.isImm()) {
113 Old.ChangeToImmediate(Fold.ImmToFold);
117 MachineOperand *New = Fold
[all...]
/external/llvm/lib/TableGen/
H A DRecord.cpp730 Resolved = OResolved->Fold(&R, nullptr);
764 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:UnOpInit
872 return (UnOpInit::get(getOpcode(), lhs, getType()))->Fold(&R, nullptr);
873 return Fold(&R, nullptr);
904 Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:BinOpInit
1000 return (BinOpInit::get(getOpcode(), lhs, rhs, getType()))->Fold(&R,nullptr);
1001 return Fold(&R, nullptr);
1082 Init *NewVal = NewOp->Fold(CurRec, CurMultiClass);
1152 Init *NewItem = NewOp->Fold(CurRec, CurMultiClass);
1162 Init *TernOpInit::Fold(Recor function in class:TernOpInit
[all...]
H A DTGParser.cpp899 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec, CurMultiClass);
980 ->Fold(CurRec, CurMultiClass);
987 ->Fold(CurRec, CurMultiClass);
1108 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec,
1617 StringRecTy::get())->Fold(CurRec, CurMultiClass);
2387 StringRecTy::get())->Fold(DefProto, &MC),
2388 DefName, StringRecTy::get())->Fold(DefProto, &MC);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp1266 Constant *Fold = nullptr; local
1272 Fold = ConstantExpr::getFDiv(C1, C2);
1275 Fold = ConstantExpr::getFMul(C1, C2);
1278 Fold = ConstantExpr::getFDiv(C1, C2);
1282 if (Fold && isNormalFp(Fold)) {
1283 Instruction *R = CreateDiv ? BinaryOperator::CreateFDiv(Fold, X)
1284 : BinaryOperator::CreateFMul(X, Fold);
/external/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp476 if (BasicBlock *Fold = FoldBlockIntoPredecessor(Dest, LI, LPM,
478 std::replace(Latches.begin(), Latches.end(), Dest, Fold);
/external/llvm/include/llvm/TableGen/
H A DRecord.h875 // Fold - If possible, fold this to a simpler init. Return this if not
877 virtual Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const = 0;
927 // Fold - If possible, fold this to a simpler init. Return this if not
929 Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const override;
980 // Fold - If possible, fold this to a simpler init. Return this if not
982 Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const override;
1040 // Fold - If possible, fold this to a simpler init. Return this if not
1042 Init *Fold(Record *CurRec, MultiClass *CurMultiClass) const override;
/external/llvm/lib/Analysis/
H A DScalarEvolution.cpp1087 // Fold if the operand is constant.
1417 // Fold if the operand is constant.
1583 // Fold if the operand is constant.
2068 const SCEV *Fold = getAddExpr(LargeOps, Flags); variable
2070 if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold))
2071 return getTruncateExpr(Fold, DstType);
2146 // Fold W + X + (X * Y * Z) --> W + (X * ((Y*Z)+1))
2181 // Fold X + (A*B*C) + (A*D*E) --> X + (A*(B*C+D*E))
2398 ConstantInt *Fold
[all...]
/external/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp1376 namespace Fold {
/external/clang/lib/AST/
H A DExprConstant.cpp468 /// Fold the expression to a constant. Stop if we hit a side-effect that
4067 FoldConstant Fold(Info, IsBcpCall);
4069 Fold.keepDiagnostics();

Completed in 355 milliseconds