https://github.com/shader-slang/slang
Revision 77af111867eb72f26b460c5925be47aa22c71556 authored by Sai Praveen Bangaru on 30 June 2022, 23:24:24 UTC, committed by GitHub on 30 June 2022, 23:24:24 UTC
* Added JVPTranscriber to handle differentiation of load, store, var, param and return instructions, as well as conversion of data and function types

* Changed class names to be more in line with convention. Added correct type checking for __jvp() and verified that simple calls with only loads and stores are processed correctly

* Added logic to differentiate basic arithmetic and literals inside IRConstruct and fixed the way parameters are differentiated

* Replaced some SLANG_UNEXPECTED macro uses with diagnostics instead

* Added work-list-based on-demand generation of derivative functions

* Fixed up a couple of TODOs

* Added attribute [__custom_jvp(f)] to assign a custom derivative function to a declaration

* Added a test for CustomJVPAttribute on a redeclaration of an imported function

* Moving arithmetic test to new folder

* Moving arithmetic test to new folder (2)

* Added missing test module

* Fixed a minor note

Co-authored-by: Yong He <yonghe@outlook.com>
1 parent 2c09275
History
Tip revision: 77af111867eb72f26b460c5925be47aa22c71556 authored by Sai Praveen Bangaru on 30 June 2022, 23:24:24 UTC
Added `[__custom_jvp(func)]` attribute, and modified the derivative pass to only process referenced functions. (#2309)
Tip revision: 77af111
File Mode Size
.github
build
deps
docs
examples
external
extras
prelude
source
tests
tools
.editorconfig -rw-r--r-- 937 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 1.3 KB
.gitmodules -rw-r--r-- 951 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 6.1 KB
github_build.sh -rw-r--r-- 541 bytes
github_macos_build.sh -rw-r--r-- 568 bytes
github_test.sh -rw-r--r-- 1.2 KB
premake.bat -rw-r--r-- 120 bytes
premake5.lua -rw-r--r-- 55.0 KB
slang-com-helper.h -rw-r--r-- 4.9 KB
slang-com-ptr.h -rw-r--r-- 4.9 KB
slang-gfx.h -rw-r--r-- 80.4 KB
slang-tag-version.h -rw-r--r-- 36 bytes
slang.h -rw-r--r-- 184.6 KB
slang.sln -rw-r--r-- 40.5 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top