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

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h34 /// Fold - Fold the constant using target specific information.
35 Constant *Fold(Constant *C) const { function in class:llvm::TargetFolder
50 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
53 return Fold(ConstantExpr::getFAdd(LHS, RHS));
57 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
60 return Fold(ConstantExpr::getFSub(LHS, RHS));
64 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
67 return Fold(ConstantExpr::getFMul(LHS, RHS));
70 return Fold(ConstantExp
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp1 //===-- SIFoldOperands.cpp - Fold operands --- ----------------------------===//
115 StringRef getPassName() const override { return "SI Fold Operands"; }
126 "SI Fold Operands", false, false)
184 static bool updateOperand(FoldCandidate &Fold, argument
188 MachineInstr *MI = Fold.UseMI;
189 MachineOperand &Old = MI->getOperand(Fold.UseOpNo);
192 if (Fold.isImm()) {
195 AMDGPU::isInlinableLiteralV216(static_cast<uint16_t>(Fold.ImmToFold),
222 if (!isUInt<16>(Fold.ImmToFold)) {
223 if (!(Fold
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h791 // Fold - If possible, fold this to a simpler init. Return this if not
793 Init *Fold(Record *CurRec, bool IsFinal = false) const;
849 // Fold - If possible, fold this to a simpler init. Return this if not
851 Init *Fold(Record *CurRec) const;
907 // Fold - If possible, fold this to a simpler init. Return this if not
909 Init *Fold(Record *CurRec) const;
971 Init *Fold(Record *CurRec) const;
997 /// !foldl (a, b, expr, start, lst) - Fold over a list.
1021 // Fold - If possible, fold this to a simpler init. Return this if not
1023 Init *Fold(Recor
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DRecord.cpp712 Init *UnOpInit::Fold(Record *CurRec, bool IsFinal) const {
815 ->Fold(R.getCurrentRecord(), R.isFinal());
898 Init *BinOpInit::Fold(Record *CurRec) const {
1051 ->Fold(R.getCurrentRecord());
1164 Init *TernOpInit::Fold(Record *CurRec) const {
1279 ->Fold(R.getCurrentRecord());
1328 Init *FoldOpInit::Fold(Record *CurRec) const {
1354 ->Fold(R.getCurrentRecord());
1393 Init *IsAOpInit::Fold() const {
1416 return get(CheckType, NewExpr)->Fold();
[all...]
H A DTGParser.cpp126 NewName = BinOp->Fold(&CurRec);
1043 return (UnOpInit::get(Code, LHS, Type))->Fold(CurRec);
1070 return (IsAOpInit::get(Type, LHS))->Fold();
1286 RHS = (BinOpInit::get(Code, InitList.back(), RHS, Type))->Fold(CurRec);
1293 ->Fold(CurRec);
1407 ->Fold(CurRec);
1548 return (TernOpInit::get(Code, LHS, MHS, RHS, Type))->Fold(CurRec);
1677 ->Fold(CurRec);
1794 return CondOpInit::get(Case, Val, Type)->Fold(CurRec);
1922 return VarDefInit::get(Class, Args)->Fold();
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnrollAndJam.cpp548 BasicBlock *Fold = Dest->getUniquePredecessor(); local
550 // Don't remove BB and add Fold as they are the same BB
551 assert(Fold == BB);
552 (void)Fold;
H A DLoopUnroll.cpp884 BasicBlock *Fold = Dest->getUniquePredecessor(); local
886 // Dest has been folded into Fold. Update our worklists accordingly.
887 std::replace(Latches.begin(), Latches.end(), Dest, Fold);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp3127 if (SDValue Fold = DAG.FoldSetCC(VT, N0, N1, Cond, dl))
3128 return Fold;
3684 // Fold bit comparisons when we can.
3926 // Fold remainder of division by a constant.
3944 // Fold away ALL boolean setcc's.
5235 // Fold:
5423 SDValue Fold = local
5429 return Fold;
5442 Created.push_back(Fold.getNode());
5463 // from 'Fold', els
[all...]
H A DDAGCombiner.cpp5323 // Fold the AND away. NewLoad may get replaced immediately.
6577 /// stores. Fold it into a single store or a BSWAP and a store if the targets
6741 /// loads and combined by shifts and ors. Fold it into a single load or a load
7361 // Fold the constants, shifting the binop RHS by the shift amount.
8637 // Fold selects based on a setcc into other things, such as min/max/abs.
8966 // Fold (vselect (build_vector all_ones), N1, N2) -> N1
8969 // Fold (vselect (build_vector all_zeros), N1, N2) -> N2
9016 // Fold to a simpler select_cc
9971 // Fold (zext (and (trunc x), cst)) -> (and x, cst),
10187 // Fold (aex
20427 bool Fold = N2C && isNullConstant(N3) && N2C->getAPIntValue().isPowerOf2(); local
[all...]
H A DSelectionDAG.cpp4547 if (SDValue Fold = FoldConstantVectorArithmetic(Opcode, DL, VT, Ops))
4548 return Fold;
4948 // Fold one vector element.
5148 // Fold trivial token factors.
5478 // Fold a bunch of operators when the RHS is undef.
5645 // Fold bit_convert nodes from a type to themselves.
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp1276 // Fold if the operand is constant.
1652 // Fold if the operand is constant.
1958 // Fold if the operand is constant.
2540 const SCEV *Fold = getAddExpr(LargeOps, SCEV::FlagAnyWrap, Depth + 1); variable
2542 if (isa<SCEVConstant>(Fold) || isa<SCEVUnknown>(Fold))
2543 return getTruncateExpr(Fold, Ty);
2627 // Fold W + X + (X * Y * Z) --> W + (X * ((Y*Z)+1))
2663 // Fold X + (A*B*C) + (A*D*E) --> X + (A*(B*C+D*E))
2960 ConstantInt *Fold
[all...]
/freebsd-12-stable/contrib/gcc/config/arm/
H A Dieee754-df.S647 @ Fold them into lr.
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp897 /// Fold the expression to a constant. Stop if we hit a side-effect that
6810 FoldConstant Fold(Info, IsBcpCall);
6812 Fold.keepDiagnostics();
10289 FoldConstant Fold(Info, true);
10312 Fold.keepDiagnostics();
10607 IgnoreSideEffectsRAII Fold(Info);
H A DASTContext.cpp730 if (const auto *Fold = dyn_cast<CXXFoldExpr>(IDC))
731 CSE = cast<ConceptSpecializationExpr>(Fold->getLHS());
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp14999 // Fold to SHUFPD(VPERM2F128(V1, V2), VPERM2F128(V1, V2)).
23295 // Fold this packed shift into its first operand if ShiftAmt is 0.
23310 // Fold this packed vector shift into a build vector if SrcOp is a
[all...]

Completed in 715 milliseconds