[clang] [llvm] [Offload][Driver] Split frontend CUDA/HIP language assumptions from backend device (PR #212373)
Johannes Doerfert via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 12 14:14:20 PDT 2026
================
@@ -16,7 +16,12 @@ struct uint3 {
unsigned x = 0, y = 0, z = 0;
};
-using dim3 = uint3;
+struct dim3 {
+ dim3() = default;
+ dim3(unsigned X, unsigned Y = 1, unsigned Z = 1) : x(X), y(Y), z(Z) {}
+
+ unsigned x = 1, y = 1, z = 1;
----------------
jdoerfert wrote:
dim3 is 1 initialized?
https://github.com/llvm/llvm-project/pull/212373
More information about the cfe-commits
mailing list