JulianKemmerer / PipelineC

A C-like hardware description language (HDL) adding high level synthesis(HLS)-like automatic pipelining as a language construct/compiler feature.
https://github.com/JulianKemmerer/PipelineC/wiki
GNU General Public License v3.0
606 stars 50 forks source link

Constant arguments can now propogate into function call instances #182

Open JulianKemmerer opened 1 year ago

JulianKemmerer commented 1 year ago

Final testing ...

JulianKemmerer commented 11 months ago

Broken still :fist:

#include "uintN_t.h"
#pragma MAIN main
uint16_t foo(uint16_t x, uint8_t y)
{
  return x + y;
}
uint16_t bar(uint16_t x, uint8_t y)
{
  return x - y;
}

uint16_t main(uint16_t x, uint8_t y)
{
  return foo(bar(x,y), 1);
}

and different for foo(foo(x,y), 1);