Commit graph

252 commits

Author SHA1 Message Date
water111 3616b790bd
Add more array stuff and clean up field access (#80)
* implement some array stuff and clean up field access

* update goal change log
2020-10-14 13:42:14 -04:00
water111 ef1e8b9072
Tweak logger settings to make logging happen in order (#73)
* tweak logger settings to make logging happen in order

* clang format
2020-10-11 19:55:29 -04:00
water b1759dbd13 Merge branch 'doctashay-logging2' 2020-10-11 19:12:14 -04:00
water 651579c4bb Merge branch 'logging' of https://github.com/doctashay/jak-project into doctashay-logging2 2020-10-11 19:07:50 -04:00
water111 1e1b5e7c00
Make decompiler more successful (#66)
* w/early-return-and-break

* more edge cases

* all instructions in non asm functions now convert to ir

* cleanup

* implement rarely used control flow in IR

* clang format
2020-10-11 18:27:44 -04:00
water111 30e0e4204b
Merge pull request #70 from xTVaser/ci/actions-improvements
Github Actions enhancements
2020-10-09 21:46:48 -04:00
Tyler Wilding 68d0bd2d7b Merge remote-tracking branch 'water111/master' into ci/actions-improvements 2020-10-09 21:40:40 -04:00
water111 119a975a48
Merge pull request #71 from water111/w/clean-up-warnings
Clean up some warnings and add some extra integer tests
2020-10-09 21:38:16 -04:00
Tyler Wilding eb7b52989b Update README with new badges 2020-10-09 21:38:13 -04:00
water f7abe9c5f8 clean up some warnings and add some extra integer tests 2020-10-09 21:28:41 -04:00
Tyler Wilding b39b6c8ce6 Unrelated: Add back pretty-print tests 2020-10-09 21:19:33 -04:00
Tyler Wilding 911a115c61 Merge remote-tracking branch 'water111/master' into ci/actions-improvements 2020-10-09 21:18:25 -04:00
Tyler Wilding d868b35c57 Disable ccache for now, causing coverage problems 2020-10-09 21:18:05 -04:00
water111 0a231afdbb
Merge pull request #67 from xTVaser/generative-tests
Create more general Test Framework and Organize the bulk of current tests
2020-10-09 21:11:34 -04:00
Tyler Wilding a5972e5111 Github Actions enhancements 2020-10-09 21:08:16 -04:00
Tyler Wilding 4429632618 Prevent overflow causing negative numbers to be positive 2020-10-09 20:45:55 -04:00
Tyler Wilding bf3344cdd3 Remove negative hex test, windows is too good 2020-10-09 20:33:35 -04:00
Tyler Wilding 6e1dea4a65 Disable -Wshadow, also flakey test, or linux issue? 2020-10-09 20:23:31 -04:00
Tyler Wilding c34c0a898d Use ubuntu 20.04 which has GCC 8 atleast 2020-10-09 20:15:44 -04:00
Tyler Wilding f712c615ce Fix remaining failing tests 2020-10-09 19:44:16 -04:00
Tyler Wilding 76bede157d Merge remote-tracking branch 'water111/master' into generative-tests 2020-10-09 13:31:08 -04:00
Tyler Wilding b99b63af65 lint: Clang format 2020-10-09 13:24:55 -04:00
Tyler Wilding 83f2751795 Make all tests hermetic, only the tests with kernel left 2020-10-09 13:23:41 -04:00
Shay 0f916ed81e More minor fixes
spdlog now builds as a library with nasm workaround
2020-10-08 22:39:12 -06:00
Shay 4ddacae897 Merge branch 'logging-test' into logging 2020-10-08 22:21:22 -06:00
doctashay e97098ce7d Fixes
It looks like spdlog is fully integrated as a git submodule now? Should be good to merge
2020-10-08 22:19:56 -06:00
doctashay 23d0880793 Git submodule stuff 2020-10-08 22:15:27 -06:00
water111 adc09d7c79
Merge pull request #69 from xTVaser/cmake-pprint-workaround
Fix CMake/NASM issue on windows caused by spdlog.  Temporarily workaround slow pprint test
2020-10-08 23:55:06 -04:00
Tyler Wilding 274418f12a Reduce time on windows pprint test until pretty-printer is improved 2020-10-08 23:48:36 -04:00
Tyler Wilding 1574c95e73 Workaround NASM bug on Windows/MSVC
https://gitlab.kitware.com/cmake/cmake/-/issues/19751
2020-10-08 23:48:07 -04:00
doctashay 4a443132ff Merge branch 'logging' of https://github.com/doctashay/jak-project into logging 2020-10-08 09:17:24 -06:00
doctashay 8d9b87cfed Cleanup PR 2020-10-08 09:16:34 -06:00
doctashay a2b744dfe0
Merge branch 'master' into logging 2020-10-08 09:08:13 -06:00
Tyler Wilding df6e6dd2a2 Create new categorized test classes, for the most part just a copy of current tests into new framework 2020-10-08 00:06:48 -04:00
Tyler Wilding 097a9157f5 Copy over LISP code 2020-10-08 00:05:01 -04:00
doctashay 9bbb47006c Small fixes
Logging names are now less ambiguous. We can adopt one of two styling conventions: create a logger object for each component of the project, and log every output into a large jak.log file; or we can have separate text files for the compiler log, runtime log, etc. I think the former will be the most efficient but may also make filtering harder.

Also replaced more old prints with spdlog equivalents
2020-10-06 16:18:59 -06:00
water111 a64dd6c90b
Add CFG to IR decompiler pass (#60)
* add some more cfg ir stuff

* add cond with else

* add type of recognition

* add cond to compare conversion

* finally all conds are passing

* started sc recognize, but ash min and max should be recognized first

* fix ash showing up as sc

* add abs

* fix merge issues

* try building goos with optimizations on

* sc mostly working, still need to fix right aligned nesting

* ands and ors are converting correctly now

* clean up
2020-10-06 18:14:27 -04:00
doctashay 953e7c1ad5 Temp fix for spdlog + initial log to file implementation
Reduces verbose output by logging additional information to logs/game.log.
2020-10-06 16:03:33 -06:00
Shay c5681a6cc7 Auto stash before merge of "logging" and "upstream/w/cfg_2_ir" 2020-10-06 15:35:57 -06:00
Shay 4f091fd62a Merge remote-tracking branch 'upstream/w/cfg_2_ir' into logging 2020-10-06 15:31:16 -06:00
water 387cce962d sc mostly working, still need to fix right aligned nesting 2020-10-05 21:38:45 -04:00
Shay 2d9f8c01fe Merge remote-tracking branch 'upstream/w/cfg_2_ir' into logging 2020-10-04 20:29:39 -06:00
water 6277bc86cf try building goos with optimizations on 2020-10-04 17:28:45 -04:00
water 5e2b9ddf6e fix merge issues 2020-10-04 17:23:30 -04:00
water d464ad549b Merge branch 'master' of https://github.com/water111/jak-project into w/cfg_2_ir 2020-10-04 17:23:07 -04:00
water111 b102d22dd9
Replace Form with goos::Object (#64)
* add pretty printing to goos form

* temp

* fix format

* fix format

* fix windows build

* again

* windows

* Revert "windows"

This reverts commit b7d448e733.

* windows again

* give up and just add a getter function
2020-10-04 17:08:10 -04:00
water f70ae6dad3 add abs 2020-10-04 11:37:47 -04:00
water 4b90634e93 fix ash showing up as sc 2020-10-04 10:44:28 -04:00
water e195e2b299 started sc recognize, but ash min and max should be recognized first 2020-10-03 21:30:58 -04:00
water 5bcd10b5b0 finally all conds are passing 2020-10-03 20:36:21 -04:00