Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaitanyassr patch 1 #2

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
521223b
spirv-fuzz: Make functions "livesafe" during donation (#3146)
afd Jan 29, 2020
dd3f8d4
spirv-fuzz: Add outlining test (#3164)
afd Jan 29, 2020
1fc7a9e
spirv-fuzz: Arbitrary variable facts (#3165)
afd Jan 30, 2020
7a2d408
Fix typo in comment. (#3163)
afd Jan 30, 2020
0265a9d
Implement constant folding for many transcendentals (#3166)
zeux Feb 3, 2020
ddcc117
Update CHANGES
s-perron Feb 3, 2020
a9624b4
Handle TimeAMD in AmdExtensionToKhrPass. (#3168)
dnovillo Feb 3, 2020
b7e0998
spirv-fuzz: Disallow copying of null and undefined pointers (#3172)
afd Feb 4, 2020
fdd0c87
Update script that checks copyright years. (#3173)
afd Feb 4, 2020
bb56e89
spirv-fuzz: Fuzzer pass to add composite types (#3171)
afd Feb 4, 2020
76616ba
Update CHANGES
s-perron Feb 4, 2020
8dd1748
Finalize SPIRV-Tools v2020.1
s-perron Feb 4, 2020
da5457f
Start SPIRV-Tools v2020.2
s-perron Feb 4, 2020
a3b5ad9
Fix typos in opt's help. Update environment version. (#3170)
kuhar Feb 4, 2020
9e52bc0
utils/vscode: LSP - Support OpExtInst (#3140)
ben-clayton Feb 4, 2020
1f03ac1
spirv-fuzz: Fuzzer passes to add local and global variables (#3175)
afd Feb 5, 2020
fe10239
spirv-fuzz: Add fuzzer passes to add loads/stores (#3176)
afd Feb 6, 2020
3d4a0dd
spirv-fuzz: Ensure that donated variables are always initialized (#3181)
afd Feb 10, 2020
77fb303
spirv-fuzz: Fuzzer pass to add function calls (#3178)
afd Feb 10, 2020
6c218ec
spirv-fuzz: Fuzzer pass that adds access chains (#3182)
afd Feb 11, 2020
77fefe7
spirvfuzz: Fix type-related bug, change undef to zero, and add assert…
afd Feb 14, 2020
4d912f4
spirv-val: Add support for SPV_AMD_shader_image_load_store_lod (#3186)
samuelig Feb 18, 2020
79f8caf
vscode: Add missing fields to schema.Opcode (#3169)
ben-clayton Feb 18, 2020
03794b8
Fix static libraries linking order (#3189)
danyspin97 Feb 20, 2020
4a80497
Make spvOpcodeString part of the public API (#3174)
s-perron Feb 20, 2020
dea1040
Fix ignored const qualifier warning in static_cast (#3197)
rg3igalia Feb 21, 2020
03c9eff
Brief guide to writing a spirv-fuzz fuzzer pass (#3190)
afd Feb 21, 2020
c316fb1
Add missing dependencies when generating spvtools_core_tables (#3199)
vonture Feb 21, 2020
8910ea5
Fix Wrange-loop-analysis warnings in SPIRV-Tools. (#3201)
nico Feb 23, 2020
fb6e3e4
Combine extinst-name and extinst-output-base into one arg. (#3200)
vonture Feb 25, 2020
70f8881
Add validation rules for OpenCL.DebugInfo.100 extension (#3133)
jaebaek Feb 25, 2020
661e79e
Adding WebGPU specific Workgroup scope rule (#3204)
zoddicus Feb 28, 2020
e1688b6
Avoid use of Python distutils.dir_util (#3203)
dneto0 Feb 28, 2020
a6d3a2d
Refactor FuzzerPass::ApplyTransformation code duplication. (#3206)
andreperezmaselco Mar 4, 2020
044ecc0
spirv-fuzz: Fuzzer pass to add equation instructions (#3202)
afd Mar 4, 2020
66a682b
spirv-fuzz: Add swap commutable operands transformation (#3205)
afd Mar 5, 2020
da4cd21
spirv-fuzz: Use better function name (#3207)
afd Mar 6, 2020
533af49
spirv-fuzz: Add fuzzer pass to permute function parameters (#3212)
Vasniktel Mar 8, 2020
4c02704
spirv-fuzz: Add toggle access chain instruction transformation (#3211)
andreperezmaselco Mar 8, 2020
6594704
spirv-fuzz: Allow OpPhi operand to be replaced with a composite synon…
andreperezmaselco Mar 9, 2020
7c3de21
spirv-fuzz: Remove duplicated functionality (#3220)
Vasniktel Mar 9, 2020
dd3d916
Allow sampledimage types as operand of OpCopyObject (#3222)
jeffbolznv Mar 9, 2020
1af1df3
spirv-fuzz: Fix vector width issue in 'add equation instructions' pas…
afd Mar 12, 2020
6428ad0
spirv-fuzz: Support OpPhi when adding dead break and continue (#3225)
Vasniktel Mar 12, 2020
1fe9bcc
Instrument: Debug Printf support (#3215)
greg-lunarg Mar 12, 2020
7a8f797
Update dependencies (#3228)
Vasniktel Mar 13, 2020
25ede1c
Roll external/spirv-headers/ 30ef660ce..a17e17e36 (1 commit) (#3230)
null77 Mar 16, 2020
5a97e3a
Add support for KHR_ray_{query,tracing} extensions (#3235)
dgkoch Mar 17, 2020
18d3896
Whitelist SPV_EXT_demote_to_helper_invocation for opt passes (#3236)
ehsannas Mar 18, 2020
da52d08
Add RayQueryProvisionalKHR to opt types (#3239)
jiaolu Mar 19, 2020
60104cd
Add opt::Operand::AsCString and AsString (#3240)
dneto0 Mar 19, 2020
7f341ff
Make file formatting comply with POSIX standards (#3242)
aaronfranke Mar 23, 2020
e6f372c
Whitelist SPV_KHR_ray_tracing (#3241)
ehsannas Mar 23, 2020
1c8bda3
Add data structure for DebugScope, DebugDeclare in spirv-opt (#3183)
jaebaek Mar 23, 2020
1346dd5
Disallow phis of images, samplers and sampled images (#3246)
alan-baker Mar 23, 2020
022da4d
Fix identification of Vulkan images and buffers (#3253)
alan-baker Mar 25, 2020
3ef8fe9
Update CHANGES
s-perron Mar 26, 2020
fd8e130
Finalize SPIRV-Tools v2020.2
s-perron Mar 26, 2020
fd773eb
Start SPIRV-Tools v2020.3
s-perron Mar 26, 2020
c37c949
Validate Buffer and BufferBlock apply only to struct types (#3259)
cmarcelo Mar 31, 2020
f20c0d7
Set wrapped kill basic block's parent (#3269)
alan-baker Apr 1, 2020
af01d57
Update dominates to check for null nodes (#3271)
alan-baker Apr 2, 2020
2fdea57
spirv-fuzz: Add validator options (#3254)
afd Apr 2, 2020
8d4261b
spirv-fuzz: Introduce TransformationContext (#3272)
afd Apr 2, 2020
f28cdef
spirv-fuzz: Only replace regular ids with synonyms (#3255)
afd Apr 2, 2020
bfd25ac
spirv-fuzz: Limit adding of new variables to 'basic' types (#3257)
afd Apr 2, 2020
5d491a7
spirv-fuzz: Handle isomorphic types property in composite constructio…
afd Apr 2, 2020
e95fbfb
spirv-fuzz: Transformation to add OpConstantNull (#3273)
afd Apr 2, 2020
4af38c4
spirv-fuzz: Improve support for compute shaders in donation (#3277)
afd Apr 6, 2020
183e324
spirv-fuzz: Handle more general SPIR-V in donation (#3280)
afd Apr 7, 2020
538512e
spirv-fuzz: Improve the handling of equation facts (#3281)
afd Apr 7, 2020
d0490ef
Fix pch macro to ignore clang-cl (#3283)
Malacath-92 Apr 9, 2020
34be233
Handle more cases in dead member elim (#3289)
s-perron Apr 9, 2020
c531099
Update acorn version (#3294)
s-perron Apr 13, 2020
000040e
Preserve debug info in eliminate-dead-functions (#3251)
jaebaek Apr 13, 2020
e70d25f
Struct CFG analysus and single block loop (#3293)
s-perron Apr 13, 2020
ca57515
If SPIRV-Headers is in our tree, include it as subproject (#3299)
dneto0 Apr 14, 2020
4956644
Add tests for recently added command line option (#3297)
s-perron Apr 14, 2020
2a2bdbd
Remove implicit fallthrough (#3298)
alan-baker Apr 14, 2020
7d65bce
Sampled images as read-only storage (#3295)
s-perron Apr 14, 2020
7ce2db1
spirv-fuzz: Fix comment. (#3300)
afd Apr 14, 2020
f82d470
spirv-fuzz: Respect rules for OpSampledImage (#3287)
afd Apr 14, 2020
2f18046
spirv-fuzz: Handle image storage class in donation (#3290)
afd Apr 14, 2020
f460cca
spirv-fuzz: Handle OpRuntimeArray when replacing ids with synonyms (#…
afd Apr 14, 2020
c018fc6
spirv-fuzz: Do not outline regions that produce pointer outputs (#3291)
afd Apr 14, 2020
ed96301
spirv-fuzz: Fix to outliner (#3302)
afd Apr 15, 2020
61b7de3
Remove unreachable code. (#3304)
s-perron Apr 15, 2020
4226b7d
typo fix: in README.md exectuable->executable
Chaitanyassr Apr 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add tests for recently added command line option (KhronosGroup#3297)
We have not added tests for the new command line options recently.  I've
updated the test and fixed on option that was incorrect.

Fixes KhronosGroup#3247
  • Loading branch information
s-perron authored Apr 14, 2020
commit 495664489442ae99d283c5cfb191c6777d562c21
2 changes: 1 addition & 1 deletion source/opt/optimizer.cpp
Original file line number Diff line number Diff line change
@@ -498,7 +498,7 @@ bool Optimizer::RegisterPassFromFlag(const std::string& flag) {
} else if (pass_name == "legalize-vector-shuffle") {
RegisterPass(CreateLegalizeVectorShufflePass());
} else if (pass_name == "split-invalid-unreachable") {
RegisterPass(CreateLegalizeVectorShufflePass());
RegisterPass(CreateSplitInvalidUnreachablePass());
} else if (pass_name == "decompose-initialized-variables") {
RegisterPass(CreateDecomposeInitializedVariablesPass());
} else if (pass_name == "graphics-robust-access") {
14 changes: 12 additions & 2 deletions test/tools/opt/flags.py
Original file line number Diff line number Diff line change
@@ -73,7 +73,10 @@ class TestValidPassFlags(expect.ValidObjectFile1_5,
'--remove-duplicates', '--replace-invalid-opcode', '--ssa-rewrite',
'--scalar-replacement', '--scalar-replacement=42', '--strength-reduction',
'--strip-debug', '--strip-reflect', '--vector-dce', '--workaround-1209',
'--unify-const'
'--unify-const', '--legalize-vector-shuffle',
'--split-invalid-unreachable', '--generate-webgpu-initializers',
'--decompose-initialized-variables', '--graphics-robust-access',
'--wrap-opkill', '--amd-ext-to-khr'
]
expected_passes = [
'wrap-opkill',
@@ -120,7 +123,14 @@ class TestValidPassFlags(expect.ValidObjectFile1_5,
'strip-reflect',
'vector-dce',
'workaround-1209',
'unify-const'
'unify-const',
'legalize-vector-shuffle',
'split-invalid-unreachable',
'generate-webgpu-initializers',
'decompose-initialized-variables',
'graphics-robust-access',
'wrap-opkill',
'amd-ext-to-khr'
]
shader = placeholder.FileSPIRVShader(empty_main_assembly(), '.spvasm')
output = placeholder.TempFileName('output.spv')