Sean Silva
e228aa4b11
npcomprt: add support for constants
...
- create tcp.global + tcp.get_global_memref
- create npcomprt.global + npcomprt.get_global
- LLVM lowering for new npcomprt ops
- Runtime:
- GlobalDescriptor struct emitted by LLVM lowering
- implement __npcomp_compiler_rt_get_global
Also,
- cleanly isolate all runtime data structure definitions shared by the
compiler and runtime into lib/runtime/CompilerDataStructures.h
2020-07-10 17:31:24 -07:00
Stella Laurenzo
2ba8296151
Add script tools/format_source.sh and run it on all python and c++ sources.
2020-06-13 14:53:54 -07:00
Stella Laurenzo
308a54c3d0
Bump llvm-project to 52cae05e087b3d4fd02849fc37c387c720055ffb (2020/6/10).
...
* Fixes compile errors from upstream.
* XFAIL several tests that are now failing to legalize (will hand off to Sean).
2020-06-11 16:10:05 -07:00
Sean Silva
98a38c3527
Add some anonymous namespaces.
...
This brings this code in line with the LLVM style guide and avoids
potential ODR issues.
2020-05-14 15:02:46 -07:00
Sean Silva
83db558db9
Update llvm-project to 310d32cb80a611e6384a921e85607fea05841f26
2020-05-11 15:12:47 -07:00
Sean Silva
fec2ee0072
Avoid introducing DimOp's in LowerBroadcastToToLoops.
...
This makes sure we stay resonably canonically using the shape machinery.
(In fact, DimOp should probably be in the shape dialect since it hides a
`shape.shape_of` call)
2020-05-11 13:12:16 -07:00
Sean Silva
e29aef855b
Initial TCF/TCP E2E seed.
...
Very much WIP.
This is enough to get tcf.add down to approximately the "linalg.generic
on buffers" level of abstraction. (but there are nuances)
2020-05-08 20:20:41 -07:00