[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 13:13:32 PST 2024


================
@@ -2693,6 +2693,17 @@ An error will be given if:
   }];
 }
 
+def AMDGPULibFunDocs : Documentation {
+  let Category = DocCatAMDGPUAttributes;
+  let Content = [{
+The ``amdgpu_lib_fun`` attribute can be applied to a function for AMDGPU target
+to indicate it is a library function which are handled specially in backend.
+An AMDGPU library function is not internalized and can be used to fullfill
+calls generated by LLVM passes or instruction selection. Unused AMDGPU library
+functions will be eliminated by the backend.
----------------
yxsamliu wrote:

will do

https://github.com/llvm/llvm-project/pull/74737


More information about the cfe-commits mailing list