Merge pull request #234 from ChrisKitching/warningSpam

[HIPIFY] Do not process __fetch_builtin_* in cudaCall()

[ROCm/hip commit: 9151a355c6]
Этот коммит содержится в:
Evgeny Mankov
2017-10-27 21:30:42 +03:00
коммит произвёл GitHub
родитель aead033e41 78826f5512
Коммит a9c3228cb1
+9 -1
Просмотреть файл
@@ -765,7 +765,15 @@ void addAllMatchers(ast_matchers::MatchFinder &Finder, Cuda2HipCallback *Callbac
isExpansionInMainFile(),
callee(
functionDecl(
matchesName("cu.*")
matchesName("cu.*"),
unless(
// Clang generates structs with functions on them to represent things like
// threadIdx.x. We have other logic to handle those builtins directly, so
// we need to suppress the call-handling.
// We can't handle those directly in the call-handler without special-casing
// it unpleasantly, since the names of the functions are unique only per-struct.
matchesName("__fetch_builtin.*")
)
)
)
).bind("cudaCall"),