-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[AMDGPU] Add test for failure with function !dbg info in amdgpu-lower-kernel-arguments #126146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
slinder1
merged 2 commits into
main
from
users/slinder1/02-06-_amdgpu_add_test_for_failure_with_function_dbg_info_in_amdgpu-lower-kernel-arguments
Feb 13, 2025
Merged
[AMDGPU] Add test for failure with function !dbg info in amdgpu-lower-kernel-arguments #126146
slinder1
merged 2 commits into
main
from
users/slinder1/02-06-_amdgpu_add_test_for_failure_with_function_dbg_info_in_amdgpu-lower-kernel-arguments
Feb 13, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-kernel-arguments
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Feb 6, 2025
@llvm/pr-subscribers-backend-amdgpu Author: Scott Linder (slinder1) ChangesFull diff: https://github.com/llvm/llvm-project/pull/126146.diff 1 Files Affected:
diff --git a/llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll b/llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll
new file mode 100644
index 00000000000000..fe110cbcafc465
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll
@@ -0,0 +1,27 @@
+; RUN: not --crash opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx940 -passes='amdgpu-attributor,function(amdgpu-lower-kernel-arguments)' -amdgpu-kernarg-preload-count=16 -S < %s 2>&1 | FileCheck %s
+
+; CHECK: function declaration may only have a unique !dbg attachment
+; CHECK-NEXT: ptr @0
+
+define amdgpu_kernel void @preload_block_count_x(ptr addrspace(1) %out) !dbg !4 {
+ %imp_arg_ptr = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
+ %load = load i32, ptr addrspace(4) %imp_arg_ptr, align 4
+ store i32 %load, ptr addrspace(1) %out, align 4
+ ret void
+}
+
+; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
+declare noundef align 4 ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr() #0
+
+attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
+
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!2, !3}
+
+!0 = distinct !DICompileUnit(language: DW_LANG_OpenCL, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
+!1 = !DIFile(filename: "<stdin>", directory: "/")
+!2 = !{i32 7, !"Dwarf Version", i32 5}
+!3 = !{i32 2, !"Debug Info Version", i32 3}
+!4 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !5, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)
+!5 = !DISubroutineType(cc: DW_CC_LLVM_OpenCLKernel, types: !6)
+!6 = !{null}
|
arsenm
reviewed
Feb 7, 2025
llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll
Outdated
Show resolved
Hide resolved
arsenm
reviewed
Feb 7, 2025
llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll
Outdated
Show resolved
Hide resolved
arsenm
approved these changes
Feb 11, 2025
joaosaffran
pushed a commit
to joaosaffran/llvm-project
that referenced
this pull request
Feb 14, 2025
…-kernel-arguments (llvm#126146)
sivan-shani
pushed a commit
to sivan-shani/llvm-project
that referenced
this pull request
Feb 24, 2025
…-kernel-arguments (llvm#126146)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.