diff options
author | Jason Ekstrand <[email protected]> | 2016-06-02 14:32:56 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-06-03 19:29:28 -0700 |
commit | ed14d21d04bf5d58cfadac525b8fd17552378507 (patch) | |
tree | c41d069ff812ce489a995600afc9c7d5a28d029f /src/compiler/spirv/vtn_private.h | |
parent | 2e46a5d1551854b98b0ca3c773a17f3ea5d2f7c6 (diff) |
nir/spirv: Add a way to print non-fatal warnings
Signed-off-by: Jason Ekstrand <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r-- | src/compiler/spirv/vtn_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h index 3ecffada2ba..7f5444ee875 100644 --- a/src/compiler/spirv/vtn_private.h +++ b/src/compiler/spirv/vtn_private.h @@ -417,6 +417,9 @@ vtn_value(struct vtn_builder *b, uint32_t value_id, return val; } +void _vtn_warn(const char *file, int line, const char *msg, ...); +#define vtn_warn(...) _vtn_warn(__FILE__, __LINE__, __VA_ARGS__) + struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id); struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b, |