[PATCH] D109144: [SPIR-V] Add SPIR-V triple architecture and clang target info
Anastasia Stulova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 9 04:02:17 PDT 2021
Anastasia added inline comments.
================
Comment at: clang/test/CodeGenOpenCL/spirv32_target.cl:12
+kernel void foo(global long *arg) {
+ int res1[sizeof(my_st) == 12 ? 1 : -1];
+ int res2[sizeof(void *) == 4 ? 1 : -1];
----------------
Are these lines tested somehow? You could change this into C++ for OpenCL test and use `static_assert` or find some other ways to test this...
However, this testing seems to overlap with the lines at the end... Could you please elaborate on the intent of this test?
Also if you don't plan this to be fundamentally different from testing of 64bit triple I think this should be merged with `spirv64_target.cl`. It will make things easier for the maintenance and further evolution.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109144/new/
https://reviews.llvm.org/D109144
More information about the llvm-commits
mailing list