Searched defs:Fold (Results 1 - 5 of 5) sorted by relevance
/external/llvm/lib/Target/AMDGPU/ |
H A D | SIFoldOperands.cpp | 1 //===-- SIFoldOperands.cpp - Fold operands --- ----------------------------===// 43 return "SI Fold Operands"; 80 "SI Fold Operands", false, false) 83 "SI Fold Operands", false, false) 107 static bool updateOperand(FoldCandidate &Fold, argument 109 MachineInstr *MI = Fold.UseMI; 110 MachineOperand &Old = MI->getOperand(Fold.UseOpNo); 113 if (Fold.isImm()) { 114 Old.ChangeToImmediate(Fold.ImmToFold); 118 MachineOperand *New = Fold [all...] |
/external/llvm/include/llvm/Analysis/ |
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 | 1276 Constant *Fold = nullptr; local 1282 Fold = ConstantExpr::getFDiv(C1, C2); 1285 Fold = ConstantExpr::getFMul(C1, C2); 1288 Fold = ConstantExpr::getFDiv(C1, C2); 1292 if (Fold && isNormalFp(Fold)) { 1293 Instruction *R = CreateDiv ? BinaryOperator::CreateFDiv(Fold, X) 1294 : BinaryOperator::CreateFMul(X, Fold);
|
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 1081 // Fold if the operand is constant. 1411 // Fold if the operand is constant. 1589 // Fold if the operand is constant. 2098 const SCEV *Fold = getAddExpr(LargeOps, Flags); variable 2100 if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold)) 2101 return getTruncateExpr(Fold, DstType); 2180 // Fold W + X + (X * Y * Z) --> W + (X * ((Y*Z)+1)) 2215 // Fold X + (A*B*C) + (A*D*E) --> X + (A*(B*C+D*E)) 2431 ConstantInt *Fold [all...] |
/external/llvm/lib/TableGen/ |
H A D | Record.cpp | 587 Resolved = OResolved->Fold(&R, nullptr); 617 Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:UnOpInit 719 return (UnOpInit::get(getOpcode(), lhs, getType()))->Fold(&R, nullptr); 720 return Fold(&R, nullptr); 751 Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { function in class:BinOpInit 847 return (BinOpInit::get(getOpcode(), lhs, rhs, getType()))->Fold(&R,nullptr); 848 return Fold(&R, nullptr); 918 Init *NewVal = NewOp->Fold(CurRec, CurMultiClass); 976 Init *NewItem = NewOp->Fold(CurRec, CurMultiClass); 985 Init *TernOpInit::Fold(Recor function in class:TernOpInit [all...] |
Completed in 92 milliseconds