David Neto
98290a243e
String literals must be quoted.
2015-10-26 12:52:01 -04:00
David Neto
affa696027
Fix some bugs in parsing literals.
...
- a single hyphen is a string, not a number.
- a string with more than one period is a string, not a number
- check for string overflow
Add some unit tests
2015-10-26 12:52:01 -04:00
Lei Zhang
5b73214223
Add GLSL std450 extended instruction 72-80.
2015-10-26 12:52:01 -04:00
Dejan Mircevski
afdbd2d303
Add std450 instructions 53-64.
2015-10-26 12:52:01 -04:00
Lei Zhang
3cb589639d
Add GLSL std450 extended instruction 65-71.
2015-10-26 12:52:01 -04:00
David Neto
4799482787
Fix spelling of SPV_OPERAND_TYPE_KERNEL_PROFILING_INFO
2015-10-26 12:52:01 -04:00
Lei Zhang
2d879b9334
Simplify macro names used for GLSL std450 extended instruction table.
2015-10-26 12:52:01 -04:00
Dejan Mircevski
c48fcce978
Add std450 instructions 49-52.
2015-10-26 12:52:01 -04:00
Lei Zhang
dca65b3f8c
Reformat GLSL std450 extended instruction table.
...
Also add test for Smoothstep.
2015-10-26 12:52:01 -04:00
Lei Zhang
e5ae7f677f
Add GLSL std450 instructions 35-48.
2015-10-26 12:52:01 -04:00
Dejan Mircevski
a5c171544b
Add std450 instructions 25-34.
2015-10-26 12:52:01 -04:00
Lei Zhang
8a37520908
Disassemble in the format of "<result-id> = <opcode> <operand>..".
2015-10-26 12:52:01 -04:00
Kenneth Benzie
31e482cdf5
Merge branch 'google-catch-up' into 'master'
...
Google changes during GitLab outage
These are the changes made by Google during the GitLab outage last week.
See merge request !9
2015-09-02 05:49:42 -04:00
Lei Zhang
abafd5e674
Only use '%' as variable name prefix.
...
Since now we can distinguish between def and use according to
the variable's location, there is no need to keep two variable
prefixes.
Also reformat tests to use the value generating instruction
format ("<result-id> = <opcode> <operand>..").
2015-08-24 15:05:11 -04:00
Lei Zhang
977e9bcfc6
Bugfix: report the correct location for wrong opcode.
...
Also add more tests for the "<result-id> = <opcode> <operand>.."
format.
2015-08-24 15:05:08 -04:00
Lei Zhang
ee87cc2a1e
Fix TextAdvance() problems involving whitespace around comment lines.
...
Fix the bug that TextAdvance() forgot to skip whitespace at the
beginning of the next line after a comment line.
Fix the bug that TextAdvanceLine() increase line number after going
over a character.
2015-08-24 15:05:05 -04:00
Lei Zhang
dfc50086a6
Support "<result-id> = <opcode> <operand>.." format.
2015-08-24 15:04:58 -04:00
Andrew Woloszyn
0d350b5992
Make the disassembler print the Extended instruction name.
...
This allows the disassembled output to more closely follow the
original assembly.
2015-08-24 15:04:55 -04:00
Andrew Woloszyn
1d2a87ed1b
Added the initial set of glsl450 instructions.
...
Also rewrote the extended-instruction tests so that they would actually
make sure that the instruction actually appears in the output.
2015-08-24 15:04:49 -04:00
Lei Zhang
7e75158c7f
Address new enumerants in enum Capability for rev 31.
2015-08-18 09:49:04 -04:00
Lei Zhang
604e5cea12
Update spirv.h to revision 31.
...
For enum Capability and enum Op, not all newly added enumerants are
registered into capabilityInfoEntries and opcodeTableEntries yet.
That will come in following commits.
2015-08-17 11:40:24 -04:00
Lei Zhang
884c833889
Substitute GLSL450Lib.h with GLSL.std.450.h of revision 31.
2015-08-17 09:08:31 -04:00
Kenneth Benzie (Benie)
81d7d49a20
Change binary header generator word to Khronos
2015-06-01 09:50:46 -07:00
Kenneth Benzie (Benie)
83e5a29b06
Code drop of the Codeplay spirv-tools source.
...
This commit contains the source for the SPIRV static library, spirv-as,
spirv-dis, and spirv-val tools.
2015-05-22 18:26:19 +01:00