/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
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 …]
|
/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 …]
|
/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/lib/Transforms/InstCombine/ |
D | InstCombine.h | 42 if (BinaryOperator::isNeg(V) || in getComplexity() 43 BinaryOperator::isFNeg(V) || in getComplexity() 44 BinaryOperator::isNot(V)) in getComplexity() 105 Instruction *visitAdd(BinaryOperator &I); 106 Instruction *visitFAdd(BinaryOperator &I); 108 Instruction *visitSub(BinaryOperator &I); 109 Instruction *visitFSub(BinaryOperator &I); 110 Instruction *visitMul(BinaryOperator &I); 111 Instruction *visitFMul(BinaryOperator &I); 112 Instruction *visitURem(BinaryOperator &I); [all …]
|
D | InstCombineMulDivRem.cpp | 47 if (BinaryOperator *I = dyn_cast<BinaryOperator>(V)) in simplifyValueKnownNonZero() 99 Instruction *InstCombiner::visitMul(BinaryOperator &I) { in visitMul() 110 return BinaryOperator::CreateNeg(Op0, I.getName()); in visitMul() 115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0)) in visitMul() 118 return BinaryOperator::CreateMul(SI->getOperand(0), in visitMul() 124 BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, NewCst); in visitMul() 135 return BinaryOperator::CreateAdd(Add, Builder->CreateMul(C1, CI)); in visitMul() 156 BinaryOperator::CreateMul(Sub, in visitMul() 177 return BinaryOperator::CreateMul(Op0v, Op1v); in visitMul() 183 BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0); in visitMul() [all …]
|
D | InstCombineAddSub.cpp | 86 Instruction *InstCombiner::visitAdd(BinaryOperator &I) { in visitAdd() 102 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd() 137 return BinaryOperator::CreateAShr(NewShl, ShAmt); in visitAdd() 147 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd() 151 BinaryOperator *New = in visitAdd() 152 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); in visitAdd() 163 return BinaryOperator::CreateNeg(NewAdd); in visitAdd() 166 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd() 172 return BinaryOperator::CreateSub(LHS, V); in visitAdd() 178 return BinaryOperator::CreateMul(RHS, AddOne(C2)); in visitAdd() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | InstrTypes.h | 140 class BinaryOperator : public Instruction { 144 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 146 BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, 148 virtual BinaryOperator *clone_impl() const; 163 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 171 static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2, 178 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 184 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 190 static BinaryOperator *Create##OPC(Value *V1, Value *V2, \ 196 static BinaryOperator *CreateNSW(BinaryOps Opc, Value *V1, Value *V2, [all …]
|
D | Instruction.def | 109 HANDLE_BINARY_INST( 9, Add , BinaryOperator) 110 HANDLE_BINARY_INST(10, FAdd , BinaryOperator) 111 HANDLE_BINARY_INST(11, Sub , BinaryOperator) 112 HANDLE_BINARY_INST(12, FSub , BinaryOperator) 113 HANDLE_BINARY_INST(13, Mul , BinaryOperator) 114 HANDLE_BINARY_INST(14, FMul , BinaryOperator) 115 HANDLE_BINARY_INST(15, UDiv , BinaryOperator) 116 HANDLE_BINARY_INST(16, SDiv , BinaryOperator) 117 HANDLE_BINARY_INST(17, FDiv , BinaryOperator) 118 HANDLE_BINARY_INST(18, URem , BinaryOperator) [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 …]
|
/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 …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 95 Value *ReassociateExpression(BinaryOperator *I); 96 void RewriteExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops, 98 Value *OptimizeExpression(BinaryOperator *I, 101 void LinearizeExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops); 102 void LinearizeExpr(BinaryOperator *I); 119 if (!Op || !isa<BinaryOperator>(Op)) in RemoveDeadBinaryOp() 192 (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I))) in getRank() 203 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) { in isReassociableOp() 206 return cast<BinaryOperator>(V); in isReassociableOp() 216 Instruction *Res = BinaryOperator::CreateMul(Neg->getOperand(1), Cst, "",Neg); in LowerNegateToMultiply() [all …]
|
/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/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/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/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/unittests/Transforms/Utils/ |
D | Cloning.cpp | 54 BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V); in TEST_F() 55 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V); in TEST_F() 56 BinaryOperator *Mul = BinaryOperator::Create(Instruction::Mul, V, V); in TEST_F() 58 BinaryOperator *AddClone = this->clone(Add); in TEST_F() 59 BinaryOperator *SubClone = this->clone(Sub); in TEST_F() 60 BinaryOperator *MulClone = this->clone(Mul); in TEST_F() 137 BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V); in TEST_F()
|
/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 …]
|