Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | video_core/shader/ast: Make ShowCurrentState() and SanityCheck() const member functions | Lioncash | 2019-10-18 | 1 | -3/+3 |
| | | | | | These can also trivially be made const member functions, with the addition of a few consts. | ||||
* | video_core/shader/ast: Make ASTManager::Print a const member function | Lioncash | 2019-10-18 | 1 | -2/+2 |
| | | | | | Given all visiting functions never modify the nodes, we can trivially make this a const member function. | ||||
* | video_core/shader/ast: Make ExprPrinter members private | Lioncash | 2019-10-18 | 1 | -1/+2 |
| | | | | | This member already has an accessor, so there's no need for it to be public. | ||||
* | video_core/shader/ast: Make Indent() return a string_view | Lioncash | 2019-10-18 | 1 | -14/+24 |
| | | | | | | | | The returned string is simply a substring of our constexpr tabs string_view, so we can just use a string_view here as well, since the original string_view is guaranteed to always exist. Now the function is fully non-allocating. | ||||
* | video_core/shader/ast: Make Indent() private | Lioncash | 2019-10-18 | 1 | -9/+9 |
| | | | | It's never used outside of this class, so we can narrow its scope down. | ||||
* | video_core/shader/ast: Rename Ident() to Indent() | Lioncash | 2019-10-18 | 1 | -13/+13 |
| | | | | | This can be confusing, given "ident" is generally used as a shorthand for "identifier". | ||||
* | video_core/shader/ast: Make use of fmt where applicable | Lioncash | 2019-10-18 | 1 | -14/+14 |
| | | | | | Makes a few strings nicer to read and also eliminates a bit of string churn with operator+. | ||||
* | video_core/ast: Make ShowCurrentState() take a string_view instead of std::string | Lioncash | 2019-10-05 | 1 | -1/+1 |
| | | | | Allows the function to be non-allocating in terms of the output string. | ||||
* | video_core/ast: Eliminate variable shadowing warnings | Lioncash | 2019-10-05 | 1 | -3/+3 |
| | |||||
* | video_core/ast: Replace std::string with a constexpr std::string_view | Lioncash | 2019-10-05 | 1 | -3/+1 |
| | | | | Same behavior, but without the need to heap allocate | ||||
* | video_core/ast: Default the move constructor and assignment operator | Lioncash | 2019-10-05 | 1 | -24/+0 |
| | | | | | This is behaviorally equivalent and also fixes a bug where some members weren't being moved over. | ||||
* | video_core/{ast, expr}: Use std::move where applicable | Lioncash | 2019-10-05 | 1 | -9/+11 |
| | | | | Avoids unnecessary atomic reference count increments and decrements. | ||||
* | video_core/ast: Supply const accessors for data where applicable | Lioncash | 2019-10-05 | 1 | -35/+31 |
| | | | | | Provides const equivalents of data accessors for use within const contexts. | ||||
* | Shader_ir: Address feedback | Fernando Sahmkow | 2019-10-05 | 1 | -41/+7 |
| | |||||
* | Shader_Ir: Address Feedback and clang format. | Fernando Sahmkow | 2019-10-05 | 1 | -4/+10 |
| | |||||
* | Shader_IR: clean up AST handling and add documentation. | Fernando Sahmkow | 2019-10-05 | 1 | -2/+6 |
| | |||||
* | Shader_IR: Correct OutwardMoves for Ifs | Fernando Sahmkow | 2019-10-05 | 1 | -22/+11 |
| | |||||
* | Shader_IR: corrections and clang-format | Fernando Sahmkow | 2019-10-05 | 1 | -69/+63 |
| | |||||
* | Shader_IR: allow else derivation to be optional. | Fernando Sahmkow | 2019-10-05 | 1 | -3/+6 |
| | |||||
* | Shader_IR: mark labels as unused for partial decompile. | Fernando Sahmkow | 2019-10-05 | 1 | -3/+1 |
| | |||||
* | Shader_Ir: Refactor Decompilation process and allow multiple decompilation modes. | Fernando Sahmkow | 2019-10-05 | 1 | -5/+93 |
| | |||||
* | gl_shader_decompiler: Implement AST decompiling | Fernando Sahmkow | 2019-10-05 | 1 | -5/+5 |
| | |||||
* | shader_ir: Declare Manager and pass it to appropiate programs. | Fernando Sahmkow | 2019-10-05 | 1 | -3/+136 |
| | |||||
* | shader_ir: Corrections to outward movements and misc stuffs | Fernando Sahmkow | 2019-10-05 | 1 | -48/+137 |
| | |||||
* | shader_ir: Add basic goto elimination | Fernando Sahmkow | 2019-10-05 | 1 | -16/+332 |
| | |||||
* | shader_ir: Initial Decompile Setup | Fernando Sahmkow | 2019-10-05 | 1 | -0/+180 |