Blender Git Loki
Git Commits -> Revision ee97978
May 23, 2016, 13:07 (GMT) |
Generate wrapper functions in LLVM for converting dual types to primitives. Currently Dual2 arguments are structs with the main value and 2 derivatives in x and y. Node functions will generally be implemented using the base types, so the value and derivatives have to be extracted and later combined using the chain rule. |
Commit Details:
Full Hash: ee9797808cd4043cd22b9475ee07d5298e9460d7
Parent Commit: fd6a3c8
Lines Changed: +777, -443
12 Modified Paths:
/source/blender/blenvm/llvm/llvm_codegen.cc (+320, -237) (Diff)
/source/blender/blenvm/llvm/llvm_codegen.h (+21, -18) (Diff)
/source/blender/blenvm/llvm/llvm_engine.cc (+43, -1) (Diff)
/source/blender/blenvm/llvm/llvm_modules.cc (+10, -22) (Diff)
/source/blender/blenvm/llvm/llvm_modules.h (+2, -1) (Diff)
/source/blender/blenvm/llvm/llvm_types.cc (+107, -0) (Diff)
/source/blender/blenvm/llvm/llvm_types.h (+88, -4) (Diff)
/source/blender/blenvm/modules/mod_base.h (+32, -32) (Diff)
/source/blender/blenvm/modules/mod_color.h (+3, -3) (Diff)
/source/blender/blenvm/modules/mod_defines.h (+29, -3) (Diff)
/source/blender/blenvm/modules/mod_math.h (+104, -104) (Diff)
/source/blender/blenvm/modules/mod_texture.h (+18, -18) (Diff)
/source/blender/blenvm/llvm/llvm_codegen.h (+21, -18) (Diff)
/source/blender/blenvm/llvm/llvm_engine.cc (+43, -1) (Diff)
/source/blender/blenvm/llvm/llvm_modules.cc (+10, -22) (Diff)
/source/blender/blenvm/llvm/llvm_modules.h (+2, -1) (Diff)
/source/blender/blenvm/llvm/llvm_types.cc (+107, -0) (Diff)
/source/blender/blenvm/llvm/llvm_types.h (+88, -4) (Diff)
/source/blender/blenvm/modules/mod_base.h (+32, -32) (Diff)
/source/blender/blenvm/modules/mod_color.h (+3, -3) (Diff)
/source/blender/blenvm/modules/mod_defines.h (+29, -3) (Diff)
/source/blender/blenvm/modules/mod_math.h (+104, -104) (Diff)
/source/blender/blenvm/modules/mod_texture.h (+18, -18) (Diff)