Searched refs:BinaryOperator (Results 1 - 25 of 288) sorted by relevance

1234567891011>>

/external/llvm/include/llvm/Transforms/Utils/
H A DIntegerDivision.h21 class BinaryOperator;
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/include/llvm/Support/
H A DNoFolder.h42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
48 return BinaryOperator::CreateNSWAdd(LHS, RHS);
51 return BinaryOperator::CreateNUWAdd(LHS, RHS);
54 return BinaryOperator::CreateFAdd(LHS, RHS);
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
64 return BinaryOperator::CreateNSWSub(LHS, RHS);
67 return BinaryOperator::CreateNUWSub(LHS, RHS);
70 return BinaryOperator
[all...]
/external/llvm/include/llvm/IR/
H A DNoFolder.h42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
48 return BinaryOperator::CreateNSWAdd(LHS, RHS);
51 return BinaryOperator::CreateNUWAdd(LHS, RHS);
54 return BinaryOperator::CreateFAdd(LHS, RHS);
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
64 return BinaryOperator::CreateNSWSub(LHS, RHS);
67 return BinaryOperator::CreateNUWSub(LHS, RHS);
70 return BinaryOperator
[all...]
H A DInstrTypes.h325 // BinaryOperator Class
328 class BinaryOperator : public Instruction { class in namespace:llvm
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 *Creat
[all...]
/external/clang/include/clang/AST/
H A DStmtVisitor.h45 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) {
47 case BO_PtrMemD: DISPATCH(BinPtrMemD, BinaryOperator);
48 case BO_PtrMemI: DISPATCH(BinPtrMemI, BinaryOperator);
49 case BO_Mul: DISPATCH(BinMul, BinaryOperator);
50 case BO_Div: DISPATCH(BinDiv, BinaryOperator);
51 case BO_Rem: DISPATCH(BinRem, BinaryOperator);
52 case BO_Add: DISPATCH(BinAdd, BinaryOperator);
53 case BO_Sub: DISPATCH(BinSub, BinaryOperator);
54 case BO_Shl: DISPATCH(BinShl, BinaryOperator);
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombine.h42 if (BinaryOperator::isNeg(V) ||
43 BinaryOperator::isFNeg(V) ||
44 BinaryOperator::isNot(V))
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
[all...]
H A DInstCombineMulDivRem.cpp47 if (BinaryOperator *I = dyn_cast<BinaryOperator>(V))
99 Instruction *InstCombiner::visitMul(BinaryOperator &I) {
110 return BinaryOperator::CreateNeg(Op0, I.getName());
115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0))
118 return BinaryOperator::CreateMul(SI->getOperand(0),
124 BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, NewCst);
135 return BinaryOperator
[all...]
H A DInstCombineAddSub.cpp86 Instruction *InstCombiner::visitAdd(BinaryOperator &I) {
102 return BinaryOperator::CreateXor(LHS, RHS);
137 return BinaryOperator::CreateAShr(NewShl, ShAmt);
147 return BinaryOperator::CreateXor(LHS, RHS);
151 BinaryOperator *New =
152 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1));
163 return BinaryOperator::CreateNeg(NewAdd);
166 return BinaryOperator::CreateSub(RHS, LHSV);
172 return BinaryOperator::CreateSub(LHS, V);
178 return BinaryOperator
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DFixedAddressChecker.cpp27 : public Checker< check::PreStmt<BinaryOperator> > {
31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const;
35 void FixedAddressChecker::checkPreStmt(const BinaryOperator *B,
H A DUndefResultChecker.cpp29 : public Checker< check::PostStmt<BinaryOperator> > {
34 void checkPostStmt(const BinaryOperator *B, CheckerContext &C) const;
38 void UndefResultChecker::checkPostStmt(const BinaryOperator *B,
78 << BinaryOperator::getOpcodeStr(B->getOpcode())
84 << BinaryOperator::getOpcodeStr(B->getOpcode())
H A DDivZeroChecker.cpp25 class DivZeroChecker : public Checker< check::PreStmt<BinaryOperator> > {
31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const;
48 void DivZeroChecker::checkPreStmt(const BinaryOperator *B,
50 BinaryOperator::Opcode Op = B->getOpcode();
H A DPointerSubChecker.cpp27 : public Checker< check::PreStmt<BinaryOperator> > {
31 void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const;
35 void PointerSubChecker::checkPreStmt(const BinaryOperator *B,
H A DIdenticalExprChecker.cpp49 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,
78 void FindIdenticalExprVisitor::checkBitwiseOrLogicalOp(const BinaryOperator *B,
89 while (const BinaryOperator *B2 = dyn_cast<BinaryOperator>(LHS)) {
182 bool FindIdenticalExprVisitor::VisitBinaryOperator(const BinaryOperator *B) {
183 BinaryOperator
[all...]
H A DUndefinedAssignmentChecker.cpp63 if (const BinaryOperator *B = dyn_cast<BinaryOperator>(StoreE)) {
/external/llvm/unittests/IR/
H A DAsmWriterTest.cpp27 std::unique_ptr<BinaryOperator> Add(BinaryOperator::CreateAdd(Undef, Undef));
/external/swiftshader/third_party/LLVM/include/llvm/
H A DInstrTypes.h137 // BinaryOperator Class
140 class BinaryOperator : public Instruction { class in namespace:llvm
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 *Creat
[all...]
/external/swiftshader/third_party/LLVM/unittests/Transforms/Utils/
H A DCloning.cpp54 BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V);
55 BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V);
56 BinaryOperator *Mul = BinaryOperator::Create(Instruction::Mul, V, V);
58 BinaryOperator *AddClone = this->clone(Add);
59 BinaryOperator *SubClone = this->clone(Sub);
60 BinaryOperator *MulClone = this->clone(Mul);
137 BinaryOperator *SDi
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h54 if (BinaryOperator::isNeg(V) || BinaryOperator::isFNeg(V) ||
55 BinaryOperator::isNot(V))
80 if (BinaryOperator::isNot(V))
94 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(V))
229 Instruction *visitAdd(BinaryOperator &I);
230 Instruction *visitFAdd(BinaryOperator &I);
232 Instruction *visitSub(BinaryOperator &I);
233 Instruction *visitFSub(BinaryOperator
[all...]
H A DInstCombineMulDivRem.cpp48 BinaryOperator *I = dyn_cast<BinaryOperator>(V);
175 Instruction *InstCombiner::visitMul(BinaryOperator &I) {
190 BinaryOperator *BO = BinaryOperator::CreateNeg(Op0, I.getName());
206 BinaryOperator *Mul = cast<BinaryOperator>(I.getOperand(0));
207 BinaryOperator *BO = BinaryOperator::CreateMul(NewOp, Shl);
228 BinaryOperator *Sh
[all...]
H A DInstCombineShifts.cpp24 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) {
218 BinaryOperator *BO = cast<BinaryOperator>(I);
262 BinaryOperator *BO = cast<BinaryOperator>(I);
323 BinaryOperator &I) {
356 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0))
359 return BinaryOperator::CreateMul(BO->getOperand(0),
415 if (BinaryOperator *Op0B
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DReassociate.cpp95 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))
192 (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I)))
203 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) {
206 return cast<BinaryOperator>(
[all...]
/external/clang/unittests/AST/
H A DASTTypeTraitsTest.cpp58 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<BinaryOperator>()));
59 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>()));
60 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>()));
70 EXPECT_TRUE(DNT<BinaryOperator>().isSame(
71 ASTNodeKind::getMostDerivedType(DNT<Expr>(), DNT<BinaryOperator>())));
72 EXPECT_TRUE(DNT<BinaryOperator>().isSame(
73 ASTNodeKind::getMostDerivedType(DNT<BinaryOperator>(), DNT<Expr>())));
81 DNT<BinaryOperator>()).isNone());
86 DNT<Expr>(), DNT<BinaryOperator>())));
88 DNT<BinaryOperator>(), DN
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp128 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode) {
133 return cast<BinaryOperator>(V);
137 static BinaryOperator *isReassociableOp(Value *V, unsigned Opcode1,
144 return cast<BinaryOperator>(V);
191 if (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I) &&
192 !BinaryOperator::isFNeg(I))
202 assert(isa<BinaryOperator>(I) && "Expected binary operator.");
214 cast<BinaryOperator>(I)->swapOperands();
217 static BinaryOperator *CreateAd
[all...]
/external/llvm/include/llvm/Transforms/Scalar/
H A DReassociate.h71 void ReassociateExpression(BinaryOperator *I);
72 void RewriteExprTree(BinaryOperator *I,
74 Value *OptimizeExpression(BinaryOperator *I,
89 Value *OptimizeMul(BinaryOperator *I,
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp53 if (BinaryOperator::isComparisonOp(SSE->getOpcode())) {
143 BinaryOperator::Opcode op = SE->getOpcode();
144 if (BinaryOperator::isComparisonOp(op)) {
146 op = BinaryOperator::negateComparisonOp(op);
159 BinaryOperator::Opcode Op = SSE->getOpcode();
160 assert(BinaryOperator::isComparisonOp(Op));
170 Op = BinaryOperator::reverseComparisonOp(Op);
172 Op = BinaryOperator::negateComparisonOp(Op);
232 BinaryOperator::Opcode Op = SE->getOpcode();
248 BinaryOperator
[all...]

Completed in 989 milliseconds

1234567891011>>