/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | NoFolder.h | 44 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 51 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd() 55 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd() 59 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd() 64 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 71 return BinaryOperator::CreateNSWSub(LHS, RHS); in CreateNSWSub() 75 return BinaryOperator::CreateNUWSub(LHS, RHS); in CreateNUWSub() 79 return BinaryOperator::CreateFSub(LHS, RHS); in CreateFSub() 84 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS); 91 return BinaryOperator::CreateNSWMul(LHS, RHS); in CreateNSWMul() [all …]
|
D | InstrTypes.h | 325 class BinaryOperator : public Instruction { 329 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 331 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 337 BinaryOperator *cloneImpl() const; 353 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 361 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 368 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 374 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 380 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 386 static BinaryOperator *CreateWithCopiedFlags(BinaryOps Opc, [all …]
|
D | Instruction.def | 128 HANDLE_BINARY_INST(11, Add , BinaryOperator) 129 HANDLE_BINARY_INST(12, FAdd , BinaryOperator) 130 HANDLE_BINARY_INST(13, Sub , BinaryOperator) 131 HANDLE_BINARY_INST(14, FSub , BinaryOperator) 132 HANDLE_BINARY_INST(15, Mul , BinaryOperator) 133 HANDLE_BINARY_INST(16, FMul , BinaryOperator) 134 HANDLE_BINARY_INST(17, UDiv , BinaryOperator) 135 HANDLE_BINARY_INST(18, SDiv , BinaryOperator) 136 HANDLE_BINARY_INST(19, FDiv , BinaryOperator) 137 HANDLE_BINARY_INST(20, URem , BinaryOperator) [all …]
|
/external/llvm/include/llvm/IR/ |
D | NoFolder.h | 42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS); 48 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd() 51 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd() 54 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd() 58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS); 64 return BinaryOperator::CreateNSWSub(LHS, RHS); in CreateNSWSub() 67 return BinaryOperator::CreateNUWSub(LHS, RHS); in CreateNUWSub() 70 return BinaryOperator::CreateFSub(LHS, RHS); in CreateFSub() 74 BinaryOperator *BO = BinaryOperator::CreateMul(LHS, RHS); 80 return BinaryOperator::CreateNSWMul(LHS, RHS); in CreateNSWMul() [all …]
|
D | Instruction.def | 124 HANDLE_BINARY_INST(11, Add , BinaryOperator) 125 HANDLE_BINARY_INST(12, FAdd , BinaryOperator) 126 HANDLE_BINARY_INST(13, Sub , BinaryOperator) 127 HANDLE_BINARY_INST(14, FSub , BinaryOperator) 128 HANDLE_BINARY_INST(15, Mul , BinaryOperator) 129 HANDLE_BINARY_INST(16, FMul , BinaryOperator) 130 HANDLE_BINARY_INST(17, UDiv , BinaryOperator) 131 HANDLE_BINARY_INST(18, SDiv , BinaryOperator) 132 HANDLE_BINARY_INST(19, FDiv , BinaryOperator) 133 HANDLE_BINARY_INST(20, URem , BinaryOperator) [all …]
|
D | InstrTypes.h | 328 class BinaryOperator : public Instruction { 333 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 335 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 340 BinaryOperator *cloneImpl() const; 356 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 364 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 371 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 377 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 383 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 389 static BinaryOperator *CreateWithCopiedFlags(BinaryOps Opc, [all …]
|
/external/clang/include/clang/AST/ |
D | StmtVisitor.h | 45 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) { in Visit() 47 case BO_PtrMemD: DISPATCH(BinPtrMemD, BinaryOperator); in Visit() 48 case BO_PtrMemI: DISPATCH(BinPtrMemI, BinaryOperator); in Visit() 49 case BO_Mul: DISPATCH(BinMul, BinaryOperator); in Visit() 50 case BO_Div: DISPATCH(BinDiv, BinaryOperator); in Visit() 51 case BO_Rem: DISPATCH(BinRem, BinaryOperator); in Visit() 52 case BO_Add: DISPATCH(BinAdd, BinaryOperator); in Visit() 53 case BO_Sub: DISPATCH(BinSub, BinaryOperator); in Visit() 54 case BO_Shl: DISPATCH(BinShl, BinaryOperator); in Visit() 55 case BO_Shr: DISPATCH(BinShr, BinaryOperator); in Visit() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineInternal.h | 82 if (isa<CastInst>(V) || BinaryOperator::isNeg(V) || in getComplexity() 83 BinaryOperator::isFNeg(V) || BinaryOperator::isNot(V)) in getComplexity() 141 if (BinaryOperator::isNot(V)) in IsFreeToInvert() 172 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(V)) in IsFreeToInvert() 220 BinaryOperator::BinaryOps Opcode, Constant *In, bool IsRHSConstant) { in getSafeVectorConstantForBinop() 341 Instruction *visitAdd(BinaryOperator &I); 342 Instruction *visitFAdd(BinaryOperator &I); 344 Instruction *visitSub(BinaryOperator &I); 345 Instruction *visitFSub(BinaryOperator &I); 346 Instruction *visitMul(BinaryOperator &I); [all …]
|
D | InstCombineMulDivRem.cpp | 70 BinaryOperator *I = dyn_cast<BinaryOperator>(V); in simplifyValueKnownNonZero() 128 Instruction *InstCombiner::visitMul(BinaryOperator &I) { in visitMul() 145 BinaryOperator *BO = BinaryOperator::CreateNeg(Op0, I.getName()); in visitMul() 161 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0)); in visitMul() 162 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul() 175 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() 208 BinaryOperator::CreateMul(Sub, in visitMul() 228 return BinaryOperator::CreateAdd(Builder.CreateMul(X, Op1), Mul); in visitMul() 236 return BinaryOperator::CreateMul(X, ConstantExpr::getNeg(Op1C)); in visitMul() 240 auto *NewMul = BinaryOperator::CreateMul(X, Y); in visitMul() [all …]
|
D | InstCombineShifts.cpp | 24 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) { in commonShiftTransforms() 49 return BinaryOperator::Create( in commonShiftTransforms() 195 static Value *foldShiftedShift(BinaryOperator *InnerShift, unsigned OuterShAmt, in foldShiftedShift() 291 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue() 315 static bool canShiftBinOpWithConstantRHS(BinaryOperator &Shift, in canShiftBinOpWithConstantRHS() 316 BinaryOperator *BO, in canShiftBinOpWithConstantRHS() 348 BinaryOperator &I) { in FoldShiftByConstant() 424 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() 450 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 464 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM); in FoldShiftByConstant() [all …]
|
D | InstCombineAddSub.cpp | 864 static Value *checkForNegativeOperand(BinaryOperator &I, in checkForNegativeOperand() 920 Instruction *InstCombiner::foldAddWithConstant(BinaryOperator &Add) { in foldAddWithConstant() 934 return BinaryOperator::CreateAdd(Builder.CreateNot(Y), X); in foldAddWithConstant() 943 return BinaryOperator::CreateSub(SubOne(Op1C), X); in foldAddWithConstant() 953 return BinaryOperator::CreateOr(Op0, Op1); in foldAddWithConstant() 957 return BinaryOperator::CreateXor(Op0, Op1); in foldAddWithConstant() 992 return BinaryOperator::CreateAnd(NotX, ConstantInt::get(Ty, 1)); in foldAddWithConstant() 1074 Value *InstCombiner::SimplifyAddWithRemainder(BinaryOperator &I) { in SimplifyAddWithRemainder() 1111 static Instruction *canonicalizeLowbitMask(BinaryOperator &I, in canonicalizeLowbitMask() 1120 if (auto *BOp = dyn_cast<BinaryOperator>(NotMask)) { in canonicalizeLowbitMask() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineInternal.h | 54 if (BinaryOperator::isNeg(V) || BinaryOperator::isFNeg(V) || in getComplexity() 55 BinaryOperator::isNot(V)) in getComplexity() 80 if (BinaryOperator::isNot(V)) in IsFreeToInvert() 94 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(V)) in IsFreeToInvert() 229 Instruction *visitAdd(BinaryOperator &I); 230 Instruction *visitFAdd(BinaryOperator &I); 232 Instruction *visitSub(BinaryOperator &I); 233 Instruction *visitFSub(BinaryOperator &I); 234 Instruction *visitMul(BinaryOperator &I); 237 Instruction *visitFMul(BinaryOperator &I); [all …]
|
D | InstCombineMulDivRem.cpp | 48 BinaryOperator *I = dyn_cast<BinaryOperator>(V); in simplifyValueKnownNonZero() 175 Instruction *InstCombiner::visitMul(BinaryOperator &I) { in visitMul() 190 BinaryOperator *BO = BinaryOperator::CreateNeg(Op0, I.getName()); in visitMul() 206 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0)); in visitMul() 207 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl); in visitMul() 228 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul() 261 BinaryOperator::CreateMul(Sub, in visitMul() 288 return BinaryOperator::CreateAdd(Builder->CreateMul(X, Op1), Mul); in visitMul() 295 BinaryOperator *BO = BinaryOperator::CreateMul(Op0v, Op1v); in visitMul() 308 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); in visitMul() [all …]
|
D | InstCombineShifts.cpp | 24 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) { in commonShiftTransforms() 218 BinaryOperator *BO = cast<BinaryOperator>(I); in GetShiftedValue() 262 BinaryOperator *BO = cast<BinaryOperator>(I); in GetShiftedValue() 323 BinaryOperator &I) { in FoldShiftByConstant() 356 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant() 359 return BinaryOperator::CreateMul(BO->getOperand(0), in FoldShiftByConstant() 415 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant() 441 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() 456 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM); in FoldShiftByConstant() 477 return BinaryOperator::CreateAnd(X, Mask); in FoldShiftByConstant() [all …]
|
D | InstCombineAndOrXor.cpp | 29 if (BinaryOperator::isNot(V)) { in dyn_castNotVal() 30 Value *Operand = BinaryOperator::getNotArgument(V); in dyn_castNotVal() 97 Value *InstCombiner::SimplifyBSwap(BinaryOperator &I) { in SimplifyBSwap() 153 BinaryOperator &TheAnd) { in OptAndOp() 165 return BinaryOperator::CreateXor(And, Together); in OptAndOp() 174 return BinaryOperator::CreateAnd(Or, AndRHS); in OptAndOp() 185 return BinaryOperator::CreateOr(And, OpRHS); in OptAndOp() 217 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp() 277 return BinaryOperator::CreateAnd(ShVal, AndRHS, TheAnd.getName()); in OptAndOp() 1151 static Instruction *matchDeMorgansLaws(BinaryOperator &I, in matchDeMorgansLaws() [all …]
|
D | InstCombineAddSub.cpp | 974 static Value *checkForNegativeOperand(BinaryOperator &I, in checkForNegativeOperand() 1030 Instruction *InstCombiner::visitAdd(BinaryOperator &I) { in visitAdd() 1049 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd() 1084 return BinaryOperator::CreateAShr(NewShl, ShAmt); in visitAdd() 1095 return BinaryOperator::CreateSub(ConstantExpr::getAdd(XorRHS, CI), in visitAdd() 1101 return BinaryOperator::CreateAdd(XorLHS, in visitAdd() 1111 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd() 1115 BinaryOperator *New = in visitAdd() 1116 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); in visitAdd() 1128 return BinaryOperator::CreateNeg(NewAdd); in visitAdd() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | IntegerDivision.h | 21 class BinaryOperator; variable 33 bool expandRemainder(BinaryOperator *Rem); 42 bool expandDivision(BinaryOperator* Div); 50 bool expandRemainderUpTo32Bits(BinaryOperator *Rem); 56 bool expandRemainderUpTo64Bits(BinaryOperator *Rem); 63 bool expandDivisionUpTo32Bits(BinaryOperator *Div); 69 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | IntegerDivision.h | 21 class BinaryOperator; variable 33 bool expandRemainder(BinaryOperator *Rem); 42 bool expandDivision(BinaryOperator* Div); 50 bool expandRemainderUpTo32Bits(BinaryOperator *Rem); 56 bool expandRemainderUpTo64Bits(BinaryOperator *Rem); 63 bool expandDivisionUpTo32Bits(BinaryOperator *Div); 69 bool expandDivisionUpTo64Bits(BinaryOperator *Div);
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 128 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { in isReassociableOp() 133 return cast<BinaryOperator>(V); in isReassociableOp() 137 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1, in isReassociableOp() 144 return cast<BinaryOperator>(V); in isReassociableOp() 191 if (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I) && in getRank() 192 !BinaryOperator::isFNeg(I)) in getRank() 202 assert(isa<BinaryOperator>(I) && "Expected binary operator."); in canonicalizeOperands() 214 cast<BinaryOperator>(I)->swapOperands(); in canonicalizeOperands() 217 static BinaryOperator *CreateAdd(Value *S1, Value *S2, const Twine &Name, in CreateAdd() 220 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 147 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { in isReassociableOp() 151 return cast<BinaryOperator>(I); in isReassociableOp() 155 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1, in isReassociableOp() 161 return cast<BinaryOperator>(I); in isReassociableOp() 209 if (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I) && in getRank() 210 !BinaryOperator::isFNeg(I)) in getRank() 221 assert(isa<BinaryOperator>(I) && "Expected binary operator."); in canonicalizeOperands() 229 cast<BinaryOperator>(I)->swapOperands(); in canonicalizeOperands() 232 static BinaryOperator *CreateAdd(Value *S1, Value *S2, const Twine &Name, in CreateAdd() 235 return BinaryOperator::CreateAdd(S1, S2, Name, InsertBefore); in CreateAdd() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Instruction.def | 124 HANDLE_BINARY_INST(11, Add , BinaryOperator) 125 HANDLE_BINARY_INST(12, FAdd , BinaryOperator) 126 HANDLE_BINARY_INST(13, Sub , BinaryOperator) 127 HANDLE_BINARY_INST(14, FSub , BinaryOperator) 128 HANDLE_BINARY_INST(15, Mul , BinaryOperator) 129 HANDLE_BINARY_INST(16, FMul , BinaryOperator) 130 HANDLE_BINARY_INST(17, UDiv , BinaryOperator) 131 HANDLE_BINARY_INST(18, SDiv , BinaryOperator) 132 HANDLE_BINARY_INST(19, FDiv , BinaryOperator) 133 HANDLE_BINARY_INST(20, URem , BinaryOperator) [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IdenticalExprChecker.cpp | 49 bool VisitBinaryOperator(const BinaryOperator *B); 54 void reportIdenticalExpr(const BinaryOperator *B, bool CheckBitwise, 56 void checkBitwiseOrLogicalOp(const BinaryOperator *B, bool CheckBitwise); 57 void checkComparisonOp(const BinaryOperator *B); 61 void FindIdenticalExprVisitor::reportIdenticalExpr(const BinaryOperator *B, in reportIdenticalExpr() 78 void FindIdenticalExprVisitor::checkBitwiseOrLogicalOp(const BinaryOperator *B, in checkBitwiseOrLogicalOp() 89 while (const BinaryOperator *B2 = dyn_cast<BinaryOperator>(LHS)) { in checkBitwiseOrLogicalOp() 182 bool FindIdenticalExprVisitor::VisitBinaryOperator(const BinaryOperator *B) { in VisitBinaryOperator() 183 BinaryOperator::Opcode Op = B->getOpcode(); in VisitBinaryOperator() 185 if (BinaryOperator::isBitwiseOp(Op)) in VisitBinaryOperator() [all …]
|
/external/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 58 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<BinaryOperator>())); in TEST() 59 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>())); in TEST() 60 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>())); in TEST() 70 EXPECT_TRUE(DNT<BinaryOperator>().isSame( in TEST() 71 ASTNodeKind::getMostDerivedType(DNT<Expr>(), DNT<BinaryOperator>()))); in TEST() 72 EXPECT_TRUE(DNT<BinaryOperator>().isSame( in TEST() 73 ASTNodeKind::getMostDerivedType(DNT<BinaryOperator>(), DNT<Expr>()))); in TEST() 81 DNT<BinaryOperator>()).isNone()); in TEST() 86 DNT<Expr>(), DNT<BinaryOperator>()))); in TEST() 88 DNT<BinaryOperator>(), DNT<Expr>()))); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/ |
D | NaryReassociate.h | 90 class BinaryOperator; variable 140 Instruction *tryReassociateBinaryOp(BinaryOperator *I); 145 BinaryOperator *I); 148 BinaryOperator *I); 151 bool matchTernaryOp(BinaryOperator *I, Value *V, Value *&Op1, Value *&Op2); 154 const SCEV *getBinarySCEV(BinaryOperator *I, const SCEV *LHS,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 88 void simplifyIVRemainder(BinaryOperator *Rem, Value *IVOperand, 90 void replaceRemWithNumerator(BinaryOperator *Rem); 91 void replaceRemWithNumeratorOrZero(BinaryOperator *Rem); 92 void replaceSRemWithURem(BinaryOperator *Rem); 93 bool eliminateSDiv(BinaryOperator *SDiv); 94 bool strengthenOverflowingOperation(BinaryOperator *OBO, Value *IVOperand); 95 bool strengthenRightShift(BinaryOperator *BO, Value *IVOperand); 124 if (!isa<BinaryOperator>(IVOperand) in foldIVUser() 282 bool SimplifyIndvar::eliminateSDiv(BinaryOperator *SDiv) { in eliminateSDiv() 294 auto *UDiv = BinaryOperator::Create( in eliminateSDiv() [all …]
|