llvm-project
ed262c36 - [Clang] [CUDA] Support ADL kernel launches (#240947)

Commit
5 hours ago
[Clang] [CUDA] Support ADL kernel launches (#240947) There are a few places where the parser checks if an identifier is the callee of a function call by looking at the next token and checking if it is a '('. This meant that kernel launches (where the next token is '<<<' instead) were incorrectly not being treated as calls sometimes; in particular, this led to ADL not functioning correctly with kernels (https://godbolt.org/z/zbr9fPn8G). This patch fixes that by checking for '<<<' alongside '(' where relevant. Fixes #45327. Assisted-by: Codex
Author
Parents
Loading