Home
last modified time | relevance | path

Searched refs:CreateSelect (Results 1 – 25 of 146) sorted by relevance

123456

/external/llvm/unittests/IR/
DPatternMatch.cpp76 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R))); in TEST_F()
82 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R))); in TEST_F()
88 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
92 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
96 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L))); in TEST_F()
102 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L))); in TEST_F()
115 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
121 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
127 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R))); in TEST_F()
131 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R))); in TEST_F()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp33 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
76 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
80 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
84 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
88 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
75 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
79 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
83 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
87 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
75 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
79 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
83 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
87 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
DScalarizer.cpp598 Res[I] = Builder.CreateSelect(Op0, Op1, Op2, in visitSelectInst()
606 Res[I] = Builder.CreateSelect(Op0, Op1, Op2, in visitSelectInst()
775 Res[I] = Builder.CreateSelect(ShouldReplace, NewElt, OldElt, in visitInsertElementInst()
809 Res = Builder.CreateSelect(ShouldExtract, Elt, Res, in visitExtractElementInst()
/external/llvm-project/llvm/unittests/IR/
DPatternMatch.cpp611 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R))); in TEST_F()
617 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R))); in TEST_F()
623 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
627 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
638 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L))); in TEST_F()
640 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), R, L))); in TEST_F()
646 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L))); in TEST_F()
648 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), R, L))); in TEST_F()
661 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
667 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp379 ExtRes = Builder.CreateSelect(I.getOperand(0), ExtOp1, ExtOp2); in promoteUniformOpToI32()
716 JQ = Builder.CreateSelect(CV, JQ, Builder.getInt32(0)); in expandDivRem24()
812 Value *ABS_RCP_LO = Builder.CreateSelect(RCP_HI_0_CC, NEG_RCP_LO, RCP_LO); in expandDivRem32()
825 Value *Tmp0 = Builder.CreateSelect(RCP_HI_0_CC, RCP_A_E, RCP_S_E); in expandDivRem32()
838 Value *Remainder_GE_Den = Builder.CreateSelect(Rem_GE_Den_CC, MinusOne, Zero); in expandDivRem32()
842 Value *Remainder_GE_Zero = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, in expandDivRem32()
858 Value *Div = Builder.CreateSelect(Tmp1_0_CC, Quotient, Quotient_A_One); in expandDivRem32()
861 Res = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, Div, Quotient_S_One); in expandDivRem32()
870 Value *Rem = Builder.CreateSelect(Tmp1_0_CC, Remainder, Remainder_S_Den); in expandDivRem32()
873 Res = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, Rem, Remainder_A_Den); in expandDivRem32()
DAMDGPUAtomicOptimizer.cpp278 return B.CreateSelect(Cond, LHS, RHS); in buildNonAtomicBinOp()
634 LaneOffset = B.CreateSelect(Cond, Identity, V); in optimizeAtomic()
/external/llvm-project/llvm/include/llvm/IR/
DFixedPointBuilder.h58 Result = B.CreateSelect(IsNegative, Rounded, Result); in Convert()
91 Result = B.CreateSelect(TooHigh, Max, Result, "satmax"); in Convert()
100 Result = B.CreateSelect(TooLow, Min, Result, "satmin"); in Convert()
214 B.CreateSelect(B.CreateICmpSLT(Result, Zero), Zero, Result, "satmin"); in CreateSub()
DIRBuilderFolder.h126 virtual Value *CreateSelect(Constant *C, Constant *True,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp67 return Builder->CreateSelect(Builder->CreateICmp(Pred, A, B), A, B); in generateMinMaxSelectPattern()
157 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
202 Value *NewSI = Builder->CreateSelect(SI.getCondition(), OtherOpT, in FoldSelectOpOp()
250 Value *NewSel = Builder->CreateSelect(SI.getCondition(), OOp, C); in FoldSelectIntoOp()
280 Value *NewSel = Builder->CreateSelect(SI.getCondition(), C, OOp); in FoldSelectIntoOp()
712 Value *NewSI = Builder->CreateSelect( in FoldSPFofSPF()
894 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1125 Builder->CreateSelect(Cmp, LHS, RHS), in visitSelectInst()
1169 Builder->CreateNot(Builder->CreateSelect(NewCmp, NewLHS, NewRHS)); in visitSelectInst()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp54 return Builder.CreateSelect(Builder.CreateICmp(Pred, A, B), A, B); in createMinMax()
312 Builder.CreateSelect(Cond, TI->getOperand(0), FI->getOperand(0), in foldSelectOpOp()
322 Value *NewSel = Builder.CreateSelect(Cond, X, Y, SI.getName() + ".v", &SI); in foldSelectOpOp()
372 Value *NewSI = Builder.CreateSelect(Cond, OtherOpT, OtherOpF, in foldSelectOpOp()
426 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C); in foldSelectIntoOp()
458 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp); in foldSelectIntoOp()
673 Value *NewSel = Builder.CreateSelect(Cond, Zero, OrC, "masksel", &Sel); in foldSetClearBits()
682 Value *NewSel = Builder.CreateSelect(Cond, OrC, Zero, "masksel", &Sel); in foldSetClearBits()
1365 Builder.CreateSelect(ShouldReplaceLow, ReplacementLow, X); in canonicalizeClampLike()
1674 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(), in foldSPFofSPF()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Ddynamic_update_slice_util.cc118 b->CreateSelect(b->CreateICmp(is_signed ? llvm::ICmpInst::ICMP_SGE in EmitDynamicUpdateSliceInPlaceImpl()
124 b->CreateSelect(b->CreateICmp(is_signed ? llvm::ICmpInst::ICMP_SLE in EmitDynamicUpdateSliceInPlaceImpl()
Dmath_ops.cc67 return b->CreateSelect(use_aprox, input, in EmitFastTanh()
Dllvm_util.cc99 return b->CreateSelect(cmp, lhs_value, rhs_value, name.data()); in EmitFloatMax()
104 return b->CreateSelect(sel_lhs, lhs_value, rhs_value, name.data()); in EmitFloatMax()
113 return b->CreateSelect(cmp, lhs_value, rhs_value, name.data()); in EmitFloatMin()
118 return b->CreateSelect(sel_lhs, lhs_value, rhs_value, name.data()); in EmitFloatMin()
Dtuple_ops.cc53 llvm::Value* src = b->CreateSelect(pred_cond, on_true, on_false); in EmitTupleSelect()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp429 ExtRes = Builder.CreateSelect(I.getOperand(0), ExtOp1, ExtOp2); in promoteUniformOpToI32()
643 Value *NewSelect = Builder.CreateSelect(Sel->getCondition(), in foldBinOpIntoSelect()
955 JQ = Builder.CreateSelect(CV, JQ, Builder.getInt32(0)); in expandDivRem24Impl()
1134 Q = Builder.CreateSelect(Cond, Builder.CreateAdd(Q, One), Q); in expandDivRem32()
1135 R = Builder.CreateSelect(Cond, Builder.CreateSub(R, Y), R); in expandDivRem32()
1141 Res = Builder.CreateSelect(Cond, Builder.CreateAdd(Q, One), Q); in expandDivRem32()
1143 Res = Builder.CreateSelect(Cond, Builder.CreateSub(R, Y), R); in expandDivRem32()
DAMDGPUAtomicOptimizer.cpp278 return B.CreateSelect(Cond, LHS, RHS); in buildNonAtomicBinOp()
638 LaneOffset = B.CreateSelect(Cond, Identity, V); in optimizeAtomic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp53 return Builder.CreateSelect(Builder.CreateICmp(Pred, A, B), A, B); in createMinMax()
330 Builder.CreateSelect(Cond, TI->getOperand(0), FI->getOperand(0), in foldSelectOpOp()
340 Value *NewSel = Builder.CreateSelect(Cond, X, Y, SI.getName() + ".v", &SI); in foldSelectOpOp()
394 Value *NewSI = Builder.CreateSelect(Cond, OtherOpT, OtherOpF, in foldSelectOpOp()
447 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C); in foldSelectIntoOp()
478 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp); in foldSelectIntoOp()
1314 Builder.CreateSelect(ShouldReplaceLow, ReplacementLow, X); in canonicalizeClampLike()
1622 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(), in foldSPFofSPF()
1731 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1908 Value *NewSel = Builder.CreateSelect(Cond, X, TruncCVal, "narrow", &Sel); in foldSelectExtConst()
[all …]
/external/llvm-project/polly/lib/CodeGen/
DIslExprBuilder.cpp223 V = Builder.CreateSelect(Cmp, V, OpV); in createOpNAry()
436 Builder.CreateSelect(isNegative, Sum2, LHS, "pexp.fdiv_q.3"); in createOpBin()
481 return Builder.CreateSelect(Cond, LHS, RHS); in createOpSelect()
DLoopGeneratorsKMP.cpp246 UB = Builder.CreateSelect(UBInRange, UB, AdjustedUB, "polly.indvar.UB"); in createSubFn()
271 NextUB = Builder.CreateSelect(NextUBOutOfBounds, AdjustedUB, NextUB, in createSubFn()
/external/llvm-project/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp968 Incr = Builder.CreateSelect(IsNeg, Builder.CreateNeg(Step), Step); in createCanonicalLoop()
969 Value *LB = Builder.CreateSelect(IsNeg, Stop, Start); in createCanonicalLoop()
970 Value *UB = Builder.CreateSelect(IsNeg, Start, Stop); in createCanonicalLoop()
989 CountIfLooping = Builder.CreateSelect(OneCmp, One, CountIfTwo); in createCanonicalLoop()
991 Value *TripCount = Builder.CreateSelect(ZeroCmp, Zero, CountIfLooping); in createCanonicalLoop()
/external/llvm-project/llvm/lib/Target/X86/
DX86InstCombineIntrinsic.cpp485 Arg0 = Builder.CreateSelect(Builder.CreateICmpSLT(Arg0, MinC), MinC, Arg0); in simplifyX86pack()
486 Arg1 = Builder.CreateSelect(Builder.CreateICmpSLT(Arg1, MinC), MinC, Arg1); in simplifyX86pack()
487 Arg0 = Builder.CreateSelect(Builder.CreateICmpSGT(Arg0, MaxC), MaxC, Arg0); in simplifyX86pack()
488 Arg1 = Builder.CreateSelect(Builder.CreateICmpSGT(Arg1, MaxC), MaxC, Arg1); in simplifyX86pack()
1273 V = IC.Builder.CreateSelect(Mask, V, Passthru); in instCombineIntrinsic()
1656 Value *Sel = IC.Builder.CreateSelect(BoolVec, CastOp1, CastOp0); in instCombineIntrinsic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp206 Load = Builder.CreateSelect(Mask, Load, PassThru); in lowerGather()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dvector_support_library.cc121 a = b_->CreateSelect(b_->CreateFCmpUGE(a, low_value), a, low_value); in Clamp()
122 a = b_->CreateSelect(b_->CreateFCmpULE(a, high_value), a, high_value); in Clamp()

123456