[llvm] [KernelInfo] Implement new LLVM IR pass for GPU code analysis (PR #102944)

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 10:16:49 PDT 2024


================
@@ -0,0 +1,18 @@
+; Check when kernel-info is enabled in the AMD GPU target backend.
+
+; REQUIRES: amdgpu-registered-target
+
+; DEFINE: %{opt} = opt -disable-output %S/Inputs/test.ll \
+; DEFINE:              -mtriple="amdgcn-amd-amdhsa" 2>&1
+; DEFINE: %{fcheck-on} = FileCheck -match-full-lines %S/Inputs/test.ll
+; DEFINE: %{fcheck-off} = FileCheck -allow-empty -check-prefixes=NONE \
+; DEFINE:                 %S/Inputs/test.ll
+
----------------
jdenny-ornl wrote:

I don't know what you're asking.  This test checks when kernel-info is enabled by looking for its output, and it arbitrarily chooses `omp_target_num_teams` as the output to look for.  Do you want more bounds checking?  Do you want something else intsead?

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


More information about the llvm-commits mailing list