Skip to content

Commit

Permalink
Compiler: Remove passes from SanitizeVisitor
Browse files Browse the repository at this point in the history
this is to get a better view of the work remaining
  • Loading branch information
SirLynix committed Jul 3, 2024
1 parent a1d4cd2 commit 6f93431
Show file tree
Hide file tree
Showing 10 changed files with 279 additions and 547 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ jobs:
- name: Run unit tests and generate coverage output (Linux)
if: runner.os == 'Linux'
run: |
xmake run UnitTests
xmake run UnitTests sanitizing
gcovr -b -x coverage.out -s -f 'include/NZSL/.*' -f 'src/NZSL/.*' -e 'src/NZSL/SpirV/SpirvData.cpp' build/.objs/
- name: Run unit tests and generate coverage output (Windows)
if: runner.os == 'Windows'
shell: cmd
run: |
"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --export_type cobertura:coverage.out --sources "ShaderLang\include\NZSL\*" --sources "ShaderLang\src\NZSL\*" --excluded_sources "ShaderLang\src\NZSL\SpirV\SpirvData.cpp" --modules "ShaderLang\bin\*" --cover_children -- xmake run UnitTests
"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --export_type cobertura:coverage.out --sources "ShaderLang\include\NZSL\*" --sources "ShaderLang\src\NZSL\*" --excluded_sources "ShaderLang\src\NZSL\SpirV\SpirvData.cpp" --modules "ShaderLang\bin\*" --cover_children -- xmake run UnitTests sanitizing
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

# Run unit tests
- name: Run unit tests
run: xmake run UnitTests
run: xmake run UnitTests sanitizing

# Install the result files
- name: Install NZSL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:

# Run unit tests
- name: Run unit tests
run: xmake run UnitTests
run: xmake run UnitTests sanitizing

# Install the result files
- name: Install NZSL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/msys2-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

# Run unit tests
- name: Run unit tests
run: xmake run UnitTests
run: xmake run UnitTests sanitizing

# Install the result files
- name: Install NZSL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

# Run unit tests
- name: Run unit tests
run: xmake run UnitTests
run: xmake run UnitTests sanitizing

# Install the result files
- name: Install NZSL
Expand Down
6 changes: 0 additions & 6 deletions include/NZSL/Ast/SanitizeVisitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,10 @@ namespace nzsl::Ast
bool forceAutoBindingResolve = false;
bool makeVariableNameUnique = false;
bool partialSanitization = false;
bool reduceLoopsToWhile = false;
bool removeAliases = false;
bool removeCompoundAssignments = false;
bool removeConstArraySize = false;
bool removeMatrixBinaryAddSub = false;
bool removeMatrixCast = false;
bool removeOptionDeclaration = false;
bool removeScalarSwizzling = false;
bool removeSingleConstDeclaration = false;
bool splitMultipleBranches = false;
bool splitWrappedArrayAssignation = false;
bool splitWrappedStructAssignation = false;
bool useIdentifierAccessesForStructs = true;
Expand Down
Loading

0 comments on commit 6f93431

Please sign in to comment.