SPIRV-Tools/source
David Neto ac508b0d80 DiagnosticStream can convert to a stored error code
Use this to shorten error return code in the assembler.

For example, change this:

   if (error = something()) {
      diagnostic() << " Bad integer literal " << value;
      return SPV_ERROR_INVALID_VALUE;
   }

to this:

   if (error = something())
      return diagnostic() << " Bad integer literal " << value;

Also shorten code due to the fact that binaryEncodeU32 and
binaryCodeU64 can't fail (short of failure to expand a std::vector).
2015-10-26 12:55:33 -04:00
..
binary.cpp Added tracking to types and validated certain instructions. 2015-10-26 12:55:33 -04:00
binary.h Support strings with up to 65535 chars, and null. 2015-10-26 12:55:33 -04:00
bitwisecast.h Move bitwisecast.h to source/ and add include guard. 2015-10-26 12:55:33 -04:00
core_syntax_table.patch Update core instruction syntax to Rev32 2015-10-26 12:55:33 -04:00
diagnostic.cpp Refactored dynamic and static state out of text processing. 2015-10-26 12:55:33 -04:00
diagnostic.h DiagnosticStream can convert to a stored error code 2015-10-26 12:55:33 -04:00
ext_inst.cpp Update to Rev32 headers. Part 1. 2015-10-26 12:55:33 -04:00
ext_inst.h Code drop of the Codeplay spirv-tools source. 2015-05-22 18:26:19 +01:00
instruction.h Added tracking to types and validated certain instructions. 2015-10-26 12:55:33 -04:00
opcode.cpp Clarify handling of OperandImageOperands. 2015-10-26 12:55:33 -04:00
opcode.h Added tracking to types and validated certain instructions. 2015-10-26 12:55:33 -04:00
opcode.inc Update core instruction syntax to Rev32 2015-10-26 12:55:33 -04:00
operand.cpp Negative test for BuiltIn. 2015-10-26 12:55:33 -04:00
operand.h Simplify (and test) the alternate-parsing pattern. 2015-10-26 12:55:33 -04:00
print.cpp Code drop of the Codeplay spirv-tools source. 2015-05-22 18:26:19 +01:00
print.h Code drop of the Codeplay spirv-tools source. 2015-05-22 18:26:19 +01:00
text_handler.cpp DiagnosticStream can convert to a stored error code 2015-10-26 12:55:33 -04:00
text_handler.h DiagnosticStream can convert to a stored error code 2015-10-26 12:55:33 -04:00
text.cpp DiagnosticStream can convert to a stored error code 2015-10-26 12:55:33 -04:00
text.h Accept long UTF-8 Literal Strings 2015-10-26 12:55:33 -04:00
validate_id.cpp Support strings with up to 65535 chars, and null. 2015-10-26 12:55:33 -04:00
validate.cpp Support strings with up to 65535 chars, and null. 2015-10-26 12:55:33 -04:00
validate.h Support strings with up to 65535 chars, and null. 2015-10-26 12:55:33 -04:00