Tristan Labelle
3f9a4ea842
One pass at reorganizing quick-tests.
2019-02-12 13:07:24 -08:00
Ehsan
ebb720ced3
[spirv] Support HLSL 'register(c#)' annotation. ( #1912 )
2019-02-12 10:07:20 -05:00
Tristan Labelle
c9d744fd88
Misc codegen test improvements ( #1918 )
...
* Added "crashes" test directory.
* Renamed a few tests.
* Added a test for initialization of structs with empty fields.
* Added a test for numerical conversions in inout arguments.
* Moved the builtin type inheritance test from codegen to front-end tests.
2019-02-11 15:20:44 -08:00
Xiang Li
af869d0f48
Take care debug info in scalarizer. ( #1917 )
...
* Take care debug info in scalarizer.
* Make sure vector is a vector in debug info.
2019-02-11 14:36:42 -08:00
Xiang Li
13ca9fb376
Add option when running opt editor. ( #1913 )
2019-02-11 09:16:27 -08:00
Tristan Labelle
ab24148bb0
Reenable tests for casts between type shapes that have been fixed ( #1909 )
2019-02-08 11:22:11 -08:00
Ehsan Nasiri
0cb2899a32
[spirv] Migration to v2 with latest SPIRV-Tools
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
21e8025507
[spirv] Support UAbs intrinsic function.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
fd9362c338
[spirv] Bring back accidentally deleted include.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
42182d5811
[spirv] Fix assertion statement in SpirvImageOp.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
dfbb130d47
[spirv] Handle error gracefully in createExternVar.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
b0f21f2f72
[spirv] Fix case sensitivity in file names.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
59d6973a84
[spirv] use std::ostringstream to build string.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
825156fd15
[spirv] Provide comments regarding aliasing work.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
3dd7d738f9
[spirv] Add some comments about hybrid type getters.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
b486eb362b
[spirv] Improve the hashing function for function type.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
21b82e4e51
[spirv] Creator of an instruction doesn't know its result-id.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
507d0ed4ba
[spirv] Creator of a function shouldn't know its result-id.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
a49715de95
[spirv] The creator of a BB shouldn't know its result-id.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
ea966012f9
[spirv] Add unit tests for SpirvBasicBlock.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
adf2332a37
[spirv] Use proper file names and delete unused tests
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
13f3baf9e0
[spirv] Consistent upper and lower case file names.
...
We were using "SPIRV" in some file names, and we were using
"Spirv" in other file names. To make everything consistent, I have
switched everything to the latter.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
67bab1ffdc
[spirv] Remove unused MapInfo struct.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
232dbd9981
[spirv] Add literal type hint for OpDot.
2019-02-08 13:46:44 -05:00
Ehsan
59fd684eeb
[spirv] Remove addStageBuiltinVar overloaded function.
2019-02-08 13:46:44 -05:00
Ehsan
8e0de8af20
[spirv] Fix build warning and missing lambda capture.
2019-02-08 13:46:44 -05:00
Ehsan
aa695490bf
[spirv] Remove remains of old code.
2019-02-08 13:46:44 -05:00
Ehsan
eb4614024c
[spirv] Fix typo in type checking.
2019-02-08 13:46:44 -05:00
Ehsan
471aaab03b
[spirv] Support non-fp MAD intrinsic function.
2019-02-08 13:46:44 -05:00
Ehsan
0f64c764cc
[spirv] '++' and '--' for RWTextures/RWBuffers.
2019-02-08 13:46:44 -05:00
Lei Zhang
f8c493f577
[spirv] Add support for VK_EXT_scalar_block_layout
...
Ref: https://github.com/KhronosGroup/Vulkan-Docs/issues/854
2019-02-08 13:46:44 -05:00
Lei Zhang
fd1f7bee5a
[spirv] Allow aliasing builtin variables
...
This behavior is supported by FXC.
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1690
2019-02-08 13:46:44 -05:00
Lei Zhang
5fb1e5313f
[spirv] Add half as allowed (RW)Buffer element type
...
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1672
2019-02-08 13:46:44 -05:00
Lei Zhang
5f0b492f46
[spirv] Add support for casting involving vector decomposition
...
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1673
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1675
Fixes https://github.com/Microsoft/DirectXShaderCompiler/issues/1676
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
429b1bfdee
[spirv] Clean up usage of FunctionType.
2019-02-08 13:46:44 -05:00
Ehsan
bacabde9b2
[spirv] Update internals of SpirvContext.
...
* Use DenseSet instead of Vector
* Hybrid types do not need to be unique.
2019-02-08 13:46:44 -05:00
Ehsan
538c3bdf38
[spirv] Add tests for hybrid struct in SpirvContext
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
f58542f1f2
[spirv] Add unit tests for SpirvContext.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
b257554a5f
[spirv] Remove old representation of type, constant, and decoration.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
246f19a4c9
[spirv] Add more visitors to LiteralTypeVisitor.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
1e9a00fc63
[spirv] Remove old comments/TODOs.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
a03f0e96bf
[spirv] Support for VectorToMatrix cast.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
6e19f0d4ae
[spirv] Remove TypeTranslator and ModuleBuilder.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
36c1cd728e
[spirv] Remove usages of TypeTranslator.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
af73a4c801
[spirv] Factor out Alignment and Size calculator.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
e1cdab8028
[spirv] No need to expose specific visitor headers.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
c87d08b2e5
[spirv] Clean up fuction look up.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
a1e4121da8
[spirv] Remove last usage of LiteralTypeVisitor from SPIRVEmitter
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
161c04d33c
[spirv] Remove LiteralTypeHint for APValues.
2019-02-08 13:46:44 -05:00
Ehsan Nasiri
66133978c3
[spirv] Remove usage of LiteralTypeHint (for array index).
2019-02-08 13:46:44 -05:00