Home
last modified time | relevance | path

Searched refs:CreateAnd (Results 1 – 25 of 73) sorted by relevance

123

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp137 BinOp = Builder->CreateAnd(NewLHS, NewRHS); in SimplifyBSwap()
163 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp()
174 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp()
183 Value *And = Builder->CreateAnd(X, Together); in OptAndOp()
215 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp()
277 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp()
724 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
735 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps()
741 Value *NewAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps()
742 Value *NewAnd2 = Builder->CreateAnd(A, NewAnd1); in foldLogOpOfMaskedICmps()
[all …]
DInstCombineShifts.cpp49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
241 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue()
283 V = IC.Builder->CreateAnd(I->getOperand(0), in GetShiftedValue()
405 Value *And = Builder->CreateAnd(NSh, in FoldShiftByConstant()
441 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
454 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
477 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant()
488 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
590 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
626 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
[all …]
DInstCombineSelect.cpp535 Value *And = Builder->CreateAnd(AShr, C2->getValue()-C1->getValue()); in visitSelectInstWithICmp()
584 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
588 V = Builder->CreateAnd(X, ~(*Y)); in visitSelectInstWithICmp()
931 return BinaryOperator::CreateAnd(NotCond, FalseVal); in visitSelectInst()
935 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
948 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
953 return BinaryOperator::CreateAnd(TrueVal, FalseVal); in visitSelectInst()
1200 Value *And = Builder->CreateAnd(CondVal, TrueSI->getCondition()); in visitSelectInst()
DInstCombineCasts.cpp517 Src = Builder->CreateAnd(Src, One); in visitTrunc()
571 return BinaryOperator::CreateAnd(NewTrunc, in visitTrunc()
687 Result = Builder->CreateAnd(Result, in transformZExtICmp()
880 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
902 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt()
908 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
914 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
944 return BinaryOperator::CreateAnd(X, ConstantExpr::getZExt(C, CI.getType())); in visitZExt()
952 return BinaryOperator::CreateXor(Builder->CreateAnd(X, ZC), ZC); in visitZExt()
DInstCombineCompares.cpp443 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal()
494 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal()
1420 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst()
1654 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1670 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1775 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1814 Value *NewAnd = Builder->CreateAnd(X, NewOr, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1896 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst()
2024 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
2048 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineAddSub.cpp999 Value *NewAnd = Builder->CreateAnd(Z, *C1); in checkForNegativeOperand()
1172 return BinaryOperator::CreateAnd(NewAdd, C2); in visitAdd()
1589 return BinaryOperator::CreateAnd(A, B); in visitSub()
1597 return BinaryOperator::CreateAnd( in visitSub()
1615 return BinaryOperator::CreateAnd(Op0, in visitSub()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineShifts.cpp47 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
234 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue()
274 V = IC.Builder->CreateAnd(I->getOperand(0), in GetShiftedValue()
393 Value *And = Builder->CreateAnd(NSh, in FoldShiftByConstant()
424 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant()
439 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
457 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant()
471 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
561 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
568 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
[all …]
DInstCombineAndOrXor.cpp207 Value *And = Builder->CreateAnd(X, AndRHS); in OptAndOp()
218 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp()
227 Value *And = Builder->CreateAnd(X, Together); in OptAndOp()
259 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp()
324 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp()
657 Value* newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
668 Value* newAnd = Builder->CreateAnd(A, newOr); in foldLogOpOfMaskedICmps()
674 Value* newAnd1 = Builder->CreateAnd(B, D); in foldLogOpOfMaskedICmps()
675 Value* newAnd = Builder->CreateAnd(A, newAnd1); in foldLogOpOfMaskedICmps()
711 Value *newAnd = Builder->CreateAnd(A, newOr1); in foldLogOpOfMaskedICmps()
[all …]
DInstCombineMulDivRem.cpp220 return BinaryOperator::CreateAnd(Op0, Op1); in visitMul()
248 return BinaryOperator::CreateAnd(V, OtherOp); in visitMul()
625 return BinaryOperator::CreateAnd(Op0, in visitURem()
633 return BinaryOperator::CreateAnd(Op0, Add); in visitURem()
641 Value *TrueAnd = Builder->CreateAnd(Op0, *C1-1, Op1->getName()+".t"); in visitURem()
642 Value *FalseAnd = Builder->CreateAnd(Op0, *C2-1, Op1->getName()+".f"); in visitURem()
DInstCombineCompares.cpp406 return BinaryOperator::CreateAnd(C1, C2); in FoldCmpLoadFromIndexedGlobal()
452 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V); in FoldCmpLoadFromIndexedGlobal()
982 Value *And = Builder->CreateAnd(Shr->getOperand(0), in FoldICmpShrCst()
1091 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1107 Builder->CreateAnd(Cast->getOperand(0), in visitICmpInstWithInstAndIntCst()
1197 Builder->CreateAnd(Shift->getOperand(0), NS, LHSI->getName()); in visitICmpInstWithInstAndIntCst()
1231 Op = BinaryOperator::CreateAnd(ICIP, ICIQ); in visitICmpInstWithInstAndIntCst()
1278 Builder->CreateAnd(LHSI->getOperand(0),Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
1293 Builder->CreateAnd(LHSI->getOperand(0), Mask, LHSI->getName()+".mask"); in visitICmpInstWithInstAndIntCst()
1808 return BinaryOperator::CreateAnd(Not, Op1); in visitICmpInst()
[all …]
DInstCombineCasts.cpp460 Src = Builder->CreateAnd(Src, One); in visitTrunc()
494 return BinaryOperator::CreateAnd(NewTrunc, in visitTrunc()
611 Result = Builder->CreateAnd(Result, in transformZExtICmp()
792 return BinaryOperator::CreateAnd(Res, C); in visitZExt()
814 Value *And = Builder->CreateAnd(A, AndConst, CSrc->getName()+".mask"); in visitZExt()
820 return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(), in visitZExt()
826 return BinaryOperator::CreateAnd(Trunc, in visitZExt()
857 BinaryOperator::CreateAnd(TI0, in visitZExt()
871 Value *NewAnd = Builder->CreateAnd(TI0, ZC); in visitZExt()
DInstCombineSelect.cpp471 Value *And = Builder->CreateAnd(AShr, C2->getValue()-C1->getValue()); in visitSelectInstWithICmp()
665 return BinaryOperator::CreateAnd(NotCond, FalseVal); in visitSelectInst()
669 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
681 return BinaryOperator::CreateAnd(CondVal, TrueVal); in visitSelectInst()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DIntrinsicLowering.cpp192 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
195 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
223 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP()
227 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP()
231 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP()
235 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP()
239 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
243 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP()
286 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP()
[all …]
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp192 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
195 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
223 Tmp7 = Builder.CreateAnd(Tmp7, in LowerBSWAP()
227 Tmp6 = Builder.CreateAnd(Tmp6, in LowerBSWAP()
231 Tmp5 = Builder.CreateAnd(Tmp5, in LowerBSWAP()
235 Tmp4 = Builder.CreateAnd(Tmp4, in LowerBSWAP()
239 Tmp3 = Builder.CreateAnd(Tmp3, in LowerBSWAP()
243 Tmp2 = Builder.CreateAnd(Tmp2, in LowerBSWAP()
282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1"); in LowerCTPOP()
286 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2"); in LowerCTPOP()
[all …]
DAtomicExpandPass.cpp501 return Builder.CreateAnd(Loaded, Inc, "new"); in performAtomicOp()
503 return Builder.CreateNot(Builder.CreateAnd(Loaded, Inc), "new"); in performAtomicOp()
615 Builder.CreateAnd(AddrInt, ~(uint64_t)(WordSize - 1)), WordPtrType, in createMaskInstrs()
618 Value *PtrLSB = Builder.CreateAnd(AddrInt, WordSize - 1, "PtrLSB"); in createMaskInstrs()
646 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
661 Value *NewVal_Masked = Builder.CreateAnd(NewVal, PMV.Mask); in performMaskedAtomicOp()
662 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
678 Value *Loaded_MaskOut = Builder.CreateAnd(Loaded, PMV.Inv_Mask); in performMaskedAtomicOp()
798 Value *InitLoaded_MaskOut = Builder.CreateAnd(InitLoaded, PMV.Inv_Mask); in expandPartwordCmpXchg()
833 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLowerAtomic.cpp59 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
62 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp64 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
67 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
DGuardWidening.cpp455 Result = BinaryOperator::CreateAnd(RC.getCheckInst(), Result, "", in widenCondCommon()
473 Result = BinaryOperator::CreateAnd(Cond0, Cond1, "wide.chk", InsertPt); in widenCondCommon()
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.cc74 ir_builder->CreateAnd( in EmitReducePrecisionFloat()
87 x_as_int = ir_builder->CreateAnd( in EmitReducePrecisionFloat()
116 llvm::Value* x_exponent = ir_builder->CreateAnd( in EmitReducePrecisionFloat()
126 llvm::Value* x_signed_zero = ir_builder->CreateAnd( in EmitReducePrecisionFloat()
450 auto result_i1 = ir_builder_->CreateAnd(equal_self, not_infinite); in EmitFloatUnaryOp()
804 return ir_builder_->CreateAnd( in EmitComplexBinaryOp()
1050 return ir_builder_->CreateAnd(lhs_value, rhs_value); in EmitIntegerBinaryOp()
1255 auto random = ir_builder_->CreateAnd( in MakeRngElementGenerator()
1590 llvm::Value* slice_intersection_in_bounds = ir_builder_->CreateAnd( in MakeElementGenerator()
1594 slice_intersection_in_bounds = ir_builder_->CreateAnd( in MakeElementGenerator()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DNoFolder.h137 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
138 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
DIRBuilder.h664 Value *CreateAnd(Value *LHS, Value *RHS, const Twine &Name = "") {
669 return Insert(Folder.CreateAnd(LC, RC), Name);
671 return Insert(BinaryOperator::CreateAnd(LHS, RHS), Name);
673 Value *CreateAnd(Value *LHS, const APInt &RHS, const Twine &Name = "") {
674 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
676 Value *CreateAnd(Value *LHS, uint64_t RHS, const Twine &Name = "") {
677 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
/external/llvm/include/llvm/IR/
DNoFolder.h137 Instruction *CreateAnd(Constant *LHS, Constant *RHS) const { in CreateAnd() function
138 return BinaryOperator::CreateAnd(LHS, RHS); in CreateAnd()
DIRBuilder.h952 Value *CreateAnd(Value *LHS, Value *RHS, const Twine &Name = "") {
957 return Insert(Folder.CreateAnd(LC, RC), Name);
959 return Insert(BinaryOperator::CreateAnd(LHS, RHS), Name);
961 Value *CreateAnd(Value *LHS, const APInt &RHS, const Twine &Name = "") {
962 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
964 Value *CreateAnd(Value *LHS, uint64_t RHS, const Twine &Name = "") {
965 return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
1791 Value *MaskedPtr = CreateAnd(PtrIntValue, Mask, "maskedptr");
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp946 IRB.CreateAnd(OffsetLong, ConstantInt::get(MS.IntptrTy, ~AndMask)); in getShadowPtrOffset()
983 OriginLong = IRB.CreateAnd(OriginLong, in getOriginPtr()
1440 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitAnd()
1441 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitAnd()
1442 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitAnd()
1462 Value *S1S2 = IRB.CreateAnd(S1, S2); in visitOr()
1463 Value *V1S2 = IRB.CreateAnd(V1, S2); in visitOr()
1464 Value *S1V2 = IRB.CreateAnd(S1, V2); in visitOr()
1714 IRB.CreateAnd(IRB.CreateICmpNE(Sc, Zero), in handleEqualityComparison()
1716 IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero)); in handleEqualityComparison()
[all …]
/external/llvm/lib/Transforms/IPO/
DLowerTypeTests.cpp302 B.CreateAnd(BitOffset, ConstantInt::get(BitsType, BitWidth - 1)); in createMaskedBitTest()
304 Value *MaskedBits = B.CreateAnd(Bits, BitMask); in createMaskedBitTest()
416 Value *ByteAndMask = B.CreateAnd(Byte, BAI->Mask); in createBitSetTest()

123