Lines Matching refs:constants

76     const std::vector<const analysis::Constant*>& constants) {  in ConstInput()  argument
77 return constants[0] ? constants[0] : constants[1]; in ConstInput()
204 const std::vector<const analysis::Constant*>& constants) { in ReciprocalFDiv() argument
214 if (constants[1] != nullptr) { in ReciprocalFDiv()
217 constants[1]->AsVectorConstant()) { in ReciprocalFDiv()
225 const_mgr->GetConstant(constants[1]->type(), std::move(neg_ids)); in ReciprocalFDiv()
227 } else if (constants[1]->AsFloatConstant()) { in ReciprocalFDiv()
228 id = Reciprocal(const_mgr, constants[1]); in ReciprocalFDiv()
248 const std::vector<const analysis::Constant*>& constants) { in MergeNegateArithmetic() argument
250 (void)constants; in MergeNegateArithmetic()
282 const std::vector<const analysis::Constant*>& constants) { in MergeNegateMulDivArithmetic() argument
284 (void)constants; in MergeNegateMulDivArithmetic()
340 const std::vector<const analysis::Constant*>& constants) { in MergeNegateAddSubArithmetic() argument
342 (void)constants; in MergeNegateAddSubArithmetic()
572 const std::vector<const analysis::Constant*>& constants) { in MergeMulMulArithmetic() argument
584 const analysis::Constant* const_input1 = ConstInput(constants); in MergeMulMulArithmetic()
586 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeMulMulArithmetic()
624 const std::vector<const analysis::Constant*>& constants) { in MergeMulDivArithmetic() argument
650 const analysis::Constant* const_input1 = ConstInput(constants); in MergeMulDivArithmetic()
652 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeMulDivArithmetic()
698 const std::vector<const analysis::Constant*>& constants) { in MergeMulNegateArithmetic() argument
709 const analysis::Constant* const_input1 = ConstInput(constants); in MergeMulNegateArithmetic()
711 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeMulNegateArithmetic()
738 const std::vector<const analysis::Constant*>& constants) { in MergeDivDivArithmetic() argument
748 const analysis::Constant* const_input1 = ConstInput(constants); in MergeDivDivArithmetic()
750 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeDivDivArithmetic()
753 bool first_is_variable = constants[0] == nullptr; in MergeDivDivArithmetic()
809 const std::vector<const analysis::Constant*>& constants) { in MergeDivMulArithmetic() argument
836 const analysis::Constant* const_input1 = ConstInput(constants); in MergeDivMulArithmetic()
838 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeDivMulArithmetic()
841 bool first_is_variable = constants[0] == nullptr; in MergeDivMulArithmetic()
881 const std::vector<const analysis::Constant*>& constants) { in MergeDivNegateArithmetic() argument
893 const analysis::Constant* const_input1 = ConstInput(constants); in MergeDivNegateArithmetic()
895 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeDivNegateArithmetic()
899 bool first_is_variable = constants[0] == nullptr; in MergeDivNegateArithmetic()
926 const std::vector<const analysis::Constant*>& constants) { in MergeAddNegateArithmetic() argument
933 const analysis::Constant* const_input1 = ConstInput(constants); in MergeAddNegateArithmetic()
935 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeAddNegateArithmetic()
942 uint32_t const_id = constants[0] ? inst->GetSingleWordInOperand(0u) in MergeAddNegateArithmetic()
959 const std::vector<const analysis::Constant*>& constants) { in MergeSubNegateArithmetic() argument
970 const analysis::Constant* const_input1 = ConstInput(constants); in MergeSubNegateArithmetic()
972 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeSubNegateArithmetic()
981 if (constants[0] != nullptr) { in MergeSubNegateArithmetic()
1007 const std::vector<const analysis::Constant*>& constants) { in MergeAddAddArithmetic() argument
1018 const analysis::Constant* const_input1 = ConstInput(constants); in MergeAddAddArithmetic()
1020 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeAddAddArithmetic()
1054 const std::vector<const analysis::Constant*>& constants) { in MergeAddSubArithmetic() argument
1065 const analysis::Constant* const_input1 = ConstInput(constants); in MergeAddSubArithmetic()
1067 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeAddSubArithmetic()
1113 const std::vector<const analysis::Constant*>& constants) { in MergeSubAddArithmetic() argument
1124 const analysis::Constant* const_input1 = ConstInput(constants); in MergeSubAddArithmetic()
1126 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeSubAddArithmetic()
1142 if (constants[0] == nullptr) std::swap(const_input1, const_input2); in MergeSubAddArithmetic()
1149 if (constants[0] == nullptr) { in MergeSubAddArithmetic()
1178 const std::vector<const analysis::Constant*>& constants) { in MergeSubSubArithmetic() argument
1189 const analysis::Constant* const_input1 = ConstInput(constants); in MergeSubSubArithmetic()
1191 Instruction* other_inst = NonConstInput(context, constants[0], inst); in MergeSubSubArithmetic()
1210 } else if (constants[0] == nullptr) { in MergeSubSubArithmetic()
1218 if (constants[0] != nullptr && other_constants[0] != nullptr) { in MergeSubSubArithmetic()
1225 if ((constants[0] == nullptr) ^ (other_constants[0] == nullptr)) { in MergeSubSubArithmetic()
1244 const std::vector<const analysis::Constant*>& constants) { in IntMultipleBy1() argument
1247 if (constants[i] == nullptr) { in IntMultipleBy1()
1250 const analysis::IntConstant* int_constant = constants[i]->AsIntConstant(); in IntMultipleBy1()
1643 const std::vector<const analysis::Constant*>& constants) { in RedundantSelect() argument
1647 assert(constants.size() == 3); in RedundantSelect()
1657 } else if (constants[0]) { in RedundantSelect()
1658 const analysis::Type* type = constants[0]->type(); in RedundantSelect()
1662 if (constants[0]->AsNullConstant() || in RedundantSelect()
1663 !constants[0]->AsBoolConstant()->value()) { in RedundantSelect()
1671 if (constants[0]->AsNullConstant()) { in RedundantSelect()
1682 constants[0]->AsVectorConstant(); in RedundantSelect()
1759 const std::vector<const analysis::Constant*>& constants) { in RedundantFAdd() argument
1761 assert(constants.size() == 2); in RedundantFAdd()
1767 FloatConstantKind kind0 = getFloatConstantKind(constants[0]); in RedundantFAdd()
1768 FloatConstantKind kind1 = getFloatConstantKind(constants[1]); in RedundantFAdd()
1784 const std::vector<const analysis::Constant*>& constants) { in RedundantFSub() argument
1786 assert(constants.size() == 2); in RedundantFSub()
1792 FloatConstantKind kind0 = getFloatConstantKind(constants[0]); in RedundantFSub()
1793 FloatConstantKind kind1 = getFloatConstantKind(constants[1]); in RedundantFSub()
1815 const std::vector<const analysis::Constant*>& constants) { in RedundantFMul() argument
1817 assert(constants.size() == 2); in RedundantFMul()
1823 FloatConstantKind kind0 = getFloatConstantKind(constants[0]); in RedundantFMul()
1824 FloatConstantKind kind1 = getFloatConstantKind(constants[1]); in RedundantFMul()
1848 const std::vector<const analysis::Constant*>& constants) { in RedundantFDiv() argument
1850 assert(constants.size() == 2); in RedundantFDiv()
1856 FloatConstantKind kind0 = getFloatConstantKind(constants[0]); in RedundantFDiv()
1857 FloatConstantKind kind1 = getFloatConstantKind(constants[1]); in RedundantFDiv()
1879 const std::vector<const analysis::Constant*>& constants) { in RedundantFMix() argument
1893 assert(constants.size() == 5); in RedundantFMix()
1895 FloatConstantKind kind4 = getFloatConstantKind(constants[4]); in RedundantFMix()
1915 const std::vector<const analysis::Constant*>& constants) { in RedundantIAdd() argument
1920 if (constants[0] && constants[0]->IsZero()) { in RedundantIAdd()
1922 operand_type = constants[0]->type(); in RedundantIAdd()
1923 } else if (constants[1] && constants[1]->IsZero()) { in RedundantIAdd()
1925 operand_type = constants[1]->type(); in RedundantIAdd()
1947 const std::vector<const analysis::Constant*>& constants) { in DotProductDoingExtract() argument
1957 if (!constants[i]) { in DotProductDoingExtract()
1961 const analysis::Vector* vector_type = constants[i]->type()->AsVector(); in DotProductDoingExtract()
1972 components = constants[i]->GetVectorComponents(const_mgr); in DotProductDoingExtract()