Home
last modified time | relevance | path

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

1234

/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/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DPatternMatch.cpp126 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R))); in TEST_F()
132 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R))); in TEST_F()
138 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
142 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
153 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L))); in TEST_F()
155 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), R, L))); in TEST_F()
161 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L))); in TEST_F()
163 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), R, L))); in TEST_F()
176 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R))); in TEST_F()
182 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R))); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLowerAtomic.cpp31 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
71 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
75 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
79 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
83 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
/external/swiftshader/third_party/llvm-7.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/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()
DScalarizer.cpp415 Res[I] = Builder.CreateSelect(Op0[I], Op1[I], Op2[I], in visitSelectInst()
420 Res[I] = Builder.CreateSelect(Op0, Op1[I], Op2[I], in visitSelectInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp362 ExtRes = Builder.CreateSelect(I.getOperand(0), ExtOp1, ExtOp2); in promoteUniformOpToI32()
586 JQ = Builder.CreateSelect(CV, JQ, Builder.getInt32(0)); in expandDivRem24()
682 Value *ABS_RCP_LO = Builder.CreateSelect(RCP_HI_0_CC, NEG_RCP_LO, RCP_LO); in expandDivRem32()
695 Value *Tmp0 = Builder.CreateSelect(RCP_HI_0_CC, RCP_A_E, RCP_S_E); in expandDivRem32()
708 Value *Remainder_GE_Den = Builder.CreateSelect(Rem_GE_Den_CC, MinusOne, Zero); in expandDivRem32()
712 Value *Remainder_GE_Zero = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, in expandDivRem32()
728 Value *Div = Builder.CreateSelect(Tmp1_0_CC, Quotient, Quotient_A_One); in expandDivRem32()
731 Res = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, Div, Quotient_S_One); in expandDivRem32()
740 Value *Rem = Builder.CreateSelect(Tmp1_0_CC, Remainder, Remainder_S_Den); in expandDivRem32()
743 Res = Builder.CreateSelect(Num_GE_Num_S_Rem_CC, Rem, Remainder_A_Den); in expandDivRem32()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp54 return Builder.CreateSelect(Builder.CreateICmp(Pred, A, B), A, B); in createMinMax()
302 Builder.CreateSelect(SI.getCondition(), TI->getOperand(0), in foldSelectOpOp()
347 Value *NewSI = Builder.CreateSelect(SI.getCondition(), OtherOpT, OtherOpF, in foldSelectOpOp()
397 Value *NewSel = Builder.CreateSelect(SI.getCondition(), OOp, C); in foldSelectIntoOp()
428 Value *NewSel = Builder.CreateSelect(SI.getCondition(), C, OOp); in foldSelectIntoOp()
636 Value *Max = Builder.CreateSelect(Builder.CreateICmp(Pred, A, B), A, B); in canonicalizeSaturatedSubtract()
1104 Builder.CreateSelect(SI->getCondition(), SI->getFalseValue(), in foldSPFofSPF()
1213 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1268 Value *NewSel = Builder.CreateSelect(Cond, X, TruncCVal, "narrow", &Sel); in foldSelectExtConst()
1366 NewSel = Builder.CreateSelect(Cond, A, B, "", &Sel); in foldSelectCmpBitcasts()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp170 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedLoad()
228 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedLoad()
420 Value *NewI = Builder.CreateSelect(Mask, VResult, Src0); in scalarizeMaskedGather()
479 Value *NewI = Builder.CreateSelect(Mask, Phi, Src0); in scalarizeMaskedGather()
DAtomicExpandPass.cpp520 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
523 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
526 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
529 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Ddynamic_update_slice_util.cc64 b->CreateSelect(b->CreateICmp(is_signed ? llvm::ICmpInst::ICMP_SGE in EmitDynamicUpdateSliceInPlaceImpl()
70 b->CreateSelect(b->CreateICmp(is_signed ? llvm::ICmpInst::ICMP_SLE in EmitDynamicUpdateSliceInPlaceImpl()
Dllvm_util.cc94 return b->CreateSelect(cmp, lhs_value, rhs_value); in EmitFloatMax()
99 return b->CreateSelect(sel_lhs, lhs_value, rhs_value); in EmitFloatMax()
107 return b->CreateSelect(cmp, lhs_value, rhs_value); in EmitFloatMin()
112 return b->CreateSelect(sel_lhs, lhs_value, rhs_value); in EmitFloatMin()
Dtuple_ops.cc66 b->CreateStore(b->CreateSelect(pred_cond, on_true_element, on_false_element, in EmitTupleSelect()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp137 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), in FoldSelectOpOp()
177 Value *NewSI = Builder->CreateSelect(SI.getCondition(), OtherOpT, in FoldSelectOpOp()
226 Value *NewSel = Builder->CreateSelect(SI.getCondition(), OOp, C); in FoldSelectIntoOp()
261 Value *NewSel = Builder->CreateSelect(SI.getCondition(), C, OOp); in FoldSelectIntoOp()
822 Builder->CreateSelect(CondVal, NewTrueOp, in visitSelectInst()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DConstantFolder.h207 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
DTargetFolder.h224 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
DNoFolder.h254 Instruction *CreateSelect(Constant *C, in CreateSelect() function
/external/llvm/include/llvm/IR/
DConstantFolder.h214 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantFolder.h246 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp298 return Builder.CreateSelect(NewOperands[0], NewOperands[1], NewOperands[2]); in remapConstantExpr()
/external/llvm/lib/CodeGen/
DAtomicExpandPass.cpp510 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
513 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
516 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
519 return Builder.CreateSelect(NewVal, Loaded, Inc, "new"); in performAtomicOp()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetFolder.h238 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
/external/llvm/include/llvm/Analysis/
DTargetFolder.h239 Constant *CreateSelect(Constant *C, Constant *True, Constant *False) const { in CreateSelect() function
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSimplifyCFG.cpp932 (Builder.CreateSelect(BI->getCondition(), BB1V, BB2V, in HoistThenElseCodeToIf()
1096 (Builder.CreateSelect(BrCond, FalseV, HInst, in SpeculativelyExecuteBB()
1100 (Builder.CreateSelect(BrCond, HInst, FalseV, in SpeculativelyExecuteBB()
1360 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode()
1445 TrueValue = Builder.CreateSelect(BrCond, TrueValue, in SimplifyCondBranchToTwoReturns()
1812 (Builder.CreateSelect(PBICond, PBIV, BIV, PBIV->getName()+".mux")); in SimplifyCondBranchToCondBranch()

1234