diff options
Diffstat (limited to 'compiler/optimizing/code_generator_utils.h')
-rw-r--r-- | compiler/optimizing/code_generator_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator_utils.h b/compiler/optimizing/code_generator_utils.h index a6b41c0588..64665adc15 100644 --- a/compiler/optimizing/code_generator_utils.h +++ b/compiler/optimizing/code_generator_utils.h @@ -40,6 +40,12 @@ template <typename T> T AbsOrMin(T value) { : std::abs(value); } +// Check whether the i-th operand of instr is non-negative. +bool HasNonNegativeInputAt(HInstruction* instr, size_t i); + +// Check whether the i-th operand of instr is non-negative or the minimum integer value. +bool HasNonNegativeOrMinIntInputAt(HInstruction* instr, size_t i); + } // namespace art #endif // ART_COMPILER_OPTIMIZING_CODE_GENERATOR_UTILS_H_ |