Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInlineAsm.cpp94 isCommutative = false; in Parse()
136 isCommutative) // Reject %%%%% in Parse()
138 isCommutative = true; in Parse()
H A DInstruction.cpp1203 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
1205 return II->isCommutative(); in isCommutative()
1207 return isCommutative(getOpcode()); in isCommutative()
H A DConstantFold.cpp801 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
951 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
H A DInstructions.cpp2672 if (!isCommutative()) in swapOperands()
3480 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
3482 return IC->isCommutative(); in isCommutative()
3483 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/
H A DCodeGenIntrinsics.cpp64 isCommutative = false; in CodeGenIntrinsic()
182 isCommutative = true; in setProperty()
H A DCodeGenIntrinsics.h68 bool isCommutative; member
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h710 bool isCommutative() const LLVM_READONLY;
711 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h142 /// isCommutative - This is set to true for a constraint that is commutative
144 bool isCommutative = false;
143 bool isCommutative = false; global() member
H A DIntrinsicInst.h73 bool isCommutative() const { in isCommutative() function
H A DInstructions.h1226 bool isCommutative() const { return isEquality(); }
1353 bool isCommutative() const {
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp151 if (!Splat && Instruction::isCommutative(BO->getOpcode())) { in matchStridedStart()
272 Instruction::isCommutative(BO->getOpcode())) { in matchStridedRecurrence()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp241 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
318 if (II && II->isCommutative() && II->arg_size() >= 2) { in getHashValueImpl()
378 if (!LHSBinOp->isCommutative()) in isEqualImpl()
402 LII->isCommutative() && LII->arg_size() >= 2) { in isEqualImpl()
H A DReassociate.cpp238 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
388 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
2163 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp369 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DNewGVN.cpp1082 if (Instruction::isCommutative(Opcode)) { in createBinaryExpression()
1155 if (I->isCommutative()) { in createExpression()
1284 if (CI->isCommutative()) { in createCallExpression()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp166 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp353 static bool isCommutative(Instruction *I) { in isCommutative() function
355 return Cmp->isCommutative(); in isCommutative()
357 return BO->isCommutative() || in isCommutative()
383 return I->isCommutative(); in isCommutative()
1664 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1665 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
2157 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
6138 if (CI->isCommutative()) in generateKeySubkey()
6837 bool IsCommutative = isCommutative(S.MainOp) || isCommutative( in buildTree_rec()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp438 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp118 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
H A DInstructionCombining.cpp428 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
432 if (I.isCommutative()) { in SimplifyAssociativeOrCommutative()
498 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
612 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
678 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
2100 if (Inst.isCommutative() && in foldVectorBinop()
2209 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombinePHI.cpp1428 assert(BO->isCommutative() && "Must be commutative"); in foldDependentIVs()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp913 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp840 if (IA->isCommutative() && !isa<FPMathOperator>(IA) && in compareStructure()
H A DIVDescriptors.cpp366 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
H A DInstructionSimplify.cpp256 (Instruction::isCommutative(OpcodeToExpand) && L == B1 && R == B0)) { in expandBinOp()
344 if (!Instruction::isCommutative(Opcode)) in simplifyAssociativeBinOp()
454 if (Simplified->isCommutative() && in threadBinOpOverSelect()
627 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()

12