projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir/algebraic: Add helpers and a rule involving wrapping
[mesa.git]
/
src
/
compiler
/
nir
/
nir_search_helpers.h
diff --git
a/src/compiler/nir/nir_search_helpers.h
b/src/compiler/nir/nir_search_helpers.h
index acd53a4960d12017522e5aaebfea349073b717fb..658ed2b1d5bcebcfceaead72910bdc56e6c968ba 100644
(file)
--- a/
src/compiler/nir/nir_search_helpers.h
+++ b/
src/compiler/nir/nir_search_helpers.h
@@
-288,4
+288,16
@@
is_lower_half_zero(nir_alu_instr *instr, unsigned src,
return true;
}
+static inline bool
+no_signed_wrap(nir_alu_instr *instr)
+{
+ return instr->no_signed_wrap;
+}
+
+static inline bool
+no_unsigned_wrap(nir_alu_instr *instr)
+{
+ return instr->no_unsigned_wrap;
+}
+
#endif /* _NIR_SEARCH_ */