Allow relaxing validation of pointers in logical addressing mode
authorLei Zhang <antiagainst@google.com>
Sun, 7 Jan 2018 15:50:01 +0000 (10:50 -0500)
committerDavid Neto <dneto@google.com>
Mon, 8 Jan 2018 15:36:23 +0000 (10:36 -0500)
commit44f27f928916f760314381c5a26924408653aca9
tree4cb792b5143e84e4bd659b7e3c5a5459b3966410
parente8ad02f3dde41d227319944f52cc850bcc077fb7
Allow relaxing validation of pointers in logical addressing mode

In HLSL structured buffer legalization, pointer to pointer types
are emitted to indicate a structured buffer variable should be
treated as an alias of some other variable. We need an option to
relax the check of pointer types in logical addressing mode to
catch other validation errors.
include/spirv-tools/libspirv.h
include/spirv-tools/libspirv.hpp
source/spirv_validator_options.cpp
source/spirv_validator_options.h
source/validate_id.cpp
test/val/val_id_test.cpp
tools/val/val.cpp