| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | InlineAsm.cpp | 81 isCommutative = false; in Parse() 123 isCommutative) // Reject %%%%% in Parse() 125 isCommutative = true; in Parse()
|
| H A D | Instruction.cpp | 770 bool Instruction::isCommutative() const { in isCommutative() function in Instruction 772 return II->isCommutative(); in isCommutative() 774 return isCommutative(getOpcode()); in isCommutative()
|
| H A D | Instructions.cpp | 2856 if (!isCommutative()) in swapOperands() 3893 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst 3895 return IC->isCommutative(); in isCommutative() 3896 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
|
| H A D | ConstantFold.cpp | 1123 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction() 1271 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | LLVMIRIntrinsicGen.cpp | 163 bool isCommutative() const { in isCommutative() function in __anon725579a20111::LLVMIntrinsic 211 if (intr.isCommutative()) in emitIntrinsic()
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | CodeGenIntrinsics.h | 114 bool isCommutative; member
|
| H A D | CodeGenTarget.cpp | 671 isCommutative = false; in CodeGenIntrinsic() 862 isCommutative = true; in setProperty()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instruction.h | 540 bool isCommutative() const LLVM_READONLY; 541 static bool isCommutative(unsigned Opcode) {
|
| H A D | InlineAsm.h | 141 bool isCommutative = false; member
|
| H A D | IntrinsicInst.h | 59 bool isCommutative() const { in isCommutative() function
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | EarlyCSE.cpp | 211 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl() 291 if (II && II->isCommutative() && II->arg_size() == 2) { in getHashValueImpl() 336 if (!LHSBinOp->isCommutative()) in isEqualImpl() 361 LII->isCommutative() && LII->arg_size() == 2) { in isEqualImpl()
|
| H A D | Reassociate.cpp | 231 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands() 468 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree() 2221 if (I->isCommutative()) in OptimizeInst()
|
| H A D | TailRecursionElimination.cpp | 367 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
|
| H A D | LoopRerollPass.cpp | 1396 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.cpp | 90 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanSLP.cpp | 165 return Instruction::isCommutative( in areCommutative()
|
| H A D | SLPVectorizer.cpp | 276 static bool isCommutative(Instruction *I) { in isCommutative() function 278 return Cmp->isCommutative(); in isCommutative() 280 return BO->isCommutative(); in isCommutative() 1291 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec() 1292 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec() 1756 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL() 4513 if (CI->isCommutative()) in generateKeySubkey() 4663 bool IsCommutative = isCommutative(S.MainOp) || isCommutative(S.AltOp); in buildTree_rec() 5114 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec() 5163 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineNegator.cpp | 125 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
|
| H A D | InstructionCombining.cpp | 414 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative() 476 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative() 590 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft() 647 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization() 1725 if (Inst.isCommutative() && in foldVectorBinop() 1833 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
|
| H A D | InstCombineShifts.cpp | 971 if (Op0BO->isCommutative() && Y->hasOneUse() && in visitShl()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorLoopCarriedReuse.cpp | 438 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 907 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | IRSimilarityIdentifier.cpp | 797 if (IA->isCommutative() && !isa<FPMathOperator>(IA) && in compareStructure()
|
| H A D | IVDescriptors.cpp | 369 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
|
| H A D | InstructionSimplify.cpp | 256 (Instruction::isCommutative(OpcodeToExpand) && L == B1 && R == B0)) { in expandBinOp() 344 if (!Instruction::isCommutative(Opcode)) in simplifyAssociativeBinOp() 453 if (Simplified->isCommutative() && in threadBinOpOverSelect() 622 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()
|