python regex-based preprocessor proof of concept

This commit is contained in:
2017-04-18 22:28:48 -04:00
parent d6cf38a929
commit 4182fa2967
4 changed files with 226 additions and 0 deletions

11
tests_ispcpp/hello.ispc Normal file
View File

@@ -0,0 +1,11 @@
export void saxpy(uniform int N,
uniform floating<0> scale,
uniform floating<1> X[],
uniform floating<1> Y[],
uniform floating<2> result[])
{
foreach (i = 0 ... N) {
floating<2> tmp = scale * X[i] + Y[i];
result[i] = tmp;
}
}