Implement the TreeTransform for AsTypeExpr. Split BuildAsTypeExpr
out of ActOnAsTypeExpr, such that we can call the Build method from
the TreeTransform.
Details
Details
- Reviewers
Anastasia - Commits
- rG2bbc9bccf095: [OpenCL] Support template parameters for as_type
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/test/SemaOpenCLCXX/template-astype.cl | ||
|---|---|---|
| 6 | could we also add another template with use of __builtin_astype directly? In case we change as_type implementation one day the clang builtin will still be tested too. :) | |
| clang/test/SemaOpenCLCXX/template-astype.cl | ||
|---|---|---|
| 6 | Sure, I can add extend this test with the following before committing, if that is okay with you? // Test __builtin_astype.
template <typename T>
auto templated_builtin_astype(T x) {
return __builtin_astype(x, int2);
}
auto test_builtin(char8 x) { return templated_builtin_astype(x); } | |
could we also add another template with use of __builtin_astype directly?
In case we change as_type implementation one day the clang builtin will still be tested too. :)