kokkos / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Note: the repository does not accept github pull requests at this moment. Please submit your patches at http://reviews.llvm.org.
http://llvm.org
Other
4 stars 2 forks source link

Warn if kernel/fence does not have a name #18

Open DavidPoliakoff opened 4 years ago

DavidPoliakoff commented 4 years ago

This one shouldn't be too bad, something to the effect of

match callExpr(callee(functionDecl(namedDecl(matchesName("name_we_care_about")))),unless(hasAnyArgument(isStringish)))

Or I guess you could match the types of the parameters

match callExpr(callee(functionDecl(namedDecl(matchesName("name_we_care_about")),unless(hasAnyParameter(isStringish)))))

Guarantee that within Kokkos we name all of our kernels and fences