/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 58 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel, in foldSelectBinOpIdentity() argument 64 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity() 79 if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO))) in foldSelectBinOpIdentity() 110 Sel.setOperand(IsEq ? 1 : 2, Y); in foldSelectBinOpIdentity() 111 return &Sel; in foldSelectBinOpIdentity() 123 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd() argument 126 if (!match(Sel.getTrueValue(), m_APInt(SelTC)) || in foldSelectICmpAnd() 127 !match(Sel.getFalseValue(), m_APInt(SelFC))) in foldSelectICmpAnd() 131 Type *SelType = Sel.getType(); in foldSelectICmpAnd() 902 static bool adjustMinMax(SelectInst &Sel, ICmpIns argument 999 canonicalizeMinMaxWithConstant(SelectInst &Sel, ICmpInst &Cmp, InstCombiner::BuilderTy &Builder) canonicalizeMinMaxWithConstant() argument 1043 canonicalizeAbsNabs(SelectInst &Sel, ICmpInst &Cmp, InstCombiner::BuilderTy &Builder) canonicalizeAbsNabs() argument 1151 foldSelectValueEquivalence(SelectInst &Sel, ICmpInst &Cmp, const SimplifyQuery &Q) foldSelectValueEquivalence() argument 1330 tryToReuseConstantFromSelectInComparison(SelectInst &Sel, ICmpInst &Cmp, InstCombiner::BuilderTy &Builder) tryToReuseConstantFromSelectInComparison() argument 1871 foldSelectExtConst(SelectInst &Sel) foldSelectExtConst() argument 1974 canonicalizeScalarSelectOfVecs( SelectInst &Sel, InstCombiner::BuilderTy &Builder) canonicalizeScalarSelectOfVecs() argument 1997 foldSelectCmpBitcasts(SelectInst &Sel, InstCombiner::BuilderTy &Builder) foldSelectCmpBitcasts() argument 2276 foldSelectRotate(SelectInst &Sel) foldSelectRotate() argument [all...] |
H A D | InstCombineCasts.cpp | 278 if (auto *Sel = dyn_cast<SelectInst>(Src)) { in commonCastTransforms() 283 auto *Cmp = dyn_cast<CmpInst>(Sel->getCondition()); in commonCastTransforms() 284 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType()) in commonCastTransforms() 285 if (Instruction *NV = FoldOpIntoSelect(CI, Sel)) { in commonCastTransforms() 286 replaceAllDbgUsesWith(*Sel, *NV, CI, DT); in commonCastTransforms() 1649 Value *Sel = Builder.CreateSelect(Cond, X, NarrowY, "narrow.sel", Op); in visitFPTrunc() local 1650 return replaceInstUsesWith(FPT, Sel); in visitFPTrunc() 1656 Value *Sel = Builder.CreateSelect(Cond, NarrowY, X, "narrow.sel", Op); in visitFPTrunc() local 1657 return replaceInstUsesWith(FPT, Sel); in visitFPTrunc() 2186 auto *Sel in foldBitCastSelect() [all...] |
H A D | InstCombineSimplifyDemanded.cpp | 1415 SelectInst *Sel = cast<SelectInst>(I); in SimplifyDemandedVectorElts() local 1416 if (Sel->getCondition()->getType()->isVectorTy()) { in SimplifyDemandedVectorElts() 1427 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
H A D | SIOptimizeExecMaskingPreRA.cpp | 239 auto *Sel = TRI->findReachingDef(SelReg, Op1->getSubReg(), *Cmp, MRI, LIS); in optimizeVcndVcmpPair() local 240 if (!Sel || Sel->getOpcode() != AMDGPU::V_CNDMASK_B32_e64) in optimizeVcndVcmpPair() 243 if (TII->hasModifiersSet(*Sel, AMDGPU::OpName::src0_modifiers) || in optimizeVcndVcmpPair() 244 TII->hasModifiersSet(*Sel, AMDGPU::OpName::src1_modifiers)) in optimizeVcndVcmpPair() 247 Op1 = TII->getNamedOperand(*Sel, AMDGPU::OpName::src0); in optimizeVcndVcmpPair() 248 Op2 = TII->getNamedOperand(*Sel, AMDGPU::OpName::src1); in optimizeVcndVcmpPair() 249 MachineOperand *CC = TII->getNamedOperand(*Sel, AMDGPU::OpName::src2); in optimizeVcndVcmpPair() 254 LLVM_DEBUG(dbgs() << "Folding sequence:\n\t" << *Sel << '\t' << *Cmp << '\t' in optimizeVcndVcmpPair() 284 LLVM_DEBUG(dbgs() << "Erasing: " << *Sel << '\ in optimizeVcndVcmpPair() [all...] |
H A D | R600EmitClauseMarkers.cpp | 114 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine() 115 // Sel is (512 + (kc_bank << 12) + ConstIndex) << 2 in getAccessedBankLine() 119 ((Sel >> 2) - 512) >> 12, // KC_BANK in getAccessedBankLine() 125 ((((Sel >> 2) - 512) & 4095) >> 5) << 1); in getAccessedBankLine() 145 unsigned Sel = Consts[i].second; in SubstituteKCacheBank() local 146 unsigned Chan = Sel & 3, Index = ((Sel >> 2) - 512) & 31; in SubstituteKCacheBank() 148 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank()
|
H A D | R600ISelLowering.h | 102 SDValue &Neg, SDValue &Abs, SDValue &Sel, SDValue &Imm,
|
H A D | R600ISelLowering.cpp | 2071 SDValue &Sel, SDValue &Imm, in FoldOperand() 2094 if (!Sel.getNode()) in FoldOperand() 2140 Sel = CstOffset; in FoldOperand() 2253 SDValue &Sel = (SelIdx > -1) ? Ops[SelIdx] : FakeOp; in PostISelFolding() local 2254 if (FoldOperand(Node, i, Src, Neg, Abs, Sel, FakeOp, DAG)) in PostISelFolding() 2295 SDValue &Sel = (SelIdx > -1) ? Ops[SelIdx] : FakeOp; in PostISelFolding() local 2297 if (FoldOperand(Node, i, Src, Neg, Abs, Sel, Imm, DAG)) in PostISelFolding() 2069 FoldOperand(SDNode *ParentNode, unsigned SrcIdx, SDValue &Src, SDValue &Neg, SDValue &Abs, SDValue &Sel, SDValue &Imm, SelectionDAG &DAG) const FoldOperand() argument
|
H A D | R600InstrInfo.cpp | 298 MachineOperand &Sel = in getSrcs() local 300 Result.push_back(std::make_pair(&MO, Sel.getImm())); in getSrcs() 321 MachineOperand &Sel = in getSrcs() local 323 Result.push_back(std::make_pair(&MO, Sel.getImm())); in getSrcs()
|
H A D | SIPeepholeSDWA.cpp | 225 static raw_ostream& operator<<(raw_ostream &OS, SdwaSel Sel) { in operator <<() argument 226 switch(Sel) { in operator <<()
|
H A D | SIISelLowering.cpp | 8306 uint32_t Sel = getConstantPermuteMask(Mask); in performAndCombine() local 8307 if (!Sel) in performAndCombine() 8311 Sel = (LHS.getConstantOperandVal(2) & Sel) | (~Sel & 0x0c0c0c0c); in performAndCombine() 8314 LHS.getOperand(1), DAG.getConstant(Sel, DL, MVT::i32)); in performAndCombine() 8429 uint32_t Sel = Mask | (LHSUsedLanes & 0x04040404); in performAndCombine() local 8434 DAG.getConstant(Sel, DL, MVT::i32)); in performAndCombine() 8478 uint32_t Sel = getConstantPermuteMask(N->getConstantOperandVal(1)); in performOrCombine() local 8479 if (!Sel) in performOrCombine() 8518 uint32_t Sel = LHSMask | RHSMask; performOrCombine() local [all...] |
H A D | AMDGPULegalizerInfo.cpp | 2230 auto Sel = B.buildSelect(S32, CmpRes, C1, C2, Flags); 2232 auto Mul0 = B.buildFMul(S32, RHS, Sel, Flags); 2240 B.buildFMul(Res, Sel, Mul1, Flags);
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | objc_sel_and_id.rs | 16 pub static mut selector: objc::runtime::Sel; 19 pub fn f(object: id, selector: objc::runtime::Sel); in f()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 1635 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(0))) { in setupPreSimplifier() 1637 Value *X = Sel->getTrueValue(), *Y = Sel->getFalseValue(); in setupPreSimplifier() 1639 return B.CreateSelect(Sel->getCondition(), in setupPreSimplifier() 1643 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(1))) { in setupPreSimplifier() 1646 Value *Y = Sel->getTrueValue(), *Z = Sel->getFalseValue(); in setupPreSimplifier() 1647 return B.CreateSelect(Sel->getCondition(), in setupPreSimplifier() 1657 SelectInst *Sel = dyn_cast<SelectInst>(I); in setupPreSimplifier() 1658 if (!Sel) in setupPreSimplifier() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 1675 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smax"); in visitSMaxExpr() local 1676 rememberInstruction(Sel); in visitSMaxExpr() 1677 LHS = Sel; in visitSMaxExpr() 1700 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "umax"); in visitUMaxExpr() local 1701 rememberInstruction(Sel); in visitUMaxExpr() 1702 LHS = Sel; in visitUMaxExpr() 1725 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smin"); in visitSMinExpr() local 1726 rememberInstruction(Sel); in visitSMinExpr() 1727 LHS = Sel; in visitSMinExpr() 1750 Value *Sel in visitUMinExpr() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 345 SelectInst *Sel = in replaceRemWithNumeratorOrZero() local 347 Rem->replaceAllUsesWith(Sel); in replaceRemWithNumeratorOrZero()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 2254 SelectInst *Sel = dyn_cast<SelectInst>(Cond->getOperand(1)); in OptimizeMax() 2255 if (!Sel || !Sel->hasOneUse()) return Cond; in OptimizeMax() 2264 if (IterationCount != SE.getSCEV(Sel)) return Cond; in OptimizeMax() 2316 if (AddOperator *BO = dyn_cast<AddOperator>(Sel->getOperand(1))) in OptimizeMax() 2320 if (AddOperator *BO = dyn_cast<AddOperator>(Sel->getOperand(2))) in OptimizeMax() 2326 } else if (SE.getSCEV(Sel->getOperand(1)) == MaxRHS) in OptimizeMax() 2327 NewRHS = Sel->getOperand(1); in OptimizeMax() 2328 else if (SE.getSCEV(Sel->getOperand(2)) == MaxRHS) in OptimizeMax() 2329 NewRHS = Sel in OptimizeMax() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
H A D | LoadStoreVectorizer.cpp | 729 if (const auto *Sel = dyn_cast<SelectInst>(ObjPtr)) { in getChainID() 736 return Sel->getCondition(); in getChainID()
|
H A D | LoopVectorize.cpp | 3773 Value *Sel = nullptr; 3776 assert(!Sel && "Reduction exit feeding two selects"); 3777 Sel = U; 3781 assert(Sel && "Reduction exit feeds no select"); 3782 VectorLoopValueMap.resetVectorValue(LoopExitInst, Part, Sel); 4271 Value *Sel = 4273 VectorLoopValueMap.setVectorValue(&I, Part, Sel); 4274 addMetadata(Sel, &I);
|
/third_party/vixl/test/aarch64/ |
H A D | test-assembler-sve-aarch64.cc | 1093 __ Sel(p7.VnB(), p12, p11.VnB(), p10.VnB()); 9375 __ Sel(z0.VnB(), p1, z0.VnB(), z10.VnB()); 9384 __ Sel(z1.VnH(), p1, z1.VnH(), z10.VnH()); 9391 __ Sel(z2.VnS(), p1, z2.VnS(), z10.VnS()); 9398 __ Sel(z3.VnD(), p1, z3.VnD(), z10.VnD()); 9406 __ Sel(z4.VnB(), p1, z4.VnB(), z10.VnB()); 9414 __ Sel(z5.VnS(), p1, z5.VnS(), z10.VnS()); 9422 __ Sel(z6.VnH(), p1, z6.VnH(), z10.VnH()); 10418 __ Sel(z3.VnB(), p1, z1.VnB(), z0.VnB()); 10426 __ Sel(z [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 2505 SelectInst *Sel = SelectInst::Create(C, True, False); in CreateSelect() 2509 Sel = addBranchMetadata(Sel, Prof, Unpred); in CreateSelect() 2511 if (isa<FPMathOperator>(Sel)) in CreateSelect() 2512 setFPAttrs(Sel, nullptr /* MDNode* */, FMF); in CreateSelect() 2513 return Insert(Sel, Name); in CreateSelect()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 6135 SDValue Sel; 6138 Sel = DAG.getSetCC(dl, SetCCVT, Src, Cst, ISD::SETLT, 6140 Chain = Sel.getValue(1); 6142 Sel = DAG.getSetCC(dl, SetCCVT, Src, Cst, ISD::SETLT); 6151 // Sel = Src < 0x8000000000000000 6152 // FltOfs = select Sel, 0, 0x8000000000000000 6153 // IntOfs = select Sel, 0, 0x8000000000000000 6157 SDValue FltOfs = DAG.getSelect(dl, SrcVT, Sel, 6159 Sel = DAG.getBoolExtOrTrunc(Sel, d [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | AMDGPUInstPrinter.cpp | 1503 unsigned Sel = MI->getOperand(OpNo).getImm(); in printRSel() local 1504 switch (Sel) { in printRSel()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 2344 SDValue Sel = Op.getOperand(0); in LowerXOR() local 2346 SDLoc dl(Sel); in LowerXOR() 2355 if (isOneConstant(Other) && isOverflowIntrOpRes(Sel)) { in LowerXOR() 2357 if (!DAG.getTargetLoweringInfo().isTypeLegal(Sel->getValueType(0))) in LowerXOR() 2364 std::tie(Value, Overflow) = getAArch64XALUOOp(CC, Sel.getValue(0), DAG); in LowerXOR() 2370 if (Sel.getOpcode() != ISD::SELECT_CC) in LowerXOR() 2371 std::swap(Sel, Other); in LowerXOR() 2372 if (Sel.getOpcode() != ISD::SELECT_CC) in LowerXOR() 2382 ISD::CondCode CC = cast<CondCodeSDNode>(Sel.getOperand(4))->get(); in LowerXOR() 2383 SDValue LHS = Sel in LowerXOR() 5142 SDValue Sel = LowerFCOPYSIGN() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingAccelerationStructuresTests.cpp | 3858 struct Sel { struct 3892 const uint32_t memIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkMemoryBarrier2KHR>::index::value; in makeDependency() 3893 const uint32_t bufIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkBufferMemoryBarrier2KHR>::index::value; in makeDependency() 3894 const uint32_t imgIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkImageMemoryBarrier2KHR>::index::value; in makeDependency() 3895 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkMemoryBarrier2KHR>::type memType; in makeDependency() 3896 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkBufferMemoryBarrier2KHR>::type bufType; in makeDependency() 3897 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkImageMemoryBarrier2KHR>::type imgType; in makeDependency()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingAccelerationStructuresTests.cpp | 3625 struct Sel { struct 3659 const uint32_t memIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkMemoryBarrier2KHR>::index::value; in makeDependency() 3660 const uint32_t bufIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkBufferMemoryBarrier2KHR>::index::value; in makeDependency() 3661 const uint32_t imgIndex = details::Sel<Barriers1, Barriers2, Barriers3, VkImageMemoryBarrier2KHR>::index::value; in makeDependency() 3662 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkMemoryBarrier2KHR>::type memType; in makeDependency() 3663 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkBufferMemoryBarrier2KHR>::type bufType; in makeDependency() 3664 typedef typename details::Sel<Barriers1, Barriers2, Barriers3, VkImageMemoryBarrier2KHR>::type imgType; in makeDependency()
|