[clang] [AMDGPU] Support the OpenCL generic addrspace feature by default (PR #137636)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 07:11:56 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cl,h -- clang/lib/Basic/Targets/AMDGPU.h clang/test/Misc/amdgcn.languageOptsOpenCL.cl clang/test/Misc/r600.languageOptsOpenCL.cl
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Basic/Targets/AMDGPU.h b/clang/lib/Basic/Targets/AMDGPU.h
index aec6cda80..8ea544ba2 100644
--- a/clang/lib/Basic/Targets/AMDGPU.h
+++ b/clang/lib/Basic/Targets/AMDGPU.h
@@ -319,7 +319,8 @@ public:
Opts["__opencl_c_3d_image_writes"] = true;
Opts["cl_khr_3d_image_writes"] = true;
- Opts["__opencl_c_generic_address_space"] = GPUKind >= llvm::AMDGPU::GK_GFX700;
+ Opts["__opencl_c_generic_address_space"] =
+ GPUKind >= llvm::AMDGPU::GK_GFX700;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/137636
More information about the cfe-commits
mailing list