Commit Graph

204 Commits

Author SHA1 Message Date
William S. Moses 6ea4a343fd Fix upstream build 2021-12-01 14:51:48 -05:00
Morten Borup Petersen a1224cc23f Add a polygeist-opt tool
This commit adds a `polygeist-opt` command line tool. This allows us to drive each of the polygeist passes individually and as such lays the foundation for adding tests of the individual passes.

In doing so, a fair bit of restructuring/modifications of the various namespaces, function names etc. employed in the passes have been done. This was mostly due to inconsistensies in symbol names and namespaces which weren't being caught as errors due to missing inclusion of pass registration.
2021-11-29 11:14:19 -05:00
William S. Moses 2e6bb368ff Handle lvalue of preinc 2021-11-16 14:49:01 -06:00
William S. Moses 69387109c8 Fix GCC CI 2021-11-16 13:03:41 -06:00
William S. Moses f579f6ccc2 Fix lowering 2021-11-16 13:03:41 -06:00
William S. Moses 5a18d21671 Bump LLVM 2021-11-16 13:03:41 -06:00
William S. Moses 3750134088 Bump llvm 2021-11-16 13:03:41 -06:00
William S. Moses e90f4525d3 Add LLVM recursive lowering 2021-11-16 13:03:41 -06:00
William S. Moses dd211415a8 Fix struct abi mismatch 2021-11-16 13:03:41 -06:00
William S. Moses 06d2e89a7d Fix build on clang 2021-11-16 13:03:41 -06:00
Lorenzo Chelini 4c2323a4c0 fix clang-format 2021-11-12 11:53:04 +01:00
William S. Moses 016acada4e Handle Label & goto 2021-11-11 14:36:50 -05:00
William S. Moses 56c878e72d Update llvm 2021-11-11 10:40:08 -05:00
William S. Moses 02bd12f11a Bump layout api change 2021-11-11 10:40:08 -05:00
Lorenzo Chelini daeb952678 Move *Stmt methods to new house 2021-10-18 10:20:41 -04:00
Ruizhe Zhao 05c01b5644 [Test] make dynalloc more robust 2021-10-17 14:04:20 -04:00
William S. Moses 90c964a30f Cleanup 2021-10-17 10:05:47 -04:00
William S. Moses b715377690 Handle return 2021-10-17 10:05:47 -04:00
William S. Moses d832458d9b Ensure packed 2021-10-17 10:05:47 -04:00
William S. Moses fc19797b2a Fix capture mem2reg 2021-10-17 10:05:47 -04:00
William S. Moses 26bcbec66a Bump LLVM 2021-10-17 10:05:47 -04:00
William Moses 5e918f7e52
Enable nested constructors, and introduce pointer2memref (#91)
* Pointer 2 Memref handling

* Add tests

* Fix mem2reg
2021-10-15 13:32:16 -04:00
Ruizhe Zhao d6d2b445cc
[MLIR-CLANG][Op] Support XOr assign (#98)
* Added CHStone code

* Improved InitListExpr for multi-dimensional array

* Added XorAssign support

* Added test case for XOR

* Removed CHStone

* Removed unwanted obsoleted code

* Update mlir-clang.cc
2021-10-15 12:17:08 -04:00
Ruizhe Zhao cadc844ece
Resurrected memref-fullrank from #49 (#86)
* Fixed linkage issue due to incorrect macro defs

* Re-implemented memref-fullrank on the latest main

* Initial local static variable support

* Actually git add test

* Disable inliner for -O0 (#90)

* Disabled inliner when -O0 is present

* Added tests for no inline

* Added test case for -O1

* Checked -memref-fullrank in existing tests

Co-authored-by: William S. Moses <gh@wsmoses.com>
2021-10-15 17:10:07 +01:00
William S. Moses c0fd591a92 Add License file 2021-10-15 11:48:44 -04:00
Ruizhe Zhao 2ace9617dc
Improved InitListExpr for multi-dimensional array (#92)
* Improved InitListExpr for multi-dimensional array

* Moved around initialize function
2021-10-15 14:40:31 +01:00
Ruizhe Zhao 7fb45d07c4
nit: #define macro typo 2021-10-13 10:32:52 +01:00
William S. Moses e6e19d2165 Fixup 2021-10-12 23:49:21 -04:00
William S. Moses 1b373bbdb5 cleanup 2021-10-12 23:49:21 -04:00
William S. Moses 3edcacafae Functioning openmp input 2021-10-12 23:49:21 -04:00
William S. Moses b8d3f38614 Handle undef initialization 2021-10-12 23:49:21 -04:00
Lorenzo Chelini 00390fd4e9 Rename ValueWithOffsets to ValueCategory 2021-10-10 11:06:05 +02:00
Lorenzo Chelini 7f11a4dff7 Move ValueWithOffsets to new file 2021-10-10 11:06:05 +02:00
Lorenzo Chelini 6fe9e955f9 Cleaning ValueWithOffsets class 2021-10-10 11:06:05 +02:00
Lorenzo Chelini 47ead69080 Move AffineLoopDescriptor to a new file (NFC) 2021-10-10 11:06:05 +02:00
William S. Moses 1bd3675da5 Handle undef initialization 2021-10-09 13:16:04 -04:00
Ruizhe Zhao 9496b54cba
Disable inliner for -O0 (#90)
* Disabled inliner when -O0 is present

* Added tests for no inline

* Added test case for -O1
2021-10-08 21:05:31 +01:00
William S. Moses 21dbb3f6a7 Actually git add test 2021-10-07 14:51:06 -04:00
William S. Moses 0f0e355029 Initial local static variable support 2021-10-07 14:51:06 -04:00
Ruizhe Zhao 0a8983f0f2 Fixed linkage issue due to incorrect macro defs 2021-09-28 09:23:21 -04:00
William S. Moses b3573c2836 Add assertion message 2021-09-28 00:21:32 -04:00
William S. Moses cff309032c Fix format 2021-09-28 00:21:32 -04:00
William S. Moses 66e040d7e6 Add cuda functions to correct ABI/not use device variants 2021-09-28 00:21:32 -04:00
William S. Moses 972591e103 Correct parallel lower and related codegen 2021-09-28 00:21:32 -04:00
William S. Moses 1f07d68b2a no region 2021-09-28 00:21:32 -04:00
William S. Moses 7a37ea7f00 Don't inline empty region 2021-09-28 00:21:32 -04:00
William S. Moses b23d67d2d7 warning 2021-09-28 00:21:32 -04:00
William S. Moses c5c3ecacee initial destructor 2021-09-28 00:21:32 -04:00
William S. Moses 58a6931906 examine cuda mallic issue 2021-09-28 00:21:32 -04:00
William S. Moses 82cf51e6ee add cuda path 2021-09-28 00:21:32 -04:00