Home
last modified time | relevance | path

Searched refs:isCommutative (Results 1 – 25 of 40) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInlineAsm.cpp80 isCommutative = false; in Parse()
119 isCommutative) // Reject %%%%% in Parse()
121 isCommutative = true; in Parse()
H A DInstruction.cpp729 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
731 return II->isCommutative(); in isCommutative()
733 return isCommutative(getOpcode()); in isCommutative()
H A DInstructions.cpp2625 if (!isCommutative()) in swapOperands()
3654 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
3656 return IC->isCommutative(); in isCommutative()
3657 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
H A DConstantFold.cpp1370 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1509 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp75 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h115 bool isCommutative; member
H A DCodeGenTarget.cpp651 isCommutative = false; in CodeGenIntrinsic()
844 isCommutative = true; in setProperty()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstruction.h542 bool isCommutative() const LLVM_READONLY;
543 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h141 bool isCommutative = false; member
H A DIntrinsicInst.h58 bool isCommutative() const { in isCommutative() function
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSpeculateAroundPHIs.cpp273 if (UserI->isBinaryOp() && UserI->isCommutative() && Idx != 1) in isSafeAndProfitableToSpeculateAroundPHI()
690 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs()
H A DEarlyCSE.cpp216 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
296 if (II && II->isCommutative() && II->getNumArgOperands() == 2) { in getHashValueImpl()
341 if (!LHSBinOp->isCommutative()) in isEqualImpl()
366 LII->isCommutative() && LII->getNumArgOperands() == 2) { in isEqualImpl()
H A DReassociate.cpp224 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
460 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
2193 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp368 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DLoopRerollPass.cpp1399 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp174 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp240 static bool isCommutative(Instruction *I) { in isCommutative() function
242 return Cmp->isCommutative(); in isCommutative()
244 return BO->isCommutative(); in isCommutative()
1142 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1143 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
1316 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
3070 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
3119 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp377 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
439 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
552 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
609 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
1601 if (Inst.isCommutative() && in foldVectorBinop()
1708 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombineNegator.cpp125 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp441 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp622 if (IA->isCommutative() && !isa<FPMathOperator>(IA)) { in compareStructure()
H A DIVDescriptors.cpp321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp909 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dopover.d45 bool isCommutative(EXP op) in isCommutative() function
762 if (isCommutative(e.op) && !tiargs) in visitBin()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dopover.c42 bool isCommutative(TOK op) in isCommutative() function
742 if (isCommutative(e->op) && !tiargs) in op_overload()

12