• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Revision history for SPIRV-Tools
2
3v2021.1 2021-04-19
4 - General
5    - Support SPV_KHR_linkonce_odr, SPV_KHR_expect_assume (#4161)
6    - Fixes for the vscode language server extension (#4150)
7 - Validator
8    - Add validation for SPV_EXT_shader_atomic_float_min_max (#4105)
9    - Add Vulkan Execution Scope checks (#4183)
10    - Vulkan 64-bit OpAtomicStore check (#4163)
11 - Optimizer
12    - Add interpolate legalization pass (#4220)
13 - Fuzz
14    - Various performance optimizations
15    - Do not add too many dead blocks (#4217)
16    - Add WGSL compatibility flag to context (#4193)
17    - Add persistent state to the fuzzer (#4137)
18 - Debug Info
19 - Instrumentation
20 - Linker
21 - Reduce
22
23v2020.7 2021-02-16
24 - General
25    - Support pending Intel extensions (#4116)
26    - Remove WebGPU support (#4108)
27 - Validator
28    - Vulkan image gather constant component (#4133)
29    - Add Vulkan PSB64 convert VUID (#4122)
30    - Validate SPV_KHR_workgroup_memory_explicit_layout (#4128)
31    - Validate VK_KHR_zero_initialize_workgroup_memory (#4124)
32    - Add Vulkan image gather offset VUID (#4118)
33    - Label Vulkan atomic semantics VUIDs (#4120)
34    - Label VUID 04662 (#4123)
35    - Label VUID 04683 (#4121)
36    - Add Vulkan EXT builtins (#4115)
37    - Validate Sampled=1 for Vulkan ImageQuerySizeLod, ImageQueryLevels, ImageQueryLod (#4103)
38    - Add Vulkan Memory Scope VUs (#4106)
39    - Add Vulkan Addressing Model check (#4107)
40    - Vulkan atomic storage class (#4079)
41    - Label standalone Vulkan VUID (#4091)
42    - Add Vulkan decroation VUID (#4090)
43    - Add Vulkan FP Mode VUID (#4088)
44    - Fix Vulkan image sampled check (#4085)
45    - Add Vulkan ForwardPointer VUID (#4089)
46    - Add Vulkan ImageTexelPointer format check (#4087)
47    - Add Vulkan Group Operation VUID (#4086)
48    - Add first StandAlone VUID 04633 (#4077)
49    - Add Subgroup VUIDs (#4074)
50    - validate return type of OpImageRead (#4072)
51    - tighter validation of multisampled images (#4059)
52    - validate OpTypeImage Sampled values for environemnts (#4064)
53    - validate StorageImageMultisampled capability (#4062)
54    - Add last TessLevelOuter and TessLevelInner VUID (#4055)
55    - Add last ClipDistance and CullDistance VUID (#4054)
56    - Add last ViewportIndex and Layer VUID (#4053)
57    - Add last Position VUID (#4052)
58    - Allow forward pointer to be used in types generally (#4044)
59 - Optimizer
60    - Mark module as modified if convert-to-half removes decorations (#4127)
61    - Fix binding number calculation in desc sroa (#4095)
62    - Run DCE when SPV_KHR_shader_clock is used (#4049)
63 - Debug Info
64    - Set correct scope and line info for DebugValue (#4125)
65    - Avoid integrity check failures caused by propagating line instructions (#4096)
66 - Linker
67    - Linker usability improvements (#4084)
68 - Instrumentation
69    - Generate differentiated error codes for buffer oob checking (#4097)
70 - Fuzz
71    - Fix OpPhi handling in DuplicateRegionWithSelection (#4065)
72
73v2020.6 2020-12-07
74 - General
75    CMake: Add SPIRV_TOOLS_BUILD_STATIC flag (#3910)
76 - Disassembler
77    Add some context comments to disassembly. (#3847)
78 - Optimizer
79   - Take new (raytracing) termination instructions into account. (#4050)
80   - Do run DCE if SPV_KHR_ray_query is used. (#4047)
81   - Handle 8-bit index in elim dead member (#4043)
82   - Add texel buffer out-of-bounds checking instrumentation (#4038)
83   - Update MeshShadingNV dependencies (and land Ray tracing updates) (#4028)
84   - Fix buffer oob instrumentation for matrix refs (#4025)
85   - Fix SSA re-writing in the presence of variable pointers. (#4010)
86   - Add support to prevent functions from being inlined if they have
87     DontInline flag (#3858)
88   - Add SPV_EXT_shader_image_int64 (#3852)
89   - Support SPV_KHR_fragment_shading_rate (#3943)
90   - Fix use-after-move in val/validate.cpp (#3848)
91 - Debug Info
92   - properly preserve DebugValue indexes operand (#4022)
93   - Add DebugValue for invisible store in single_store_elim (#4002)
94   - Propagate OpLine to all applied instructions in spirv-opt (#3951)
95   - Add DebugValue for DebugDecl invisible to value assignment (#3973)
96   - Add DebugValue for function param regardless of scope (#3923)
97   - Debug info preservation in convert-local-access-chains pass (#3835)
98   - Debug info preservation in redundancy-elimination pass (#3839)
99   - Debug info preservation in if-conversion pass (#3861)
100 - Validator
101   - Add validation support for the ray tracing built-in variables (#4041)
102   - Use less stack space when validating Vulkan builtins (#4019)
103   - Fix SPV_KHR_fragment_shading_rate VUID label (#4014)
104   - Label Layer and ViewportIndex VUIDs (#4013)
105   - Allow the ViewportIndex and Layer built-ins on SPIR-V 1.5 (#3986)
106   - Fix validation of OpPhi instructions (#3919)
107 - Fuzz
108   - Fix facts arising from CompositeConstruct (#4034)
109   - Do not flatten conditionals that create synonyms (#4030)
110   - Add support for reining in rogue fuzzer passes (#3987)
111   - Fix assertion failure in FuzzerPassAddCompositeExtract (#3995)
112   - Fix invalid equation facts (#4009)
113   - Fix bugs in TransformationFlattenConditionalBranch (#4006)
114   - Fix bug related to transformation applicability (#3990)
115   - Add expand vector reduction transformation (#3869)
116   - Add FuzzerPassAddCompositeExtract (#3904)
117   - Fix mismatch with shrinker step limit (#3985)
118   - Fix off-by-one error in replayer (#3982)
119   - Get order right for OpSelect arguments (#3974)
120   - Do not add synonym-creating loops in dead blocks (#3975)
121   - Skip OpTypeSampledImage when propagating up (#3976)
122   - Pass OpUndef in function call if needed (#3978)
123   - Fix off-by-one in TransformationCompositeConstruct (#3979)
124   - Tolerate absent ids in data synonym fact management (#3966)
125   - Fix to id availability (#3971)
126   - Fix operand types (#3962)
127   - Don't flatten conditional if condition is irrelevant (#3944)
128   - Do not produce OpPhis of type OpTypeSampledImage (#3964)
129   - Restrict fuzzer pass to reachable blocks (#3970)
130   - Handle more types when extending OpPhi instructions (#3969)
131   - Skip early terminator wrappers when merging returns (#3968)
132   - Avoid irrelevant constants in synonym-creating loops (#3967)
133   - Skip dead blocks in FuzzerPassAddOpPhiSynonyms (#3965)
134   - Avoid the type manager when looking for struct types (#3963)
135   - Fix to TransformationDuplicateRegionWithSelection (#3941)
136   - Skip OpFunction when replacing irrelevant ids (#3932)
137   - Use component-wise selectors when flattening conditional branches (#3921)
138   - Avoid void struct member when outlining functions (#3936)
139   - Do not allow Block-decorated structs when adding parameters (#3931)
140   - Fix to operand id type (#3937)
141   - Handle dead blocks in TransformationEquationInstruction (#3933)
142   - Do not allow sampled image load when flattening conditionals (#3930)
143   - Take care of OpPhi instructions when inlining (#3939)
144   - Fix to TransformationInlineFunction (#3913)
145   - Wrap early terminators before merging returns (#3925)
146   - Lower probability of adding bit instruction synonyms (#3917)
147   - Fix handling of OpPhi in FlattenConditionalBranch (#3916)
148   - Avoid creating blocks without parents (#3908)
149   - Do not allow creation of constants of block-decorated structs (#3903)
150   - Fixes related to irrelevant ids (#3901)
151   - Fix to transformation that adds a synonym via a loop (#3898)
152   - Fix to duplicate region with selection (#3896)
153   - Do not expose synonym facts for non-existent ids (#3891)
154   - Do not add synonyms involving irrelevant ids (#3890)
155   - Do not replace irrelevant ids that are not in blocks (#3892)
156   - Wrap OpKill and similar in function calls (#3884)
157   - Integrate spirv-reduce with shrinker (#3849)
158   - Report fresh ids in transformations (#3856)
159   - Support OpNot bit instruction case (#3841)
160   - Return IR and transformation context after replay (#3846)
161
162v2020.5 2020-09-22
163 - General
164   - Enable building with BUILD_SHARED_LIBS=1 (#3490)
165   - Avoid using /MP4 for clang on windows. (#3662)
166   - Fix compiler error on macOS with XCode12. (#3836)
167 - Optimizer
168   - Preserve OpenCL.DebugInfo.100 through private-to-local pass (#3571)
169   - Preserve debug info in scalar replacement pass (#3461)
170   - Debug info preservation in loop-unroll pass (#3548)
171   - Preserve debug info in dead-insert-elim pass (#3652)
172   - Improve non-semantic instruction handling in the optimizer (#3693)
173   - Let ADCE pass check DebugScope (#3703)
174   - Add undef for inlined void function (#3720)
175   - Fix SSA-rewrite to remove DebugDeclare for variables without loads (#3719)
176   - Handle DebugScope in compact-ids pass (#3724)
177   - Add buffer oob check to bindless instrumentation (#3800)
178 - Validator
179   - Update OpenCL capabilities validation (#3149)
180   - Validator support for non-semantic clspv reflection (#3618)
181   - OpenCL.DebugInfo.100 DebugTypeArray with variable size (#3549)
182   - Only validation locations for appropriate execution models (#3656)
183   - Validate more OpenCL.DebugInfo.100 instructions (#3684)
184   - Allow DebugTypeTemplate for Type operand (#3702)
185   - spirv-val: Add Vulkan VUID labels to BuiltIn (#3756)
186   - Allow SPV_KHR_8bit_storage extension. (#3780)
187   - Validate SPIRV Version number when parsing binary header (#3834)
188 - Reduce
189   - Support reducing a specific function (#3774)
190 - Fuzz
191   - adds TransformationReplaceCopyObjectWithStoreLoad (#3567)
192   - adds TransformationReplaceCopyMemoryWithLoadStore (#3575)
193   - adds TransformationReplaceLoadStoreWithCopyMemory (#3586)
194   - Implement the OpOuterProduct linear algebra case (#3617)
195   - Pass to replace int operands with ints of opposite signedness (#3612)
196   - TransformationMoveInstructionDown (#3477)
197   - Add TransformationMakeVectorOperationDynamic (#3597)
198   - TransformationReplaceAddSubMulWithCarryingExtended (#3598)
199   - FuzzerPassPropagateInstructionsUp (#3478)
200   - add FuzzerPassAddCompositeInserts (#3606)
201   - Add inline function transformation (#3517)
202   - Transformation to replace the use of an irrelevant id (#3697)
203   - Add SPIRV_FUZZ_PROTOC_COMMAND (#3789)
204   - Add TransformationDuplicateRegionWithSelection (#3773)
205   - Transformation to flatten conditional branch (#3667)
206   - Handle OpPhis in TransformationInlineFunction (#3833)
207   - Create synonym of int constant using a loop (#3790)
208   - Support dead blocks in TransformationAddSynonym (#3832)
209 - Linker
210
211v2020.4 2020-07-22
212 - General
213   - Changed variable names to be more descriptive (#3433)
214   - Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
215   - Permit Simple and GLSL450 memory model in WEBGPU_0 (#3463)
216   - Support SPV_KHR_terminate_invocation (#3568)
217 - Optimizer
218   - Preserving debug information in optimizations
219     (#3389,#3420,#3425,#3356,#3459,#3444,#3492,#3451,#3497i,#3498,#3542)
220   - Eliminate branches with condition of OpConstantNull (#3438)
221   - Use structured order to unroll loops. (#3443)
222   - Updated desc_sroa to support flattening structures (#3448)
223   - Support OpCompositeExtract pattern in desc_sroa (#3456)
224   - Fix ADCE pass bug for mulitple entries (#3470)
225     - Sink pointer instructions in merge return (#3569)
226 - Validator
227   - Validate location assignments (#3308)
228     - Fix reachability in the validator (#3541)
229 - Reduce
230 - Fuzz
231   - Add support for OpSpecConstant* (#3373)
232   - Add replace linear algebra instruction transformation (#3402)
233   - Implement vector shuffle fuzzer pass (#3412)
234   - Swap operands in OpBranchConditional (#3423)
235   - Permute OpPhi instruction operands (#3421)
236   - Add FuzzerPassAddCopyMemoryInstructions (#3391)
237   - TransformationInvertComparisonOperator (#3475)
238   - Add variables with workgroup storage class (#3485)
239   - Add image sample unused components transformation (#3439)
240   - TransformationReplaceParameterWithGlobal (#3434)
241     - Support adding dead break from back-edge block (#3519)
242       - Fuzzer pass to interchange zero-like constants (#3524)
243 - Linker
244
245v2020.3 2020-05-27
246 - General
247   - Prevent Effcee from installing things when building spirv-tools with testing enabled (#3256)
248   - Update acorn version (#3294)
249   - If SPIRV-Headers is in our tree, include it as subproject (#3299)
250   - allow cross compiling for Windows Store, UWP, etc. (#3330)
251 - Optimizer
252   - Remove deprecated interfaces from instrument passes (#3361)
253   - Preserve debug info in inline pass (#3349)
254   - Handle more cases in dead member elim (#3289)
255   - Preserve debug info in eliminate-dead-functions (#3251)
256   - Fix Struct CFG analysis for single block loop (#3293)
257   - Add tests for recently added command line option (#3297)
258   - Consider sampled images as read-only storage (#3295)
259   - Allow various validation options to be passed to spirv-opt (#3314)
260   - Add debug information analysis (#3305)
261   - Preserve debug info for wrap-opkill (#3331)
262   - refactor inlining pass (#3328)
263   - Add unrolling to performance passes (#3082)
264 - Validator
265   - Add validation support for ImageGatherBiasLodAMD (#3363)
266   - Validate ShaderCallKHR memory scope (#3332)
267   - Validate Buffer and BufferBlock apply only to struct types (#3259)
268 - Reduce
269   - increase default step limit (#3327)
270   - Remove unused uniforms and similar (#3321)
271 - Fuzz
272   - Add support for StorageBuffer (#3348)
273   - Add validator options (#3254)
274   - Limit adding of new variables to 'basic' types (#3257)
275   - Transformation to add OpConstantNull (#3273)
276   - Handling of more fuzzing opportunities (#3277, #3280, #3281, #3290, #3292)
277   - Respect rules for OpSampledImage (#3287)
278   - Do not outline regions that produce pointer outputs (#3291)
279 - Linker
280
281v2020.2 2020-03-26
282 - General:
283   - Support extended instructions in the vscode language server
284   - Make spvOpcodeString part of the public API (#3174)
285   - Added guide to writing a spirv-fuzz fuzzer pass (#3190)
286   - Add support for KHR_ray_{query,tracing} extensions (#3235)
287 - Optimizer
288   - Debug Printf support (#3215)
289   - Add data structure for DebugScope, DebugDeclare in spirv-opt (#3183)
290   - Fix identification of Vulkan images and buffers (#3253)
291 - Validator
292   - Add support for SPV_AMD_shader_image_load_store_lod (#3186)
293   - Add validation rules for OpenCL.DebugInfo.100 extension (#3133)
294   - Adding WebGPU specific Workgroup scope rule (#3204)
295   - Disallow phis of images, samplers and sampled images (#3246)
296 - Reduce
297 - Fuzz
298   - Fuzzer passes to add local and global variables (#3175)
299   - Add fuzzer passes to add loads/stores (#3176)
300   - Fuzzer pass to add function calls (#3178)
301   - Fuzzer pass that adds access chains (#3182)
302   - Fuzzer pass to add equation instructions (#3202)
303   - Add swap commutable operands transformation (#3205)
304   - Add fuzzer pass to permute function parameters (#3212)
305   - Allow OpPhi operand to be replaced with a composite synonym (#3221)
306 - Linker
307
308v2020.1 2020-02-03
309 - General:
310   - Add support for SPV_KHR_non_semantic_info (#3110)
311   - Support OpenCL.DebugInfo.100 extended instruction set (#3080)
312   - Added support for Vulkan 1.2
313   - Add API function to better handle getting the necessary environment (#3142)
314   - Clarify mapping of target env to SPIR-V version (#3150)
315   - Implement constant folding for many transcendentals (#3166)
316 - Optimizer
317   - Change default version for CreatInstBindlessCheckPass to 2 (#3096, #3119)
318   - Better handling of OpLine on merge blocks (#3130)
319   - Use placeholder switch instead of placeholder loop in MergeReturn pass. (#3151)
320   - Handle TimeAMD in AmdExtensionToKhrPass. (#3168)
321 - Validator
322   - Fix structured exit validation (#3141)
323 - Reduce
324 - Fuzz
325   - Fuzzer pass to merge blocks (#3097)
326   - Transformation to add a new function to a module (#3114)
327   - Add fuzzer pass to perform module donation (#3117)
328   - Fuzzer passes to create and branch to new dead blocks (#3135)
329   - Fuzzer pass to add composite types (#3171)
330 - Linker:
331   - Remove names and decorations of imported symbols (#3081)
332
333v2019.5 2019-12-11
334 - General:
335   - Export SPIRV-Tools targets on installation
336   - SPIRV-Tools support for SPIR-V 1.5 (#2865)
337   - Add WebGPU SPIR-V Assembler in JavaScript. (#2876)
338   - Add Bazel build configuration. (#2891)
339   - Add support for building with emscripten (#2948)
340   - Update SPIR-V binary header test for SPIR-V 1.5 (#2967)
341   - Add fuzzer for spirv-as call path (#2976)
342   - Improved CMake install step. (#2963)
343   - Add fuzzer for spirv-dis call path (#2977)
344   - Ensure timestamp does not vary with timezone. (#2982)
345   - Add a vscode extension for SPIR-V disassembly files (#2987)
346   - Add iOS as a supported platform (#3001)
347   - utils/vscode: Add SPIR-V language server support
348   - Respect CMAKE_INSTALL_LIBDIR in installed CMake files (#3054)
349   - Permit the debug instructions in WebGPU SPIR-V (#3063)
350   - Add support for Fuchsia. (#3062)
351 - Optimizer
352   - Add descriptor array scalar replacement (#2742)
353   - Add pass to wrap OpKill in a function call (#2790)
354   - Fold FMix during constant folding. (#2818)
355   - Add pass to replace AMD shader ballot extension (#2811)
356   - Add pass to make Float32 operation relax precision (#2808)
357   - Add pass to make relax precision operation Float16 (#2808)
358   - Add pass to replace uses of 3 AMD extensions (#2814)
359   - Fold Min, Max, and Clamp instructions. (#2836)
360   - Better handling of OpKill in continues (#2842,#2922,#2933)
361   - Enable OpTypeCooperativeMatrix specialization (#2927)
362   - Support constant-folding UConvert and SConvert (#2960)
363   - Update Offset to ConstOffset bitmask if operand is constant. (#3024)
364   - Improve RegisterSizePasses (#3059)
365   - Folding: perform add and sub on mismatched integer types (#3084)
366   - Graphics robust access: use signed clamp (#3073)
367   Fixes:
368   - Instrument: Fix version 2 output record write for tess eval shaders. (#2782)
369   - Instrument: Add support for Buffer Device Address extension (#2792)
370   - Fix check for changed binary in API call. (#2798)
371   - For WebGPU<->Vulkan optimization, set correct execution environment (#2834)
372   - Handle OpConstantNull in copy-prop-arrays. (#2870)
373   - Use OpReturn* in wrap-opkill (#2886)
374 - Validator
375   - Add generic builtin validation of target (#2843)
376   - Extra resource interface validation (#2864)
377   - Adding valilidation checks for OpEntryPoint duplicate names and execution mode (#2862)
378   - Relaxed bitcast with pointers (#2878)
379   - Validate physical storage buffer restrictions (#2930)
380   - Add SPV_KHR_shader_clock validation (#2879, #3013)
381   - Validate that selections are structured (#2962)
382   - Disallow use of OpCompositeExtract/OpCompositeInsert with no indices (#2980)
383   - Check that derivatives operate on 32-bit values (#2983)
384   - Validate array stride does not cause overlap (#3028)
385   - Validate nested constructs (#3068)
386   Fixes:
387   - Fix validation of constant matrices (#2794)
388   - Update "remquor" validation
389   - Only allow previously declared forward refs in structs (#2920)
390 - Reduce
391   - Remove relaxed precision decorations (#2797)
392   - Reduce/fuzz: improve command line args (#2932)
393   - Improve remove unref instr pass (#2945)
394   Fixes:
395 - Fuzz
396   - Fix add-dead-break and add-dead-continue passes to respect dominance (#2838)
397   - Add fuzzer pass to copy objects (#2853)
398   - Add fuzzer pass to replace ids with synonyms (#2857)
399   - Allow validation during spirv-fuzz replay (#2873)
400   - Employ the "swarm testing" idea in spirv-fuzz (#2890)
401   - reduce/fuzz: improve command line args (#2932)
402   - option to convert shader into a form that renders red (#2934)
403   - Add fuzzer pass to change selection controls (#2944)
404   - add transformation and pass to construct composites (#2941)
405   - Add fuzzer pass to change loop controls (#2949)
406   - Add fuzzer pass to change function controls (#2951)
407   - Add fuzzer pass to add NoContraction decorations (#2950)
408   - Add missing functionality for matrix composites (#2974)
409   - Fuzzer pass to adjust memory access operands (#2968)
410   - Transformation to extract from a composite object (#2991)
411   - Vector shuffle transformation (#3015)
412   - Improve debugging facilities (#3074)
413   - Function outlining fuzzer pass (#3078)
414
415
416v2019.4 2019-08-08
417 - General:
418   - Memory model support for SPIR-V 1.4
419   - Add new spirv-fuzz tool
420   - Add option for base branch in check_code_format.sh
421   - Removed MarkV and Stats code. (#2576)
422   - Instrument: Add version 2 of record formats (#2630)
423   - Linker: Better type comparison for OpTypeArray and OpTypeForwardPointer (#2580)
424 - Optimizer
425   - Bindless Validation: Instrument descriptor-based loads and stores (#2583)
426   - Better folding for OpSpecConstantOp (#2585, #2614)
427   - Add in individual flags for Vulkan <-> WebGPU passes (#2615)
428   - Handle nested breaks from switches. (#2624)
429   - Optimizer: Handle array type with OpSpecConstantOp length (#2652)
430   - Perform merge return with single return in loop. (#2714)
431   - Add --preserve-bindings and --preserve-spec-constants (#2693)
432   - Remove Common Uniform Elimination Pass (#2731)
433   - Allow ray tracing shaders in inst bindle check pass. (#2733)
434   - Add pass to inject code for robust-buffer-access semantics (#2771)
435   - Treat access chain indexes as signed in SROA (#2776)
436   - Handle RelaxedPrecision in SROA (#2788)
437   - Add descriptor array scalar replacement (#2742)
438   Fixes:
439   - Handle decorations better in some optimizations (#2716)
440   - Change the order branches are simplified in dead branch elim (#2728)
441   - Fix bug in merge return (#2734)
442   - SSA rewriter: Don't use trivial phis (#2757)
443   - Record correct dominators in merge return (#2760)
444   - Process OpDecorateId in ADCE (#2761)
445   - Fix check for unreachable blocks in merge-return (#2762)
446   - Handle out-of-bounds scalar replacements. (#2767)
447   - Don't move debug or decorations when folding (#2772)
448   - Protect against out-of-bounds references when folding OpCompositeExtract (#2774)
449 - Validator
450   - Validate loop merge (#2579)
451   - Validate construct exits (#2459)
452   - Validate OpenCL memory and addressing model environment rules (#2589)
453   - Validate OpenCL environment rules for OpTypeImage (#2606)
454   - Allow breaks to switch merge from nested construct (#2604)
455   - Validate OpenCL environment rules for OpImageWrite (#2619)
456   - Allow arrays of out per-primitive builtins for mesh shaders (#2617)
457   - Validate OpenCL rules for ImageRead and OpImageSampleExplicitLod (#2643)
458   - Add validation for SPV_EXT_fragment_shader_interlock (#2650)
459   - Add builtin validation for SPV_NV_shader_sm_builtins (#2656)
460   - Add validation for Subgroup builtins (#2637)
461   - Validate variable initializer type (#2668)
462   - Disallow stores to UBOs (#2651)A
463   - Validate Volatile memory semantics bit (#2672)
464   - Basic validation for Component decorations (#2679)
465   - Validate that in OpenGL env block variables have Binding (#2685)
466   - Validate usage of 8- and 16-bit types with only storage capabilities (#2704)
467   - Add validation for SPV_EXT_demote_to_helper_invocation (#2707)
468   - Extra small storage validation (#2732)
469   - For Vulkan, disallow structures containing opaque types (#2546)
470   - Validate storage class OpenCL environment rules for atomics (#2750)
471   - Update OpControlBarriers rules for WebGPU (#2769)
472   - Update OpMemoryBarriers rules for WebGPU (#2775)
473   - Update WebGPU validation rules of OpAtomic*s (#2777)
474   Fixes:
475   - Disallow merge targeting block with OpLoopMerge (#2610)
476   - Update vloadn and vstoren validation to match the OpenCL Extended
477     Instruction Set Specification (#2599)
478   - Update memory scope rules for WebGPU (#2725)
479   - Allow LOD ops in compute shaders with derivative group execution modes (#2752)
480 - Reduce
481   Fixes:
482
483v2019.3 2019-05-14
484 - General:
485   - Require Python 3 since Python 2 will out of service soon.
486   - Add a continuous test that does memory checks using the address sanitizer.
487   - Fix the build files so the SPIRV_USE_SANITIZER=address build works.
488   - Packaging top of tree build artifacts again.
489   - Added support for SPIR-V 1.4. (#2550)
490 - Optimizer
491   - Remove duplicates from list of interface IDs in OpEntryPoint instruction (#2449)
492   - Bindless Validation: Descriptor Initialization Check (#2419)
493   - Add option to validate after each pass (#2462)
494   - Add legalization pass to fix mismatched pointer (#2430, #2535)
495   - Add error messages when the input contains unknown instructions. (#2487)
496   - Add pass to convert from WebGPU Spir-V to Vulkan Spir-V and back. (#2495)
497   Fixes:
498   - #2412: Dead memeber elimination should not change input and output variables.
499   - #2405: Fix OpDot folding of half float vectors.
500   - #2391: Dead branch elim should not fold away back edges.
501   - #2441: Removing decorations when doing constant propagation.
502   - #2455: Maintain inst to block mapping in merge return.
503   - #2453: Fix merge return in the face of breaks.
504   - #2456: Handle dead infinite loops in DCE.
505   - #2458: Handle variable pointer in some optimizations.
506   - #2452: Fix dead branch elimination to handle unreachable blocks better.
507   - #2528: Fix undefined bit shift in sroa.
508   - #2539: Change implementation of post order CFG traversal.
509 - Validator
510   - Add validation of storage classes for WebGPU (#2446)
511   - Add validation for ExecutionMode in WebGPU (#2443)
512   - Implement WebGPU specific CFG validation (#2386)
513   - Allow NonWritable to target struct members. (#2420)
514   - Allow storage type mismatch for parameter in relaxed addressing mode.
515   - Allow non memory objects as parameter in relaxed addressing mode.
516   - Disallow nested Blocks and buffer blocks (#2410).
517   - Add validation for SPV_NV_cooperative_matrix (#2404)
518   - Add --strip-atomic-counter-memory (#2413)
519   - Check OpSampledImage is only passed into valid instructions (#2467)
520   - Handle function decls in Structured CFG analysis (#2474)
521   - Validate that OpUnreacahble is not statically reachable (#2473)
522   - Add pass to generate needed initializers for WebGPU (#2481)
523   - Allow images without format for OpenCL. (#2470)
524   - Remove unreachable block validation (#2525)
525   - Reduce runtime of array layout checks (#2534)
526   - Add validation specific to OpExecutionModeId (#2536)
527   - Validate sign of int types. (#2549)
528   - VK_KHR_uniform_buffer_standard_layout validation (#2562)
529   Fixes:
530   - #2439: Add missing DepthGreater case to Fragment only check.
531   - #2168: Disallow BufferBlock on StorageBuffer variables for Vulkan.
532   - #2408: Restrict and Aliased decorations cannot be applied to the same id.
533   - #2447: Improve function call parameter check.
534 - Reduce
535   - Add Pass to remove unreferenced blocks. (#2398)
536   - Allows passing options to the validator. (#2401)
537   - Improve reducer algorithm and other changes (#2472)
538   - Add Pass to remove selections (#2485)
539   - Add passes to simplify branches (#2507)
540   Fixes:
541   - #2478: fix loop to selection pass for loops with combined header/continue block
542
543v2019.2 2019-02-20
544 - General:
545   - Support SPV_EXT_physical_storage_buffer
546   - A number of memory leak have been fixed.
547   - Removed use of deprecated Google test macro:
548   - Changed the BUILD.gn to only build tests in Chromium.
549 - Optimizer
550   - Upgrade memory model improvments for modf and frexp.
551   - Add a new pass to move loads closer to their uses: code sinking.
552   - Invalidating the type manager now invalidates the constnat manager.
553   - Expand instrumentation pass for bindless bounds checking to runtime-sized descriptor arrays.
554   - Add a new pass that removes members from structs that are not used: dead member elimination.
555   Fixes:
556   - #2292: Remove undefined behaviour when folding bit shifts.
557   - #2294: Fixes for instrumentation code.
558   - #2293: Fix overflow when folding -INT_MIN.
559   - #2374: Don't merge unreachable blocks when merging blocks.
560 - Validator
561   - Support SPV_KHR_no_integer_wrap and related decorations.
562   - Validate Vulkan rules for OpTypeRuntimeArray.
563   - Validate NonWritable decoration.
564   - Many WebGPU specific validation rules were added.
565   - Validate variable pointer related function call rules.
566   - Better error messages.
567   Fixes:
568   - #2307: Check forwards references in OpTypeArray.
569   - #2315, #2303: Fixed the layout check for relaxed layout.
570   - #1628: Emit an error when an OpSwitch target is not an OpLabel.
571 - Reduce
572   - Added more documentation for spirv-reduce.
573   - Add ability to remove OpPhi instructions.
574   - Add ability to merge two basic blocks.
575   - Add ability to remove unused functions and unused basic blocks.
576   Fixes:
577
578v2019.1 2019-01-07
579 - General:
580   - Created a new tool called spirv-reduce.
581   - Add cmake option to turn off SPIRV_TIMER_ENABLED (#2103)
582   - New optimization pass to update the memory model from GLSL450 to VulkanKHR.
583   - Recognize OpTypeAccelerationStructureNV as a type instruction and ray tracing storage classes.
584   - Fix GCC8 build.
585   - Add --target-env flag to spirv-opt.
586   - Add --webgpu-mode flag to run optimizations for webgpu.
587   - The output disassembled line number stead of byte offset in validation errors. (#2091)
588 - Optimizer
589   - Added the instrumentation passes for bindless validation.
590   - Added passes to help preserve OpLine information (#2027)
591   - Add basic support for EXT_fragment_invocation_density (#2100)
592   - Fix invalid OpPhi generated by merge-return. (#2172)
593   - Constant and type manager have been turned into analysies. (#2251)
594   Fixes:
595   - #2018: Don't inline functions with a return in a structured CFG contstruct.
596   - #2047: Fix bug in folding when volatile stores are present.
597   - #2053: Fix check for when folding floating pointer values is allowed.
598   - #2130: Don't inline recursive functions.
599   - #2202: Handle multiple edges between two basic blocks in SSA-rewriter.
600   - #2205: Don't unswitch a latch condition during loop unswitch.
601   - #2245: Don't fold branch in loop unswitch.  Run dead branch elimination to fold them.
602   - #2204: Fix eliminate common uniform to place OpPhi instructions correctly.
603   - #2247: Fix type mismatches caused by scalar replacement.
604   - #2248: Fix missing OpPhi after merge return.
605   - #2211: After merge return, fix invalid continue target.
606   - #2210: Fix loop invariant code motion to not place code between merge instruction and branch.
607   - #2258: Handle CompositeInsert with no indices in VDCE.
608   - #2261: Have replace load size handle extact with no index.
609 - Validator
610   - Changed the naming convention of outputing ids with names in diagnostic messages.
611   - Added validation rules for UniformConstant variables in Vulkan.
612   - #1949: Validate uniform variable type in Vulkan
613   - Ensure for OpVariable that result type and storage class operand agree (#2052)
614   - Validator: Support VK_EXT_scalar_block_layout
615   - Added Vulkan memory model semantics validation
616   - Added validation checkes spefic to WebGPU environment.
617   - Add support for VK_EXT_Transform_feedback capabilities (#2088)
618   - Add validation for OpArrayLength. (#2117)
619   - Ensure that function parameter's type is not void (#2118)
620   - Validate pointer variables (#2111)
621   - Add check for QueueFamilyKHMR memory scope (#2144)
622   - Validate PushConstants annotation and type (#2140)
623   - Allow Float16/Int8 for Vulkan 1.0 (#2153)
624   - Check binding annotations in resource variables (#2151, #2167)
625   - Validate OpForwardPointer (#2156)
626   - Validate operation for OpSpecConstantOp (#2260)
627   Fixes:
628   - #2049: Allow InstanceId for NV ray tracing
629 - Reduce
630   - Initial commit wit a few passes to reduce test cases.
631   - Validation is run after each reduction step.
632   Fixes:
633
634
635v2018.6 2018-11-07
636 - General:
637   - Added support for the Nvidia Turing and ray tracing extensions.
638   - Make C++11 the CXX standard in CMakeLists.txt.
639   - Enabled a parallel build for MSVC.
640   - Enable pre-compiled headers for MSVC.
641   - Added a code of conduct.
642   - EFFCEE and RE2 are now required when build the tests.
643 - Optimizer
644   - Unrolling loops marked for unrolling in the legalization passes.
645   - Improved the compile time of loop unrolling.
646   - Changee merge-return to create a placeholder loop around the function.
647   - Small improvement to merge-blocks to allow it to merge more often.
648   - Enforce an upper bound for the ids, and add option to set it.
649   - #1966: Report error if there are unreachable block before running merge return
650   Fixes:
651   - #1917: Allow 0 (meaning unlimited) as a parameter to --scalar-replacement
652   - #1915: Improve handling of group decorations.
653   - #1942: Fix incorrect uses of the constant manager.  Avoids type mismatches in generated code.
654   - #1997: Fix dead branch elimination when there is a loop in folded selection.
655   - #1991: Fixes legality check in if-conversion.
656   - #1987: Add nullptr check to array copy propagation.
657   - #1984: Better handling of OpUnreachable in ADCE.
658   - #1983: Run merge return on reachable functions only.
659   - #1956: Handled atomic operations in ADCE.
660   - #1963: Fold integer divisions by 0 to 0.
661   - #2019: Handle MemberDecorateStringGOOGLE in ADCE and strip reflect.
662 - Validator
663   - Added validation for OpGroupNonUniformBallotBitCount.
664   - Added validation for the Vulkan memory model.
665   - Added support for VK_KHR_shader_atddomic_int64.
666   - Added validation for execution modes.
667   - Added validation for runtime array layouts.
668   - Added validation for 8-bit storage.
669   - Added validation of OpPhi instructions with pointer result type.
670   - Added checks for the Vulkan memory model.
671   - Validate MakeTexelAvailableKHR and MakeTexelVisibleKHR
672   - Allow atomic function pointer for OpenCL.
673   - FPRounding mode checks were implemented.
674   - Added validation for the id bound with an option to set the max id bound.
675   Fixes:
676   - #1882: Improve the validation of decorations to reduce memory usage.
677   - #1891: Fix an potential infinite loop in dead-branch-elimination.
678   - #1405: Validate the storage class of boolean objects.
679   - #1880: Identify arrays of type void as invalid.
680   - #487: Validate OpImageTexelPointer.
681   - #1922: Validate OpPhi instructions are at the start of a block correctly.
682   - #1923: Validate function scope variable are at the start of the entry block.
683
684v2018.5 2018-09-07
685 - General:
686   - Support SPV_KHR_vulkan_memory_model
687   - Update Dim capabilities, to match SPIR-V 1.3 Rev 4
688   - Automated build bots no run tests for the VS2013 case
689   - Support Chromium GN build
690   - Use Kokoro bots:
691     - Disable Travis-CI bots
692     - Disable AppVeyor VisualStudio Release builds. Keep VS 2017 Debug build
693   - Don't check export symbols on OSX (Darwin): some installations don't have 'objdump'
694   - Reorganize source files and namespaces
695   - Fixes for ClangTidy, and whitespace (passes 'git cl presumit --all -uf')
696   - Fix unused param compile warnings/errors when Effcee not present
697   - Avoid including time headers when timer functionality is disabled
698   - Avoid too-stringent warnings flags for Clang on Windows
699   - Internal refactoring
700   - Add hooks for automated fuzzing
701   - Add testing of command line executables
702   - #1688: Use binary mode on stdin; fixes "spirv-dis <foo.spv" on Windows
703 - Optimizer
704   - The optimizer validates the module before it begins
705   - Add API to register passes by string name
706   - Fold a vector shuffle feeding a vector shuffle
707   - Add -combine-access-chains transform
708   - Refactor how IRContext is handled by passes
709   - Improve bookkeeping for instruction result type and result id
710   - Fix over-duplication of decorations
711   - Fix handling of exits from selections in dead-branch elimination, and dead code
712     elimination.
713   - Fix handling of certain kinds of flow control in merge-return
714   Fixes:
715   - #1721: Fix size bug when folding vector shuffles
716   - #1722: Fix size infinite loop when folding vector shuffles
717   - #1724: Fix finding a constant of a specific type
718   - #1727: Dead branch elim: Reorder blocks if needed to satisfy dominance rule
719   - #1729: Handle VariablePointers cases in various optimizations
720   - #1731: Fix vector shuffle with literal id indicating undef value
721   - #1736: Fix handling of decorations and phis in merge-return
722   - #1787: Fix handling of decorations related to access chains
723   - #1865: Avoid leaking memory for SPIR-V constant values
724 - Validator
725   - Improve error messages
726   - Avoid platform-dependent traversal ordering, to ensure consistent messages
727   - Use libspirv::Instruction where possible
728   - Add option to skip all block layout checks
729   - Validate all type IDs
730   - Validate uses of OpFunction
731   - Validate uses of OpTypeFunction
732   - Disallow a struct containing its own type https://crbug.com/874372
733   - #1685: Vulkan permits non-monotonic offsets for block members
734   - #1697: Enforce block layout rules even when using relaxed block layout option
735   - #1719: Fix line number for vector shuffle valiation error
736   - #1789: Avoid assertion failure when validating some functions
737   - #1800: Fix validation of OpCopyMemorySized
738   - #1822: Stop enforcing struct member offset montonicity
739   - #1831: Disallow void members in structs
740
741v2018.4 2018-07-08
742 - General:
743   - Support SPV_KHR_8bit_storage
744   - Add gclient and presubmit configurations
745   - Enable Kokoro build bots (#1625)
746   - Group tests into fewer executables, reduces load on CI
747   - Port test script to Python 3
748   - Symbol export tests respect SPIRV_SKIP_TESTS
749   - #1596: Operand lookup succeeds if enabled by a capability
750   - #1624: Instruction lookup succeeds if enabled by a capability
751   - Refactoring namespaces:
752     - #1678: Change libspirv to spvtools
753     - Code in source/utils moved into spvtools::utils
754     - Code in source/comp moved into spvtools::comp
755 - Optimizer:
756   - Remove insert-extract-elim pass. Use simplification pass instead.
757   - Preserve instruction-to-block mapping in most passes, to reduce runtime.
758   - Small vector optimization for operands
759   - Add pass to move Private variables to Function. Increase opportunity to optimize.
760   - Fixes:
761     #1120: Check static uses of entry point interfaces
762     #1372: Avoid merging some structs, to preserve names for reflection
763     #1577: Scalar replacement uses only undecorated types.
764     #1578: Fix handling of forward-pointer types, and types embedding pointers
765       to themselves.
766     #1591: Inliner: Callee variable with initializer should have a store at the call site.
767     #1634: Fix crash: Use type id in vector type lookup
768     #1649: Fix assert in compact-ids pass
769     Fix constant folder: ensure it uses the right type
770     #1659: Folding rules added to IRContext. Avoids leak.
771 - Validator
772   - Add work-in-progress WebGPU environment. Disallows OpUndef
773   - #670, #1581: Improve error messages; disassemble instruction
774   - #491: Check structured switches
775   - #937: Check layout rules for Block and BufferBlock in Uniform, StorageBuffer, PushConstant
776   - #1281: Check invalid branches into structured constructs
777   - #1522: Disallow array-of-arrays with DescriptorSets
778   - #1577: Allow duplicate pointer types.
779   - #1581: Better messages: output ID names along with numbers in more cases.
780   - #1597: Check Vulkan 1.1 capabilities
781   - #1618: Check invalid exit from structured case construct
782   - #1622: Run IdPass before DataRulesPass
783   - #1632: Reduce test time by artificially lowering limits in limit test
784   - #1638: Block-decorated structs member order must respect offset order
785   - #1657: Improve CFG validation diagnostics
786   - Khronos SPIR-V #337: GLSL.std.450 Refract instruction Eta param can be any float scalar.
787   - #1606: PushConstant Blocks follow storage-buffer layout rules
788   - #1664: Check layout of StorageBuffer variables with Block decoration, using storage buffer
789     rules
790   - #1666: Layout validation should permit {vec3; float} packing
791   - #1637, #1668: Layout validation uses RowMajor, ArrayStride, MatrixStride properly
792 - Linker
793   - Avoid buffer overrun when creating OpModuleProcessed
794
795v2018.3 2018-05-25
796 - General:
797   - Support SPV_EXT_descriptor_indexing
798   - Support SPV_GOOGLE_decorate_string
799   - Support SPV_GOOGLE_hlsl_functionality1
800   - Support SPV_NV_shader_subgroup_partitioned
801   - Use "unified1" grammar from SPIRV-Headers
802   - Simplify support for new extensions. Assembler, disassembler, and simple validation
803     support is automatic if new tokens are introduced with appropriate extension
804     attributes in the "unified1" SPIR-V core grammar.
805   - Disassembler: Emit more digits on floating point, to reliably reproduce all
806     significand bits.  (Use std::max_digits10 instead of std::digits10)
807   - Fix compilation for old XCode versions: Explicit construction required for std::set.
808 - Optimizer:
809   - Add --strip-reflect
810   - Add --time-report
811   - Add --loop-fission
812   - Add lop fusion.
813   - Add loop peeling pass and internal utility.
814   - Improve optimizer runtime.
815   - Merge-return now works with structured control flow.
816   - New (faster) SSA rewriter to convert local loads and stores to SSA IDs and phis.
817     Can replace load/store elimination passes.
818   - Fix instruction folding case: insertion that feeds and extract, when the extract
819     remains.
820   - Fold OpDot.
821   - Fold OpFNegate.
822   - Fold multply and divide of same value.
823   - Fold FClamp feeding a compare.
824   - Fold OpLoad feeding an extract, to reduce excessive copying. (#1547)
825   - Fold Fmix feeding an extract.
826   - Use simplification pass instead of insert-extract elimination.
827   - Constant fold OpVectorTimesScalar.
828   - Copy propagate arrays, in simple cases.
829   - Aggressive dead code elimination: Can remove more instructions, e.g. derivatives.
830   - Aggressive dead code elimination: Remove Workgroup variables that are written but not read.
831   - Better handling of OpImageTexelPointer
832   - Initial utilities for scalar evolution.
833   - Add Vector dead code elimination.
834   - Each pass can only run once.
835   - Allow code hosting in if-conversion.
836   - Add external interface for adding a PassToken, so external code can make their own
837     passes.
838   - Fixes:
839     #1404: Don't optimize away the compute compute workgroup size constant.
840     #1407: Remove a bad assertion
841     #1456: Fix bug in SSA rewriter related to variables updated in loops.
842     #1487: Fix long runtime in Dead insertion elimination: Don't revist select phi nodes.
843     #1492: Aggressive dead code elimination can remove OpDecorateStringGOOGLE.
844     #1527: Fix inlining of functions having OpKill and OpUnreachable.
845     #1559: Fix assert failure in reduce-load-size pass.
846     #1556: Aggressive dead code elimination: Fix handling of OpCopyMemory.
847 - Validator:
848   - Check Vulkan built-in variables
849   - Check Vulkan-specific atomic result type rule.
850   - Relax control barrier check for SPIR-V 1.3.  Fixes #1427
851   - Check OpPhi.
852   - Check OpMemoryModel.
853   - Stop checking sizes derived from spec-constants.
854   - Re-enable checks for OpUConvert.
855   - Vulkan: Fix check for PrimitiveId: Permit as Input in fragment shader.
856   - Validate binary version for the given target environment.
857   - Add tests for OpBranch checks.
858   - Vulkan 1.1: Check scope for non-uniform subgroup operations.
859   - Fix checks for SPV_AMD_gpu_shader_int16.
860   - Fix logical layout check for OpDecorateId.
861   - Fix checks for ViewportIndex & Layer for Vulkan and SPV_EXT_shader_viewport_index_layer.
862   - Fixes:
863     #1470: Vulkan: Don't restrict WorkgroupSize to Input storage class.
864     #1469: Vulkan: Permit Subgroup memory scope for Vulkan 1.1.
865     #1472: Per-vertex variable validation fixes.
866     #1483: Valdiate barrier execution scopes for Vulkan 1.1.
867 - Fixes:
868   #898: Linker properly removes FuncParamAttr from imported symbols.
869   #924, #1174: Fix handling of decoration groups in optimizer, linker.
870
871v2018.2 2018-03-07
872 - General:
873   - Support SPIR-V 1.3 and Vulkan 1.1.
874     - Default target environment is now SPIR-V 1.3.  For command-line tools,
875       use the --target-env option to override the default.  Examples:
876	  # Generate a SPIR-V 1.0 binary instead of SPIR-V 1.3
877	  spirv-as --target-env spv1.0 a.spvasm -o a.spv
878	  spirv-as --target-env vulkan1.0 a.spvasm -o a.spv
879	  # Validate as Vulkan 1.0
880	  spirv-val --target-env vulkan1.0 a.spv
881   - Support SPV_GOOGLE_decorate_string and SPV_GOOGLE_hlsl_functionality1
882 - Fixes:
883   - Fix Android.mk build. Compilation was failing due to missing definitions of
884     SpvCapabilityFloat16ImageAMD and other enumerated values.
885   - Optimizer: Avoid generating duplicate names when merging types.
886   - #1375: Validator: SPV_AMD_gpu_shaer_half_float implicitly allows declaration
887     of the 16-bit floating point type.
888   - #1376: Optimizer: Avoid folding half-precision float.
889
890v2018.1 2018-03-02
891 - General:
892   - Support Visual Studio 2013 again. (Continue support for VS 2015 and VS 2017.)
893   - Support building SPIRV-Tools as a shared library.
894   - Improve the HLSL legalization optimization recipe. #1311
895 - Optimizer:
896   - General speedups.
897   - Remove generic dead code elimination functionality from transforms:
898       --eliminate-local-single-block
899       --eliminate-local-single-store
900       --eliminate-local-multi-store
901     To recover the previous behaviour, a recipe using those transforms should now
902     also invoke the --eliminate-dead-code-aggressive transform.
903   - Improve folding, including coverage for floating point, OpSelect, and arithmetic
904     with non-trivial constant operands.
905   - Add loop-invariant code motion pass.
906   - Add loop-unrolling pass, for honouring unroll hits.
907   - Add loop-unswitch pass.
908   - Add instruction simplification pass.
909   - Aggressive dead code elimination: Understands capability hierarchy when finding
910     instructions it can eliminate (combinators). (PR #1268)
911   - CCP can now fold floating point arithmetic. #1311
912 - Validator:
913   - Validate barrier instructions.
914   - Check Vulkan-specific rules for atomics.
915   - Check Vulkan prohibition of Location or Component decorations on BuiltIn variables.
916 - Linker:
917   - Add --verify-ids option
918   - Add option to allow a resulting module to be partially linked.
919   - Handle OpModuleProcessed (instructions in SPIR-V layout section 7c)
920 - Fixes:
921   - #1265: Optimizer: Fix use-after free bug in if-conversion. (Fix object lifecycle bug
922     in type manager.)
923   - #1282: Fix new warnings found by GCC 8.0.1.
924   - #1285: Optimizer: Fix random failures during inlining.  (Dangling references in DefUseManager)
925   - #1295: Optimizer: Fix incorrect handling of Phi nodes in CCP.
926   - #1300: Fix CCP: avoid bad CCP transitions and unsettled values.
927   - #1304: Avoid static-duration variables of class type (with constructors).
928   - #1323: Fix folding of an insert composite feeding a composite extract.
929   - #1339: Fix CCP: Handle OpConstantNull boolean values as conditions.
930   - #1341: DCEInst: Keep atomic instructions (and some others with side effects).
931   - #1354: Don't fold integer division.
932   - #1357: Support OpConstantNull in folding.
933   - #1361: CCP: Fix handling of non-constant module-scope values
934
935v2018.0 2018-02-02
936 - General
937   - VisualStudio 2013 is no longer supported.  VisualStudio 2015 is supported.
938   - Use "include/unified1" directory from SPIRV-Headers.  Requires recent SPIRV-Headers source.
939 - Disassembler: spirv-dis adds --color option to force color disassembly.
940 - Optimizer:
941   - Add pass to eliminate dead insertions.
942   - Aggressive dead code elimination now removes OpSwitch constructs.
943   - Block merging occurs in more cases.
944   - Add driver workaround transform: replace OpUnreachable with harmless branch to merge.
945   - Improve instruction folding framework.
946   - Add loop analysis.
947   - Add scalar replacement of aggregates to size-optimization recipe.
948   - Add pass to replace instructions invalid for a shader stage, with a harmless value.
949     This changes the semantics of the program!  Not for general use!
950   - Rearragne and add passes to performance-optimization recipe, to produce better results.
951 - Validator:
952   - Validate OpenCL extended instructions.
953   - Shaders can't perform atomics on floats.
954   - Validate memory semantics values in atomics.
955   - Validate instruction-adjacency constraints, e.g. OpPhi predecessors, merge instructions
956     immediately precede branches.
957 - Fixes:
958   - PR 1198: Optimizer: Fix CCP in presence of matrix constants.
959   - #1199: Optimizer: Fix CCP: don't propagate spec constants.
960   - #1203: Optimizer: Fix common uniform elim bug introduced by refactoring.
961   - #1210: Optimizer: Aggressive dead code elimination: Fix 'break' identification.
962   - #1212: Optimizer: Aggressive dead code elimination: Was skipping too many instructions.
963   - #1214: Optimizer: Aggressive dead code elimination: Fix infinite loop.
964   - #1228: Optimizer: Fix CCP: Handling of varying Phi nodes; was resulting in infinite loop.
965   - #1245: Optimizer: Dead branch elimination: Avoid a null pointer dereference.
966   - #1250: Optimizer: Dead branch elimination: Avoid spuriously reporting a change.
967
968v2017.3 2018-01-12
969 - General:
970   - Support DebugInfo extended instruction set, targeted at OpenCL environments.
971     See the SPIR-V Registry.
972   - Generate a SPIRV-Tools.pc file for pkg-config.
973 - Optimizer:
974   - Progress for legalization of code generated from HLSL (issue #1118):
975     - Add --legalize-hlsl option to run transforms used to transform intermediate
976       code generated by HLSL to SPIR-V for Vulkan compilers.  Those compilers
977       normally run these transforms automatically.  This option is used for developing
978       those transforms.
979     - Add Private-to-Function variable conversion for modules with logical
980       addressing.
981   - Add --ccp: SSA Conditional Constant Propagation (CCP)
982   - Add --print-all to show disassembly for each optimization pass.
983   - Internal: Add loop descriptors and post-order tree iterator.
984   - Generalized dead branch elimination
985   - Aggressive dead code elimination (ADCE) now removes dead functions and
986     module-scope variables.
987   - Vector extract/insert elimination now optimizes through some cases of
988     VectorShuffle, and GLSL.std.450 Mix extended instruction.
989 - Validator:
990   - Add validation for GLSL.std.450 extended instruction set.
991   - Check out of bounds composite accesses, where that's statically computable.
992     Fixes #1112.
993   - Check upper bits of literal numbers that aren't a multiple of 32-bits wide.
994   - More validation of primitive instructions
995   - Add optional "relaxed" checking logical addressing mode to permit some
996     cases of pointer-to-pointer.  Contributes to HLSL legalization (issue #1118).
997 - Fixes:
998   #1100: Validator: Image operand Sample can be used with OpImageSparseFetch,
999     OpImageSparseRead.
1000   #1108: Remove duplicates transform was incorrectly removing non-duplicate
1001     decorations.
1002   #1111: Optimizer's type manager could reference deleted memory.
1003   #1112: Fix decoration equality check, e.g. it is now symmetric.
1004   #1129: Validator now disallows Dim=SupbassData for OpImageSparseRead.
1005   #1143: Fix CCP: Was generating incorrect code for loops.
1006   #1153: Fix CCP crash.
1007   #1154: Optimizer's internal instruction-to-block mappings were sometimes
1008       inconsistent.
1009   #1159: Fix CCP infinite loop.
1010   #1168: Fix dead branch elimination intermittently generating incorrect code.
1011       Fixes https://github.com/KhronosGroup/glslang/issues/1205
1012   #1186: Fix validation of PackDouble2x32 and UnpackDouble2x32
1013
1014v2017.2 2017-12-15
1015 - General:
1016   - Support OpenCL 1.2, 2.0 target environments, including embedded profiles
1017   - Add CONTRIBUTING.md
1018   - Fix exit status code for spirv-link
1019   - Disassember: Enable emitting ANSI colour codes to a string
1020   - Library avoids polluting global namespace.  The libraries can export C and C++
1021     symbols starting with "spv", or in a C++ namespace.  Add a test for this.
1022   - Linux release builds include debug information, for easier profiling
1023   - Build bots no longer test VisualStudio 2013
1024     - Testing dependency RE2 requires VisualStudio 2015 or later
1025   - Build bots check code formatting
1026 - Optimizer:
1027   - Add --skip-validation to spirv-opt
1028   - Add dominance tree analysis
1029   - Add generic value propagation engine
1030   - Add global redundancy elimination within a function
1031   - Add scalar replacement of function-scope variables of composite type
1032   - Aggressive dead code elimination: Remove empty loops
1033   - Killing an instruction notifies the IRContext
1034   - IRContext::KillInst deletes the instruction
1035   - Move CFG analysis to IRContext
1036   - Add constant manager
1037   - Fix: Don't consider derivative instructions as combinators.
1038   - Fix: Don't delete an instruction twice in local dead-code-elimination
1039   - Fix: Don't consider derivative instructions as combinators.
1040 - Validator:
1041   - Finish checking of image instructions (Section 3.32.10)
1042     - Check sparse image instructions
1043     - Check OpTypeImage, OpTypeSampleImage
1044   - Check composite instructions (Section 3.32.12)
1045   - Check atomic instructions (Section 3.32.18)
1046   - Check OpEmitStreamVertex, OpEndStreamPrimitive instructions
1047   - Re-enable validation of OpCopyObject
1048   - OpKill, image ImplicitLod and QueryLod instructions can only be used in Fragment
1049     shaders.
1050   - Fixes for image instruction validation:
1051     - Lod image operand only usable with ExplicitLod and OpImageFetch
1052     - ExplicitLod Lod image operand must be float scalar
1053     - OpImageFectch Lod image operand must be int scalar
1054     - OpImageGather component operand must be 32-bits (integer scalar)
1055     - OpImageQuerySizeLod Lod must be integer scalar
1056 - Fixes:
1057   #622: Remove names and decorations when inlining
1058   #989: Aggressive dead code elim: Don't optimize away live breaks from a loop
1059   #991: Fix validation of SPV_AMD_shader_ballot
1060   #1004: Use after free of an instruction, in remove-duplicates transform
1061   #1007: OpImageRead not required to return 4-component vector
1062   #1009: OpImageRead can return scalar int/float types
1063   #1011: OpImageWrite should allow scalar int/float texel types
1064   #1012: Fix validat Dref type check
1065   #1017: Load-store elimination considers variable initializations
1066   #1034: Fix Windows debug build: operator< should be a weak ordering
1067   #1083: Inlining: Set parent (function) for each inlined basic block.
1068   #1075: Aggressive dead code elimination: Was leaving dangling references to
1069     removed blocks.
1070
1071v2017.1 2017-11-23
1072 - Update README with details on the public_spirv_tools_dev@khronos.org mailing list.
1073 - General:
1074   - Automatically deploy built artifacts to GitHub Releases
1075   - Add a Linker (module combiner). Under development.
1076   - Add Android.mk for Android NDK builds.
1077   - Add the 'effcee' library as an optional dependency for use in tests.
1078     Eventually it will be a required dependency, once downstream projects have
1079     a chance to adjust.  Requires 're2' library.
1080   - Avoid static-duration variables of class type (with constructors).
1081   - Hack around bugs in gcc-4.8.1 template handling
1082   - Faster opcode lookup
1083 - Validator:
1084   - Recognize extensions listed on SPIR-V registry,
1085     through #25 SPV_AMD_shader_fragment_mask
1086   - Validator issues an info message when it sees an unrecognized extension.
1087   - Type check basic arithmetic operations
1088   - Type check carry/extended arithmetic operations
1089   - Type check vector arithmetic operations
1090   - Type check Relational and Logical instructions
1091   - Type check Bit instructions
1092   - Check type uniqueness rules
1093   - Check conversion instructions
1094   - Check image instructions
1095   - Check derivative instructions
1096   - Check OpVectorShuffle
1097   - Check OpBranchConditional
1098   - OpModuleProcessed is only allowed after debug names section and before annotations
1099     section.
1100   - Checks the right kind of return is called for each function (void or non-void).
1101   - Add option to relax type check when storing structs (--relax-store-struct)
1102 - Optimizer:
1103   - Refactoring internal representation of the module, including:
1104     - IRContext: owns a module and manages analyses
1105     - Instructions are owned by intrusive lists, and have unique IDs
1106     - BasicBlock owns its instruction list.
1107     - DefUseManager: change representation of uses, for faster processing
1108       on large modules.
1109   - Add high level recipes: -O, -Os, and -Oconfig
1110     Recipes for -O and -Os are under development.
1111   - Add eliminate-dead-function transform
1112   - Add strength reduction transform: For now, convert multiply by power of 2
1113     to a bit shift.
1114   - Add CFG cleanup transform
1115   - Add removal of dead module-scope variables
1116   - Add merge-return transform for modules without structured control flow
1117   - Add redundancy elimination within a basic block (local value numbering)
1118   - Extract-insert elimination:
1119     - Recognize the case where the first instruction in the sequence is an
1120       OpCompositeConstruct or OpConstantComposite
1121     - Handle some cases of nested structs
1122   - Dead branch elimination now can eliminate entire selection constructs
1123     when all arms are dead.
1124 - Compressing codec:
1125   - Updated algorithm to 1.01, 1.02, 1.03
1126   - Not built by default.  Use -DSPIRV_BUILD_COMPRESSION=ON to build.
1127   - Codec can be parameterized by a customized model.
1128 - Fixes:
1129   #728: Fix decoration of inlined functions
1130   #798: spirv-as should fail when given unrecognized long option
1131   #800: Inliner: Fix inlining function into header of multi-block loop
1132   #824: Eliminate-local-multi-store: Fix a crash
1133   #826: Elimiante-local-multi-store: Fix a crash
1134   #827: Fix crash when compact-ids transform runs before another transform.
1135   #834: Add Cmake option to build the compressing codec. Off by default.
1136   #911: Fix classification of Line and NoLine instructions
1137
1138v2017.0 2017-09-01
1139 - Update README to describe that assembler, disassembler, and binary parser support
1140   are based on grammar files from the SPIRV-Headers repository.
1141
1142v2016.7 2017-09-01
1143 - Add SPIR-V 1.2
1144 - OpenCL 2.2 support is now based on SPIR-V 1.2
1145 - Support AMD extensions in assembler, disassembler:
1146    SPV_AMD_gcn_shader
1147    SPV_AMD_shader_ballot
1148    SPV_AMD_shader_explicit_vertex_parameter
1149    SPV_AMD_shader_trinary_minmax
1150    SPV_AMD_gpu_shader_half_float
1151    SPV_AMD_texture_gather_bias_lod
1152    SPV_AMD_gpu_shader_int16
1153 - Optimizer: Add support for:
1154   - Inline all function calls in entry points.
1155   - Flatten decoration groups.  Fixes #602
1156   - Id compaction (minimize Id bound).  Fixes #624
1157   - Eliminate redundant composite insert followed by extract
1158   - Simplify access chains to local variables
1159   - Eliminate local variables with a single store, if possible
1160   - Eliminate local variables with a several stores, if possible
1161   - Eliminate loads and stores in same block to local variables
1162   - Eliminate redundant insert/extract to composite values
1163   - Aggressive dead instruction elimination
1164   - Eliminate dead branches
1165   - Merge blocks when the second can only be preceded by the first
1166   - Eliminate ommon uniform loads
1167 - Assembler: Add option to preserve numeric ids. Fixes #625
1168 - Add build target spirv-tools-vimsyntax to generate spvasm.vim, a SPIR-V
1169   assembly syntax file for Vim.
1170 - Version string: Allow overriding of wall clock timestamp with contents
1171   of environment variable SOURCE_DATE_EPOCH.
1172 - Validator implements relaxed rules for SPV_KHR_16bit_storage.
1173 - CMake installation rules use GNUInstallDirs.  For example, libraries
1174   will be installed into a lib64 directory if that's the norm for the
1175   current system.
1176 - Fixes:
1177   #500: Parameterize validator limit checks
1178   #508: Support compilation under CYGWIN
1179   #517: Fix validation when continue (or case) contstruct is also the head of a
1180     nested control construct.
1181   #551: If a merge block is reachable, it must be *strictly* dominated by its
1182     header.
1183   #548: Validator: Error when the reserved OpImageSparseSampleProj* opcodes
1184     are used.
1185   #611: spvtools::Optimizer was failing to save the module to the output
1186     binary vector when all passes succeded without changes.
1187   #629: The inline-entry-points-all optimization could generate invalidly
1188     structured code when the inlined function had early returns.
1189   #697: Optimizer's Instruction::ForEachInId method was skipping semantics-id
1190     and scope-id.
1191   #755: Inliner: Fix inlining of callee with single Return appearing before
1192     the end of the function.
1193   #776: Fix dead branch elimination in presence of complex but dead control
1194     flow.
1195   #781: SPV_KHR_variable_pointers allows duplicate pointer types
1196   #782: Inliner: Fix remapping of non-label forward references in callee
1197   #787: Inliner: Fix remapping of inlined entry block when called from
1198     single block loop.
1199   #790: Inliner: Fix remapping of inlined entry block when callee has
1200     multiple returns.
1201
1202v2016.6 2016-12-13
1203 - Published the C++ interface for assembling, disassembling, validation, and
1204   optimization.
1205 - Support SPV_KHR_shader_draw_parameters in assembler, disassembler, parser.
1206 - Validator:
1207   - Add validator API accepting raw binary words
1208   - Increased coverage:
1209     - Checks "Data rules" in Universal Validation Rules, section 2.16.1
1210     - WIP: Universal Limits.
1211       - The minimum mandated upper bounds are checked.
1212       - TODO: Parameterize the validator to allow larger limits accepted by
1213         a more than minimally capable implementation.
1214   - OpSampledImage checks
1215   - OpConstantComposite checks
1216   - Id bound check
1217 - Disasssembler:
1218   - Generates friendly GLSL-based names for more builtin variables
1219   - Generates friendly names for numeric OpConstant values
1220   - Vendor tool info extracted from SPIR-V XML registry file.
1221 - Fixes issues:
1222   #429: Validator: Allow OpTypeForwardPointer and OpTypeStruct to reference
1223     undefined IDs
1224   #482: Validator: OpVariable initializer can be an ID of a module-scope variable
1225
1226v2016.5 2016-09-16
1227 - Support SPV_KHR_shader_ballot in assembler, disassembler, parser.
1228 - Disassembler: Generate friendly names for built-in variables.
1229 - Partial fixes:
1230   #359: Add Emacs helper for automatically diassembling/assembling a SPIR-V
1231     binary on file load/save.
1232 - Fixes:
1233   #414: Validator: Allow OpUndef for composite constants
1234   #415: Validator: Phi can use its own value in some cases.
1235
1236v2016.4 2016-09-01
1237 - Relicensed under Apache 2.0
1238 - Add optimization passes (in API and spirv-opt command)
1239   - Fold spec constants defined with OpSpecConstantOp and
1240       OpSpecConstantComposite to normal constants with fixed value(s).
1241 - Fixes issues:
1242   #318: Relicensed under Apache 2.0
1243
1244v2016.3 2016-08-24
1245 - Add target environment enums for OpenCL 2.1, OpenCL 2.2,
1246   OpenGL 4.0, OpenGL 4.1, OpenGL 4.2, OpenGL 4.3, OpenGL 4.5.
1247 - Add spirv-cfg, an experimental tool to dump the control flow graph
1248   as a GraphiViz "dot" graph
1249 - Add optimization pass: Eliminate dead constants.
1250 - Add spirv-lesspipe.sh filter utility
1251 - Fixes issues:
1252   #288: Check def-use dominance rules for OpPhi (variable,parent) operands
1253   #339: Allow OpUndef in types-constants-global-vars section, as required
1254     by SPIR-V 1.0 Rev7, 1.1 Rev 3.
1255   #340: Avoid race on mkdir during build
1256   #365: Relax PointSize, ClipDistance, CullDistance capability check in all
1257     environments not just Vulkan 1.0.
1258
1259v2016.2 2016-08-05
1260 - Validator is incomplete
1261   - Checks ID use block is dominated by definition block
1262 - Add optimization passes (in API and spirv-opt command)
1263   - Strip debug info instructions
1264   - Freeze spec constant to their default values
1265 - Allow INotEqual as operation for OpSpecConstantOp
1266 - Fixes bugs:
1267   #270: validator: crash when continue construct is unreachable
1268   #279: validator: infinite loop when analyzing some degenerate control
1269     flow graphs
1270   #286: validator: don't incorrectly generate def-use error for
1271         (variable,parent) parameters to OpPhi
1272   #290: disassembler: never generate bare % for an identifier
1273   #295: validator: def-use dominance check should ignore unreachable uses
1274   #276: validator: allow unreachable continue constructs
1275   #297: validator: allow an unreachable block to branch to a reachable
1276         merge block
1277
1278v2016.1 2016-07-19
1279 - Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/261
1280   Turn off ClipDistance and CullDistance capability checks for Vulkan.
1281 - The disassembler can emit friendly names based on debug info (OpName
1282   instructions), and will infer somewhat friendly names for most types.
1283   This is turned on by default for the spirv-dis command line tool.
1284 - Updated to support SPIR-V 1.1 rev 2
1285   - Input StorageClass, Sampled1D capability, and SampledBuffer capability
1286     do not require Shader capability anymore.
1287
1288v2016.0 2016-07-04
1289
1290 - Adds v<year>.<index> versioning, with "-dev" indicating
1291   work in progress.  The intent is to more easly report
1292   and summarize functionality when SPIRV-Tools is incorporated
1293   in downstream projects.
1294
1295 - Summary of functionality (See the README.md for more):
1296   - Supports SPIR-V 1.1 Rev 1
1297   - Supports SPIR-V 1.0 Rev 5
1298   - Supports GLSL std450 extended instructions 1.0 Rev 3
1299   - Supports OpenCL extended instructions 1.0 Rev 2
1300   - Assembler, disassembler are complete
1301     - Supports floating point widths of 16, 32, 64 bits
1302     - Supports integer widths up to 64 bits
1303   - Validator is incomplete
1304     - Checks capability requirements in most cases
1305     - Checks module layout constraints
1306     - Checks ID use-definition ordering constraints,
1307       ignoring control flow
1308     - Checks some control flow graph rules
1309   - Optimizer is introduced, with few available transforms.
1310   - Supported on Linux, OSX, Android, Windows
1311
1312 - Fixes bugs:
1313   - #143: OpenCL pow and pown arguments
1314