nir/range-analysis: C++ linkage

Fixes: 96303a59ea ("nir: Add some range analysis for used bits")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9123>
This commit is contained in:
Ian Romanick 2020-02-12 19:07:35 -08:00 committed by Marge Bot
parent cccac5e14f
commit ce649e54f1
1 changed files with 7 additions and 0 deletions

View File

@ -41,10 +41,17 @@ struct ssa_result_range {
bool is_integral;
};
#ifdef __cplusplus
extern "C" {
#endif
extern struct ssa_result_range
nir_analyze_range(struct hash_table *range_ht,
const nir_alu_instr *instr, unsigned src);
uint64_t nir_ssa_def_bits_used(nir_ssa_def *def);
#ifdef __cplusplus
}
#endif
#endif /* _NIR_RANGE_ANALYSIS_H_ */