aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/instructions/conversion.cpp
AgeCommit message (Collapse)Author
2020-08-01Stream SPIR-V instructions directly to a binaryReinUsesLisp
Before this commit sirit generated a stream of tokens that would then be inserted to the final SPIR-V binary. This design was carried from the initial design of manually inserting opcodes into the code. Now that all instructions but labels are inserted when their respective function is called, the old design can be dropped in favor of generating a valid stream of SPIR-V opcodes. The API for variables is broken, but adopting the new one is trivial. Instead of calling OpVariable and then adding a global or local variable, OpVariable was removed and global or local variables are generated when they are called. Avoiding duplicates is now done with an std::unordered_set instead of using a linear search jumping through vtables.
2019-07-14Relicense to The BSD 3-clause licenseReinUsesLisp
2019-03-11Change clang-format settingsReinUsesLisp
2019-03-11Sort macro defitions for image instructionsReinUsesLisp
2018-11-16Rename "insts" directory to "instructions"ReinUsesLisp