• Home
  • Raw
  • Download

Lines Matching full:constants

39             const std::vector<const analysis::Constant*>& constants)  in FoldExtractWithConstants()
41 const analysis::Constant* c = constants[kExtractCompositeIdInIdx]; in FoldExtractWithConstants()
66 const std::vector<const analysis::Constant*>& constants) in FoldVectorShuffleWithConstants()
69 const analysis::Constant* c1 = constants[0]; in FoldVectorShuffleWithConstants()
70 const analysis::Constant* c2 = constants[1]; in FoldVectorShuffleWithConstants()
122 const std::vector<const analysis::Constant*>& constants) in FoldVectorTimesScalar()
134 const analysis::Constant* c1 = constants[0]; in FoldVectorTimesScalar()
135 const analysis::Constant* c2 = constants[1]; in FoldVectorTimesScalar()
196 // Folds an OpCompositeConstruct where all of the inputs are constants to a in FoldCompositeWithConstants()
199 const std::vector<const analysis::Constant*>& constants) in FoldCompositeWithConstants()
208 for (uint32_t i = 0; i < constants.size(); ++i) { in FoldCompositeWithConstants()
209 const analysis::Constant* element_const = constants[i]; in FoldCompositeWithConstants()
234 // will be |type|. The input constants must also be of type |type|.
241 // will be |type|. The input constants must also be of type |type|.
249 // that is returned assumes that |constants| contains 1 entry. If they are
254 const std::vector<const analysis::Constant*>& constants) in FoldFPUnaryOp()
265 if (constants[0] == nullptr) { in FoldFPUnaryOp()
273 a_components = constants[0]->GetVectorComponents(const_mgr); in FoldFPUnaryOp()
291 return scalar_rule(result_type, constants[0], const_mgr); in FoldFPUnaryOp()
299 // that |constants| contains 2 entries. If they are not |nullptr|, then their
303 const std::vector<const analysis::Constant*>& constants) in FoldFPBinaryOp()
314 if (constants[0] == nullptr || constants[1] == nullptr) { in FoldFPBinaryOp()
323 a_components = constants[0]->GetVectorComponents(const_mgr); in FoldFPBinaryOp()
324 b_components = constants[1]->GetVectorComponents(const_mgr); in FoldFPBinaryOp()
343 return scalar_rule(result_type, constants[0], constants[1], const_mgr); in FoldFPBinaryOp()
528 // Folds an OpDot where all of the inputs are constants to a
532 const std::vector<const analysis::Constant*>& constants) in FoldOpDotWithConstants()
548 if (constants[i]) { in FoldOpDotWithConstants()
549 if (constants[i]->AsNullConstant() || in FoldOpDotWithConstants()
550 constants[i]->AsVectorConstant()->IsZero()) { in FoldOpDotWithConstants()
571 if (constants[0] == nullptr || constants[1] == nullptr) { in FoldOpDotWithConstants()
578 a_components = constants[0]->GetVectorComponents(const_mgr); in FoldOpDotWithConstants()
579 b_components = constants[1]->GetVectorComponents(const_mgr); in FoldOpDotWithConstants()
627 const std::vector<const analysis::Constant*>& constants) in FoldFClampFeedingCompare()
636 uint32_t non_const_idx = (constants[0] ? 1 : 0); in FoldFClampFeedingCompare()
661 if (constants[1] == nullptr && constants[0] == nullptr) { in FoldFClampFeedingCompare()
681 if (constants[0]) { in FoldFClampFeedingCompare()
683 if (constants[0]->GetValueAsDouble() < in FoldFClampFeedingCompare()
691 if (constants[0]->GetValueAsDouble() >= in FoldFClampFeedingCompare()
700 if (constants[1]) { in FoldFClampFeedingCompare()
703 constants[1]->GetValueAsDouble()) { in FoldFClampFeedingCompare()
712 constants[1]->GetValueAsDouble()) { in FoldFClampFeedingCompare()
724 if (constants[0]) { in FoldFClampFeedingCompare()
726 if (constants[0]->GetValueAsDouble() <= in FoldFClampFeedingCompare()
734 if (constants[0]->GetValueAsDouble() > in FoldFClampFeedingCompare()
743 if (constants[1]) { in FoldFClampFeedingCompare()
746 constants[1]->GetValueAsDouble()) { in FoldFClampFeedingCompare()
755 constants[1]->GetValueAsDouble()) { in FoldFClampFeedingCompare()