Searched refs:BinOp (Results 1 - 25 of 39) sorted by relevance

12

/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyLogical.h55 class BinOp : public LExpr { class in namespace:clang::threadSafety::lexpr
59 BinOp(LExpr *LHS, LExpr *RHS, Opcode Code) : LExpr(Code), LHS(LHS), RHS(RHS) {} function in class:clang::threadSafety::lexpr::BinOp
69 class And : public BinOp {
71 And(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::And) {}
76 class Or : public BinOp {
78 Or(LExpr *LHS, LExpr *RHS) : BinOp(LHS, RHS, LExpr::Or) {}
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Analysis/
H A DThreadSafetyLogical.cpp24 const auto LeftAndOperator = [=](const BinOp *A) {
28 const auto RightAndOperator = [=](const BinOp *A) {
34 const auto LeftOrOperator = [=](const BinOp *A) {
38 const auto RightOrOperator = [=](const BinOp *A) {
H A DConsumed.cpp491 void VisitBinaryOperator(const BinaryOperator *BinOp);
700 void ConsumedStmtVisitor::VisitBinaryOperator(const BinaryOperator *BinOp) { argument
701 switch (BinOp->getOpcode()) {
704 InfoEntry LEntry = findInfo(BinOp->getLHS()),
705 REntry = findInfo(BinOp->getRHS());
726 PropagationMap.insert(PairType(BinOp, PropagationInfo(BinOp,
727 static_cast<EffectiveOp>(BinOp->getOpcode() == BO_LOr), LTest, RTest)));
734 forwardInfo(BinOp->getLHS(), BinOp);
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64AddressTypePromotion.cpp161 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst); local
162 if (BinOp && isa<OverflowingBinaryOperator>(BinOp) &&
163 (BinOp->hasNoUnsignedWrap() || BinOp->hasNoSignedWrap()))
457 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst); local
458 if (BinOp && isa<ConstantInt>(BinOp->getOperand(0)))
/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DCostModel.cpp158 static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp, argument
166 if (BinOp == nullptr)
169 assert(BinOp->getType()->isVectorTy() && "Expecting a vector type");
171 unsigned Opcode = BinOp->getOpcode();
172 Value *L = BinOp->getOperand(0);
173 Value *R = BinOp->getOperand(1);
202 // %BinOp = fadd %NextLevelOpL, %R
342 BinaryOperator *BinOp; local
343 if (!(BinOp = dyn_cast<BinaryOperator>(RdxOp)))
345 if (BinOp
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp94 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst)) {
95 Value *LHS = BinOp->getOperand(0);
96 Value *RHS = BinOp->getOperand(1);
97 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1))
100 if (isa<OverflowingBinaryOperator>(BinOp)) {
103 BinOp->hasNoSignedWrap() * OverflowingBinaryOperator::NoSignedWrap |
104 BinOp->hasNoUnsignedWrap() *
106 return hash_combine(BinOp
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp121 BinaryOperator *BinOp = cast<BinaryOperator>(FirstInst); local
123 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal);
582 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(FirstInst)) {
583 BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp);
584 if (isNUW) BinOp->setHasNoUnsignedWrap();
585 if (isNSW) BinOp->setHasNoSignedWrap();
586 if (isExact) BinOp->setIsExact();
587 BinOp->setDebugLoc(FirstInst->getDebugLoc());
588 return BinOp;
[all...]
H A DInstCombineAndOrXor.cpp146 Value *BinOp = nullptr; local
148 BinOp = Builder->CreateAnd(NewLHS, NewRHS);
150 BinOp = Builder->CreateOr(NewLHS, NewRHS);
152 BinOp = Builder->CreateXor(NewLHS, NewRHS);
155 return Builder->CreateCall(F, BinOp);
H A DInstCombineCompares.cpp2607 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(U); local
2608 if (!BinOp || BinOp->getOpcode() != Instruction::Sub)
2614 if (BinOp->getOperand(Op1Idx) == Op0) {
2618 if (BinOp->getOperand(Op1Idx) != Op1)
/freebsd-11.0-release/contrib/llvm/include/llvm/IR/
H A DConstantRange.h93 static ConstantRange makeNoWrapRegion(Instruction::BinaryOps BinOp,
H A DInstrTypes.h511 static const Value *getNegArgument(const Value *BinOp);
512 static Value *getNegArgument( Value *BinOp);
513 static const Value *getFNegArgument(const Value *BinOp);
514 static Value *getFNegArgument( Value *BinOp);
515 static const Value *getNotArgument(const Value *BinOp);
516 static Value *getNotArgument( Value *BinOp);
H A DIRBuilder.h999 llvm::Instruction *BinOp = BinaryOperator::Create(Opc, LHS, RHS);
1000 if (isa<FPMathOperator>(BinOp))
1001 BinOp = AddFPMathAttributes(BinOp, FPMathTag, FMF);
1002 return Insert(BinOp, Name);
1097 AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
H A DInstructions.h693 enum BinOp { enum in class:llvm::AtomicRMWInst
726 AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
729 AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
733 BinOp getOperation() const {
734 return static_cast<BinOp>(getSubclassDataFromInstruction() >> 5);
737 void setOperation(BinOp Operation) {
807 void Init(BinOp Operation, Value *Ptr, Value *Val,
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp880 if (auto *BinOp = dyn_cast<BinaryOperator>(S)) {
881 if (BinOp->getOpcode() == BO_Assign)
882 return BinOp->getRHS();
1012 const auto *BinOp = dyn_cast<BinaryOperator>(S); local
1017 const Stmt *NullabilitySource = BinOp ? BinOp->getRHS() : S;
1025 const Stmt *NullabilitySource = BinOp ? BinOp->getLHS() : S;
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtVisitor.h45 if (PTR(BinaryOperator) BinOp = dyn_cast<BinaryOperator>(S)) {
46 switch (BinOp->getOpcode()) {
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp48 BinaryOperator::Opcode Opcode; // Opcode of BinOp to perform
1612 BinOpInfo BinOp; local
1613 BinOp.LHS = InVal;
1614 BinOp.RHS = llvm::ConstantInt::get(InVal->getType(), 1, false);
1615 BinOp.Ty = E->getType();
1616 BinOp.Opcode = IsInc ? BO_Add : BO_Sub;
1617 BinOp.FPContractable = false;
1618 BinOp.E = E;
1619 return BinOp;
1673 llvm::AtomicRMWInst::BinOp ao
1867 BinOpInfo BinOp; local
[all...]
/freebsd-11.0-release/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp641 BinOpToken BinOp;
642 std::tie(BinOp, RemainingExpr) = parseBinOpToken(RemainingExpr);
645 if (BinOp == BinOpToken::Invalid)
658 EvalResult ThisResult(computeBinOpResult(BinOp, LHSResult, RHSResult));
/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DConstantRange.cpp130 ConstantRange ConstantRange::makeNoWrapRegion(Instruction::BinaryOps BinOp, argument
144 assert(BinOp >= Instruction::BinaryOpsBegin &&
145 BinOp < Instruction::BinaryOpsEnd && "Binary operators only!");
153 if (BinOp != Instruction::Add)
H A DInstructions.cpp1439 void AtomicRMWInst::Init(BinOp Operation, Value *Ptr, Value *Val,
1459 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
1470 AtomicRMWInst::AtomicRMWInst(BinOp Operation, Value *Ptr, Value *Val,
2126 Value *BinaryOperator::getNegArgument(Value *BinOp) {
2127 return cast<BinaryOperator>(BinOp)->getOperand(1);
2130 const Value *BinaryOperator::getNegArgument(const Value *BinOp) {
2131 return getNegArgument(const_cast<Value*>(BinOp));
2134 Value *BinaryOperator::getFNegArgument(Value *BinOp) {
2135 return cast<BinaryOperator>(BinOp)->getOperand(1);
2138 const Value *BinaryOperator::getFNegArgument(const Value *BinOp) {
[all...]
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp344 static Value *performAtomicOp(AtomicRMWInst::BinOp Op, IRBuilder<> &Builder,
600 AtomicRMWInst::BinOp Op = RMWI->getOperation();
H A DCodeGenPrepare.cpp2824 const BinaryOperator *BinOp = dyn_cast<BinaryOperator>(Inst); local
2825 if (BinOp && isa<OverflowingBinaryOperator>(BinOp) &&
2826 ((!IsSExt && BinOp->hasNoUnsignedWrap()) ||
2827 (IsSExt && BinOp->hasNoSignedWrap())))
5171 BinaryOperator *BinOp = dyn_cast<BinaryOperator>(I); local
5173 if (BinOp && (BinOp->getOpcode() == Instruction::AShr ||
5174 BinOp->getOpcode() == Instruction::LShr)) {
5175 ConstantInt *CI = dyn_cast<ConstantInt>(BinOp
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp9550 SDValue BinOp = BinOps.back(); local
9553 if (!Visited.insert(BinOp.getNode()).second)
9556 PromOps.push_back(BinOp);
9558 for (unsigned i = 0, ie = BinOp.getNumOperands(); i != ie; ++i) {
9560 if (BinOp.getOpcode() == ISD::SELECT && i == 0)
9562 if (BinOp.getOpcode() == ISD::SELECT_CC && i != 2 && i != 3)
9565 if (((BinOp.getOperand(i).getOpcode() == ISD::SIGN_EXTEND ||
9566 BinOp.getOperand(i).getOpcode() == ISD::ZERO_EXTEND ||
9567 BinOp.getOperand(i).getOpcode() == ISD::ANY_EXTEND) &&
9568 BinOp
9762 SDValue BinOp = BinOps.back(); local
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp2352 BinaryOperator *BinOp = cast<BinaryOperator>(VL0);
2353 Value *V = Builder.CreateBinOp(BinOp->getOpcode(), LHS, RHS);
4111 if (BinaryOperator *BinOp =
4113 if (canMatchHorizontalReduction(nullptr, BinOp, R, TTI) ||
4114 tryToVectorize(BinOp, R)) {
4125 if (BinaryOperator *BinOp =
4128 if (tryToVectorizePair(BinOp->getOperand(0),
4129 BinOp->getOperand(1), R)) {
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/AST/
H A DExpr.cpp3440 if (BinaryOperator *BinOp = dyn_cast<BinaryOperator>(E)) {
3441 if (BinOp->isAssignmentOp() && BinOp->getLHS())
3442 return BinOp->getLHS()->getSourceBitField();
3444 if (BinOp->getOpcode() == BO_Comma && BinOp->getRHS())
3445 return BinOp->getRHS()->getSourceBitField();
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaOpenMP.cpp5279 BinaryOperator *BinOp = nullptr;
5281 BinOp = dyn_cast<BinaryOperator>(First);
5282 IsUpdateExprFound = BinOp && BinOp->getOpcode() == BO_Assign;
5293 auto *PossibleX = BinOp->getRHS()->IgnoreParenImpCasts();
5299 V = BinOp->getLHS();
5309 BinOp = nullptr;
5311 BinOp = dyn_cast<BinaryOperator>(Second);
5312 IsUpdateExprFound = BinOp && BinOp
[all...]

Completed in 318 milliseconds

12