llvm.org GIT mirror llvm / 95d322b
[AMDGPU] Added a new metadata for multi grid sync implicit argument Patch by Christudasan Devadasan. Differential Revision: https://reviews.llvm.org/D63886 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365217 91177308-0d34-0410-b5e6-96231b3b80d8 Yaxun Liu 4 months ago
9 changed file(s) with 1118 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
13901390 the ancestor tree for determining
13911391 when the parent kernel has finished.
13921392
1393 "HiddenMultiGridSyncArg"
1394 A global address space pointer for
1395 multi-grid synchronization is
1396 passed in the kernarg.
1397
13931398 "ValueType" string Required Kernel argument value type. Only
13941399 present if "ValueKind" is
13951400 "ByValue". For vector data
18781883 to help link enqueued kernels into
18791884 the ancestor tree for determining
18801885 when the parent kernel has finished.
1886
1887 "hidden_multigrid_sync_arg"
1888 A global address space pointer for
1889 multi-grid synchronization is
1890 passed in the kernarg.
18811891
18821892 ".value_type" string Required Kernel argument value type. Only
18831893 present if ".value_kind" is
56955705 enqueue_kernel.
56965706 6 8 8 OpenCL address of AqlWrap struct used by
56975707 enqueue_kernel.
5708 7 8 8 Pointer argument used for Multi-gird
5709 synchronization.
56985710 ======== ==== ========= ===========================================
56995711
57005712 .. _amdgpu-hcc:
7373 HiddenPrintfBuffer = 11,
7474 HiddenDefaultQueue = 12,
7575 HiddenCompletionAction = 13,
76 HiddenMultiGridSyncArg = 14,
7677 Unknown = 0xff
7778 };
7879
120120 .Case("hidden_printf_buffer", true)
121121 .Case("hidden_default_queue", true)
122122 .Case("hidden_completion_action", true)
123 .Case("hidden_multigrid_sync_arg", true)
123124 .Default(false);
124125 }))
125126 return false;
6464 YIO.enumCase(EN, "HiddenDefaultQueue", ValueKind::HiddenDefaultQueue);
6565 YIO.enumCase(EN, "HiddenCompletionAction",
6666 ValueKind::HiddenCompletionAction);
67 YIO.enumCase(EN, "HiddenMultiGridSyncArg",
68 ValueKind::HiddenMultiGridSyncArg);
6769 }
6870 };
6971
434434 emitKernelArg(DL, Int8PtrTy, ValueKind::HiddenNone);
435435 }
436436 }
437
438 // Emit the pointer argument for multi-grid object.
439 if (HiddenArgNumBytes >= 56)
440 emitKernelArg(DL, Int8PtrTy, ValueKind::HiddenMultiGridSyncArg);
437441 }
438442
439443 bool MetadataStreamerV2::emitTo(AMDGPUTargetStreamer &TargetStreamer) {
863867 emitKernelArg(DL, Int8PtrTy, "hidden_none", Offset, Args);
864868 }
865869 }
870
871 // Emit the pointer argument for multi-grid object.
872 if (HiddenArgNumBytes >= 56)
873 emitKernelArg(DL, Int8PtrTy, "hidden_multigrid_sync_arg", Offset, Args);
866874 }
867875
868876 msgpack::MapDocNode
4343 ; CHECK-NOT: .value_kind: hidden_completion_action
4444 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
4545 ; CHECK-NEXT: .value_type: i8
46 ; CHECK: .value_kind: hidden_multigrid_sync_arg
47 ; CHECK-NEXT: .value_type: i8
4648 ; CHECK: .language: OpenCL C
4749 ; CHECK-NEXT: .language_version:
4850 ; CHECK-NEXT: - 2
8486 ; CHECK-NEXT: .size: 8
8587 ; CHECK-NEXT: .value_kind: hidden_none
8688 ; CHECK-NEXT: .value_type: i8
89 ; CHECK-NEXT: - .address_space: global
90 ; CHECK-NEXT: .offset: 48
91 ; CHECK-NEXT: .size: 8
92 ; CHECK-NEXT: .value_kind: hidden_none
93 ; CHECK-NEXT: .value_type: i8
94 ; CHECK-NEXT: - .address_space: global
95 ; CHECK-NEXT: .offset: 56
96 ; CHECK-NEXT: .size: 8
97 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
98 ; CHECK-NEXT: .value_type: i8
8799 ; CHECK: .language: OpenCL C
88100 ; CHECK-NEXT: .language_version:
89101 ; CHECK-NEXT: - 2
120132 ; CHECK-NEXT: .size: 8
121133 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
122134 ; CHECK-NEXT: .value_type: i8
135 ; CHECK-NEXT: - .address_space: global
136 ; CHECK-NEXT: .offset: 48
137 ; CHECK-NEXT: .size: 8
138 ; CHECK-NEXT: .value_kind: hidden_none
139 ; CHECK-NEXT: .value_type: i8
140 ; CHECK-NEXT: - .address_space: global
141 ; CHECK-NEXT: .offset: 56
142 ; CHECK-NEXT: .size: 8
143 ; CHECK-NEXT: .value_kind: hidden_none
144 ; CHECK-NEXT: .value_type: i8
145 ; CHECK-NEXT: - .address_space: global
146 ; CHECK-NEXT: .offset: 64
147 ; CHECK-NEXT: .size: 8
148 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
149 ; CHECK-NEXT: .value_type: i8
123150 ; CHECK: .language: OpenCL C
124151 ; CHECK-NEXT: .language_version:
125152 ; CHECK-NEXT: - 2
156183 ; CHECK-NEXT: .size: 8
157184 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
158185 ; CHECK-NEXT: .value_type: i8
186 ; CHECK-NEXT: - .address_space: global
187 ; CHECK-NEXT: .offset: 64
188 ; CHECK-NEXT: .size: 8
189 ; CHECK-NEXT: .value_kind: hidden_none
190 ; CHECK-NEXT: .value_type: i8
191 ; CHECK-NEXT: - .address_space: global
192 ; CHECK-NEXT: .offset: 72
193 ; CHECK-NEXT: .size: 8
194 ; CHECK-NEXT: .value_kind: hidden_none
195 ; CHECK-NEXT: .value_type: i8
196 ; CHECK-NEXT: - .address_space: global
197 ; CHECK-NEXT: .offset: 80
198 ; CHECK-NEXT: .size: 8
199 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
200 ; CHECK-NEXT: .value_type: i8
159201 ; CHECK: .language: OpenCL C
160202 ; CHECK-NEXT: .language_version:
161203 ; CHECK-NEXT: - 2
192234 ; CHECK-NEXT: .size: 8
193235 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
194236 ; CHECK-NEXT: .value_type: i8
237 ; CHECK-NEXT: - .address_space: global
238 ; CHECK-NEXT: .offset: 48
239 ; CHECK-NEXT: .size: 8
240 ; CHECK-NEXT: .value_kind: hidden_none
241 ; CHECK-NEXT: .value_type: i8
242 ; CHECK-NEXT: - .address_space: global
243 ; CHECK-NEXT: .offset: 56
244 ; CHECK-NEXT: .size: 8
245 ; CHECK-NEXT: .value_kind: hidden_none
246 ; CHECK-NEXT: .value_type: i8
247 ; CHECK-NEXT: - .address_space: global
248 ; CHECK-NEXT: .offset: 64
249 ; CHECK-NEXT: .size: 8
250 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
251 ; CHECK-NEXT: .value_type: i8
195252 ; CHECK: .language: OpenCL C
196253 ; CHECK-NEXT: .language_version:
197254 ; CHECK-NEXT: - 2
228285 ; CHECK-NEXT: .size: 8
229286 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
230287 ; CHECK-NEXT: .value_type: i8
288 ; CHECK-NEXT: - .address_space: global
289 ; CHECK-NEXT: .offset: 96
290 ; CHECK-NEXT: .size: 8
291 ; CHECK-NEXT: .value_kind: hidden_none
292 ; CHECK-NEXT: .value_type: i8
293 ; CHECK-NEXT: - .address_space: global
294 ; CHECK-NEXT: .offset: 104
295 ; CHECK-NEXT: .size: 8
296 ; CHECK-NEXT: .value_kind: hidden_none
297 ; CHECK-NEXT: .value_type: i8
298 ; CHECK-NEXT: - .address_space: global
299 ; CHECK-NEXT: .offset: 112
300 ; CHECK-NEXT: .size: 8
301 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
302 ; CHECK-NEXT: .value_type: i8
231303 ; CHECK: .language: OpenCL C
232304 ; CHECK-NEXT: .language_version:
233305 ; CHECK-NEXT: - 2
264336 ; CHECK-NEXT: .size: 8
265337 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
266338 ; CHECK-NEXT: .value_type: i8
339 ; CHECK-NEXT: - .address_space: global
340 ; CHECK-NEXT: .offset: 160
341 ; CHECK-NEXT: .size: 8
342 ; CHECK-NEXT: .value_kind: hidden_none
343 ; CHECK-NEXT: .value_type: i8
344 ; CHECK-NEXT: - .address_space: global
345 ; CHECK-NEXT: .offset: 168
346 ; CHECK-NEXT: .size: 8
347 ; CHECK-NEXT: .value_kind: hidden_none
348 ; CHECK-NEXT: .value_type: i8
349 ; CHECK-NEXT: - .address_space: global
350 ; CHECK-NEXT: .offset: 176
351 ; CHECK-NEXT: .size: 8
352 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
353 ; CHECK-NEXT: .value_type: i8
267354 ; CHECK: .language: OpenCL C
268355 ; CHECK-NEXT: .language_version:
269356 ; CHECK-NEXT: - 2
301388 ; CHECK-NEXT: .size: 8
302389 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
303390 ; CHECK-NEXT: .value_type: i8
391 ; CHECK-NEXT: - .address_space: global
392 ; CHECK-NEXT: .offset: 40
393 ; CHECK-NEXT: .size: 8
394 ; CHECK-NEXT: .value_kind: hidden_none
395 ; CHECK-NEXT: .value_type: i8
396 ; CHECK-NEXT: - .address_space: global
397 ; CHECK-NEXT: .offset: 48
398 ; CHECK-NEXT: .size: 8
399 ; CHECK-NEXT: .value_kind: hidden_none
400 ; CHECK-NEXT: .value_type: i8
401 ; CHECK-NEXT: - .address_space: global
402 ; CHECK-NEXT: .offset: 56
403 ; CHECK-NEXT: .size: 8
404 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
405 ; CHECK-NEXT: .value_type: i8
304406 ; CHECK: .language: OpenCL C
305407 ; CHECK-NEXT: .language_version:
306408 ; CHECK-NEXT: - 2
338440 ; CHECK-NEXT: .size: 8
339441 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
340442 ; CHECK-NEXT: .value_type: i8
443 ; CHECK-NEXT: - .address_space: global
444 ; CHECK-NEXT: .offset: 40
445 ; CHECK-NEXT: .size: 8
446 ; CHECK-NEXT: .value_kind: hidden_none
447 ; CHECK-NEXT: .value_type: i8
448 ; CHECK-NEXT: - .address_space: global
449 ; CHECK-NEXT: .offset: 48
450 ; CHECK-NEXT: .size: 8
451 ; CHECK-NEXT: .value_kind: hidden_none
452 ; CHECK-NEXT: .value_type: i8
453 ; CHECK-NEXT: - .address_space: global
454 ; CHECK-NEXT: .offset: 56
455 ; CHECK-NEXT: .size: 8
456 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
457 ; CHECK-NEXT: .value_type: i8
341458 ; CHECK: .language: OpenCL C
342459 ; CHECK-NEXT: .language_version:
343460 ; CHECK-NEXT: - 2
374491 ; CHECK-NEXT: .size: 8
375492 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
376493 ; CHECK-NEXT: .value_type: i8
494 ; CHECK-NEXT: - .address_space: global
495 ; CHECK-NEXT: .offset: 40
496 ; CHECK-NEXT: .size: 8
497 ; CHECK-NEXT: .value_kind: hidden_none
498 ; CHECK-NEXT: .value_type: i8
499 ; CHECK-NEXT: - .address_space: global
500 ; CHECK-NEXT: .offset: 48
501 ; CHECK-NEXT: .size: 8
502 ; CHECK-NEXT: .value_kind: hidden_none
503 ; CHECK-NEXT: .value_type: i8
504 ; CHECK-NEXT: - .address_space: global
505 ; CHECK-NEXT: .offset: 56
506 ; CHECK-NEXT: .size: 8
507 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
508 ; CHECK-NEXT: .value_type: i8
377509 ; CHECK: .language: OpenCL C
378510 ; CHECK-NEXT: .language_version:
379511 ; CHECK-NEXT: - 2
411543 ; CHECK-NEXT: .size: 8
412544 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
413545 ; CHECK-NEXT: .value_type: i8
546 ; CHECK-NEXT: - .address_space: global
547 ; CHECK-NEXT: .offset: 40
548 ; CHECK-NEXT: .size: 8
549 ; CHECK-NEXT: .value_kind: hidden_none
550 ; CHECK-NEXT: .value_type: i8
551 ; CHECK-NEXT: - .address_space: global
552 ; CHECK-NEXT: .offset: 48
553 ; CHECK-NEXT: .size: 8
554 ; CHECK-NEXT: .value_kind: hidden_none
555 ; CHECK-NEXT: .value_type: i8
556 ; CHECK-NEXT: - .address_space: global
557 ; CHECK-NEXT: .offset: 56
558 ; CHECK-NEXT: .size: 8
559 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
560 ; CHECK-NEXT: .value_type: i8
414561 ; CHECK: .language: OpenCL C
415562 ; CHECK-NEXT: .language_version:
416563 ; CHECK-NEXT: - 2
448595 ; CHECK-NEXT: .size: 8
449596 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
450597 ; CHECK-NEXT: .value_type: i8
598 ; CHECK-NEXT: - .address_space: global
599 ; CHECK-NEXT: .offset: 40
600 ; CHECK-NEXT: .size: 8
601 ; CHECK-NEXT: .value_kind: hidden_none
602 ; CHECK-NEXT: .value_type: i8
603 ; CHECK-NEXT: - .address_space: global
604 ; CHECK-NEXT: .offset: 48
605 ; CHECK-NEXT: .size: 8
606 ; CHECK-NEXT: .value_kind: hidden_none
607 ; CHECK-NEXT: .value_type: i8
608 ; CHECK-NEXT: - .address_space: global
609 ; CHECK-NEXT: .offset: 56
610 ; CHECK-NEXT: .size: 8
611 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
612 ; CHECK-NEXT: .value_type: i8
451613 ; CHECK: .language: OpenCL C
452614 ; CHECK-NEXT: .language_version:
453615 ; CHECK-NEXT: - 2
484646 ; CHECK-NEXT: .size: 8
485647 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
486648 ; CHECK-NEXT: .value_type: i8
649 ; CHECK-NEXT: - .address_space: global
650 ; CHECK-NEXT: .offset: 48
651 ; CHECK-NEXT: .size: 8
652 ; CHECK-NEXT: .value_kind: hidden_none
653 ; CHECK-NEXT: .value_type: i8
654 ; CHECK-NEXT: - .address_space: global
655 ; CHECK-NEXT: .offset: 56
656 ; CHECK-NEXT: .size: 8
657 ; CHECK-NEXT: .value_kind: hidden_none
658 ; CHECK-NEXT: .value_type: i8
659 ; CHECK-NEXT: - .address_space: global
660 ; CHECK-NEXT: .offset: 64
661 ; CHECK-NEXT: .size: 8
662 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
663 ; CHECK-NEXT: .value_type: i8
487664 ; CHECK: .language: OpenCL C
488665 ; CHECK-NEXT: .language_version:
489666 ; CHECK-NEXT: - 2
531708 ; CHECK-NEXT: .offset: 40
532709 ; CHECK-NEXT: .size: 8
533710 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
711 ; CHECK-NEXT: .value_type: i8
712 ; CHECK-NEXT: - .address_space: global
713 ; CHECK-NEXT: .offset: 48
714 ; CHECK-NEXT: .size: 8
715 ; CHECK-NEXT: .value_kind: hidden_none
716 ; CHECK-NEXT: .value_type: i8
717 ; CHECK-NEXT: - .address_space: global
718 ; CHECK-NEXT: .offset: 56
719 ; CHECK-NEXT: .size: 8
720 ; CHECK-NEXT: .value_kind: hidden_none
721 ; CHECK-NEXT: .value_type: i8
722 ; CHECK-NEXT: - .address_space: global
723 ; CHECK-NEXT: .offset: 64
724 ; CHECK-NEXT: .size: 8
725 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
534726 ; CHECK-NEXT: .value_type: i8
535727 ; CHECK: .language: OpenCL C
536728 ; CHECK-NEXT: .language_version:
584776 ; CHECK-NEXT: .size: 8
585777 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
586778 ; CHECK-NEXT: .value_type: i8
779 ; CHECK-NEXT: - .address_space: global
780 ; CHECK-NEXT: .offset: 56
781 ; CHECK-NEXT: .size: 8
782 ; CHECK-NEXT: .value_kind: hidden_none
783 ; CHECK-NEXT: .value_type: i8
784 ; CHECK-NEXT: - .address_space: global
785 ; CHECK-NEXT: .offset: 64
786 ; CHECK-NEXT: .size: 8
787 ; CHECK-NEXT: .value_kind: hidden_none
788 ; CHECK-NEXT: .value_type: i8
789 ; CHECK-NEXT: - .address_space: global
790 ; CHECK-NEXT: .offset: 72
791 ; CHECK-NEXT: .size: 8
792 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
793 ; CHECK-NEXT: .value_type: i8
587794 ; CHECK: .language: OpenCL C
588795 ; CHECK-NEXT: .language_version:
589796 ; CHECK-NEXT: - 2
641848 ; CHECK-NEXT: .size: 8
642849 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
643850 ; CHECK-NEXT: .value_type: i8
851 ; CHECK-NEXT: - .address_space: global
852 ; CHECK-NEXT: .offset: 56
853 ; CHECK-NEXT: .size: 8
854 ; CHECK-NEXT: .value_kind: hidden_none
855 ; CHECK-NEXT: .value_type: i8
856 ; CHECK-NEXT: - .address_space: global
857 ; CHECK-NEXT: .offset: 64
858 ; CHECK-NEXT: .size: 8
859 ; CHECK-NEXT: .value_kind: hidden_none
860 ; CHECK-NEXT: .value_type: i8
861 ; CHECK-NEXT: - .address_space: global
862 ; CHECK-NEXT: .offset: 72
863 ; CHECK-NEXT: .size: 8
864 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
865 ; CHECK-NEXT: .value_type: i8
644866 ; CHECK: .language: OpenCL C
645867 ; CHECK-NEXT: .language_version:
646868 ; CHECK-NEXT: - 2
697919 ; CHECK-NEXT: .size: 8
698920 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
699921 ; CHECK-NEXT: .value_type: i8
922 ; CHECK-NEXT: - .address_space: global
923 ; CHECK-NEXT: .offset: 56
924 ; CHECK-NEXT: .size: 8
925 ; CHECK-NEXT: .value_kind: hidden_none
926 ; CHECK-NEXT: .value_type: i8
927 ; CHECK-NEXT: - .address_space: global
928 ; CHECK-NEXT: .offset: 64
929 ; CHECK-NEXT: .size: 8
930 ; CHECK-NEXT: .value_kind: hidden_none
931 ; CHECK-NEXT: .value_type: i8
932 ; CHECK-NEXT: - .address_space: global
933 ; CHECK-NEXT: .offset: 72
934 ; CHECK-NEXT: .size: 8
935 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
936 ; CHECK-NEXT: .value_type: i8
700937 ; CHECK: .language: OpenCL C
701938 ; CHECK-NEXT: .language_version:
702939 ; CHECK-NEXT: - 2
735972 ; CHECK-NEXT: .size: 8
736973 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
737974 ; CHECK-NEXT: .value_type: i8
975 ; CHECK-NEXT: - .address_space: global
976 ; CHECK-NEXT: .offset: 40
977 ; CHECK-NEXT: .size: 8
978 ; CHECK-NEXT: .value_kind: hidden_none
979 ; CHECK-NEXT: .value_type: i8
980 ; CHECK-NEXT: - .address_space: global
981 ; CHECK-NEXT: .offset: 48
982 ; CHECK-NEXT: .size: 8
983 ; CHECK-NEXT: .value_kind: hidden_none
984 ; CHECK-NEXT: .value_type: i8
985 ; CHECK-NEXT: - .address_space: global
986 ; CHECK-NEXT: .offset: 56
987 ; CHECK-NEXT: .size: 8
988 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
989 ; CHECK-NEXT: .value_type: i8
738990 ; CHECK: .language: OpenCL C
739991 ; CHECK-NEXT: .language_version:
740992 ; CHECK-NEXT: - 2
7721024 ; CHECK-NEXT: .size: 8
7731025 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
7741026 ; CHECK-NEXT: .value_type: i8
1027 ; CHECK-NEXT: - .address_space: global
1028 ; CHECK-NEXT: .offset: 40
1029 ; CHECK-NEXT: .size: 8
1030 ; CHECK-NEXT: .value_kind: hidden_none
1031 ; CHECK-NEXT: .value_type: i8
1032 ; CHECK-NEXT: - .address_space: global
1033 ; CHECK-NEXT: .offset: 48
1034 ; CHECK-NEXT: .size: 8
1035 ; CHECK-NEXT: .value_kind: hidden_none
1036 ; CHECK-NEXT: .value_type: i8
1037 ; CHECK-NEXT: - .address_space: global
1038 ; CHECK-NEXT: .offset: 56
1039 ; CHECK-NEXT: .size: 8
1040 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1041 ; CHECK-NEXT: .value_type: i8
7751042 ; CHECK: .language: OpenCL C
7761043 ; CHECK-NEXT: .language_version:
7771044 ; CHECK-NEXT: - 2
8091076 ; CHECK-NEXT: .size: 8
8101077 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
8111078 ; CHECK-NEXT: .value_type: i8
1079 ; CHECK-NEXT: - .address_space: global
1080 ; CHECK-NEXT: .offset: 40
1081 ; CHECK-NEXT: .size: 8
1082 ; CHECK-NEXT: .value_kind: hidden_none
1083 ; CHECK-NEXT: .value_type: i8
1084 ; CHECK-NEXT: - .address_space: global
1085 ; CHECK-NEXT: .offset: 48
1086 ; CHECK-NEXT: .size: 8
1087 ; CHECK-NEXT: .value_kind: hidden_none
1088 ; CHECK-NEXT: .value_type: i8
1089 ; CHECK-NEXT: - .address_space: global
1090 ; CHECK-NEXT: .offset: 56
1091 ; CHECK-NEXT: .size: 8
1092 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1093 ; CHECK-NEXT: .value_type: i8
8121094 ; CHECK: .language: OpenCL C
8131095 ; CHECK-NEXT: .language_version:
8141096 ; CHECK-NEXT: - 2
8461128 ; CHECK-NEXT: .size: 8
8471129 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
8481130 ; CHECK-NEXT: .value_type: i8
1131 ; CHECK-NEXT: - .address_space: global
1132 ; CHECK-NEXT: .offset: 40
1133 ; CHECK-NEXT: .size: 8
1134 ; CHECK-NEXT: .value_kind: hidden_none
1135 ; CHECK-NEXT: .value_type: i8
1136 ; CHECK-NEXT: - .address_space: global
1137 ; CHECK-NEXT: .offset: 48
1138 ; CHECK-NEXT: .size: 8
1139 ; CHECK-NEXT: .value_kind: hidden_none
1140 ; CHECK-NEXT: .value_type: i8
1141 ; CHECK-NEXT: - .address_space: global
1142 ; CHECK-NEXT: .offset: 56
1143 ; CHECK-NEXT: .size: 8
1144 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1145 ; CHECK-NEXT: .value_type: i8
8491146 ; CHECK: .language: OpenCL C
8501147 ; CHECK-NEXT: .language_version:
8511148 ; CHECK-NEXT: - 2
8831180 ; CHECK-NEXT: .size: 8
8841181 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
8851182 ; CHECK-NEXT: .value_type: i8
1183 ; CHECK-NEXT: - .address_space: global
1184 ; CHECK-NEXT: .offset: 40
1185 ; CHECK-NEXT: .size: 8
1186 ; CHECK-NEXT: .value_kind: hidden_none
1187 ; CHECK-NEXT: .value_type: i8
1188 ; CHECK-NEXT: - .address_space: global
1189 ; CHECK-NEXT: .offset: 48
1190 ; CHECK-NEXT: .size: 8
1191 ; CHECK-NEXT: .value_kind: hidden_none
1192 ; CHECK-NEXT: .value_type: i8
1193 ; CHECK-NEXT: - .address_space: global
1194 ; CHECK-NEXT: .offset: 56
1195 ; CHECK-NEXT: .size: 8
1196 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1197 ; CHECK-NEXT: .value_type: i8
8861198 ; CHECK: .language: OpenCL C
8871199 ; CHECK-NEXT: .language_version:
8881200 ; CHECK-NEXT: - 2
9201232 ; CHECK-NEXT: .size: 8
9211233 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
9221234 ; CHECK-NEXT: .value_type: i8
1235 ; CHECK-NEXT: - .address_space: global
1236 ; CHECK-NEXT: .offset: 40
1237 ; CHECK-NEXT: .size: 8
1238 ; CHECK-NEXT: .value_kind: hidden_none
1239 ; CHECK-NEXT: .value_type: i8
1240 ; CHECK-NEXT: - .address_space: global
1241 ; CHECK-NEXT: .offset: 48
1242 ; CHECK-NEXT: .size: 8
1243 ; CHECK-NEXT: .value_kind: hidden_none
1244 ; CHECK-NEXT: .value_type: i8
1245 ; CHECK-NEXT: - .address_space: global
1246 ; CHECK-NEXT: .offset: 56
1247 ; CHECK-NEXT: .size: 8
1248 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1249 ; CHECK-NEXT: .value_type: i8
9231250 ; CHECK: .language: OpenCL C
9241251 ; CHECK-NEXT: .language_version:
9251252 ; CHECK-NEXT: - 2
9571284 ; CHECK-NEXT: .size: 8
9581285 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
9591286 ; CHECK-NEXT: .value_type: i8
1287 ; CHECK-NEXT: - .address_space: global
1288 ; CHECK-NEXT: .offset: 40
1289 ; CHECK-NEXT: .size: 8
1290 ; CHECK-NEXT: .value_kind: hidden_none
1291 ; CHECK-NEXT: .value_type: i8
1292 ; CHECK-NEXT: - .address_space: global
1293 ; CHECK-NEXT: .offset: 48
1294 ; CHECK-NEXT: .size: 8
1295 ; CHECK-NEXT: .value_kind: hidden_none
1296 ; CHECK-NEXT: .value_type: i8
1297 ; CHECK-NEXT: - .address_space: global
1298 ; CHECK-NEXT: .offset: 56
1299 ; CHECK-NEXT: .size: 8
1300 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1301 ; CHECK-NEXT: .value_type: i8
9601302 ; CHECK: .language: OpenCL C
9611303 ; CHECK-NEXT: .language_version:
9621304 ; CHECK-NEXT: - 2
9931335 ; CHECK-NEXT: .offset: 32
9941336 ; CHECK-NEXT: .size: 8
9951337 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
1338 ; CHECK-NEXT: .value_type: i8
1339 ; CHECK-NEXT: - .address_space: global
1340 ; CHECK-NEXT: .offset: 40
1341 ; CHECK-NEXT: .size: 8
1342 ; CHECK-NEXT: .value_kind: hidden_none
1343 ; CHECK-NEXT: .value_type: i8
1344 ; CHECK-NEXT: - .address_space: global
1345 ; CHECK-NEXT: .offset: 48
1346 ; CHECK-NEXT: .size: 8
1347 ; CHECK-NEXT: .value_kind: hidden_none
1348 ; CHECK-NEXT: .value_type: i8
1349 ; CHECK-NEXT: - .address_space: global
1350 ; CHECK-NEXT: .offset: 56
1351 ; CHECK-NEXT: .size: 8
1352 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
9961353 ; CHECK-NEXT: .value_type: i8
9971354 ; CHECK: .language: OpenCL C
9981355 ; CHECK-NEXT: .language_version:
10351392 ; CHECK-NEXT: .offset: 32
10361393 ; CHECK-NEXT: .size: 8
10371394 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
1395 ; CHECK-NEXT: .value_type: i8
1396 ; CHECK-NEXT: - .address_space: global
1397 ; CHECK-NEXT: .offset: 40
1398 ; CHECK-NEXT: .size: 8
1399 ; CHECK-NEXT: .value_kind: hidden_none
1400 ; CHECK-NEXT: .value_type: i8
1401 ; CHECK-NEXT: - .address_space: global
1402 ; CHECK-NEXT: .offset: 48
1403 ; CHECK-NEXT: .size: 8
1404 ; CHECK-NEXT: .value_kind: hidden_none
1405 ; CHECK-NEXT: .value_type: i8
1406 ; CHECK-NEXT: - .address_space: global
1407 ; CHECK-NEXT: .offset: 56
1408 ; CHECK-NEXT: .size: 8
1409 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
10381410 ; CHECK-NEXT: .value_type: i8
10391411 ; CHECK: .language: OpenCL C
10401412 ; CHECK-NEXT: .language_version:
10791451 ; CHECK-NEXT: .size: 8
10801452 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
10811453 ; CHECK-NEXT: .value_type: i8
1454 ; CHECK-NEXT: - .address_space: global
1455 ; CHECK-NEXT: .offset: 40
1456 ; CHECK-NEXT: .size: 8
1457 ; CHECK-NEXT: .value_kind: hidden_none
1458 ; CHECK-NEXT: .value_type: i8
1459 ; CHECK-NEXT: - .address_space: global
1460 ; CHECK-NEXT: .offset: 48
1461 ; CHECK-NEXT: .size: 8
1462 ; CHECK-NEXT: .value_kind: hidden_none
1463 ; CHECK-NEXT: .value_type: i8
1464 ; CHECK-NEXT: - .address_space: global
1465 ; CHECK-NEXT: .offset: 56
1466 ; CHECK-NEXT: .size: 8
1467 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1468 ; CHECK-NEXT: .value_type: i8
10821469 ; CHECK: .language: OpenCL C
10831470 ; CHECK-NEXT: .language_version:
10841471 ; CHECK-NEXT: - 2
11151502 ; CHECK-NEXT: .offset: 32
11161503 ; CHECK-NEXT: .size: 8
11171504 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
1505 ; CHECK-NEXT: .value_type: i8
1506 ; CHECK-NEXT: - .address_space: global
1507 ; CHECK-NEXT: .offset: 40
1508 ; CHECK-NEXT: .size: 8
1509 ; CHECK-NEXT: .value_kind: hidden_none
1510 ; CHECK-NEXT: .value_type: i8
1511 ; CHECK-NEXT: - .address_space: global
1512 ; CHECK-NEXT: .offset: 48
1513 ; CHECK-NEXT: .size: 8
1514 ; CHECK-NEXT: .value_kind: hidden_none
1515 ; CHECK-NEXT: .value_type: i8
1516 ; CHECK-NEXT: - .address_space: global
1517 ; CHECK-NEXT: .offset: 56
1518 ; CHECK-NEXT: .size: 8
1519 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
11181520 ; CHECK-NEXT: .value_type: i8
11191521 ; CHECK: .language: OpenCL C
11201522 ; CHECK-NEXT: .language_version:
11521554 ; CHECK-NEXT: .size: 8
11531555 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
11541556 ; CHECK-NEXT: .value_type: i8
1557 ; CHECK-NEXT: - .address_space: global
1558 ; CHECK-NEXT: .offset: 48
1559 ; CHECK-NEXT: .size: 8
1560 ; CHECK-NEXT: .value_kind: hidden_none
1561 ; CHECK-NEXT: .value_type: i8
1562 ; CHECK-NEXT: - .address_space: global
1563 ; CHECK-NEXT: .offset: 56
1564 ; CHECK-NEXT: .size: 8
1565 ; CHECK-NEXT: .value_kind: hidden_none
1566 ; CHECK-NEXT: .value_type: i8
1567 ; CHECK-NEXT: - .address_space: global
1568 ; CHECK-NEXT: .offset: 64
1569 ; CHECK-NEXT: .size: 8
1570 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1571 ; CHECK-NEXT: .value_type: i8
11551572 ; CHECK: .language: OpenCL C
11561573 ; CHECK-NEXT: .language_version:
11571574 ; CHECK-NEXT: - 2
11881605 ; CHECK-NEXT: .offset: 32
11891606 ; CHECK-NEXT: .size: 8
11901607 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
1608 ; CHECK-NEXT: .value_type: i8
1609 ; CHECK-NEXT: - .address_space: global
1610 ; CHECK-NEXT: .offset: 40
1611 ; CHECK-NEXT: .size: 8
1612 ; CHECK-NEXT: .value_kind: hidden_none
1613 ; CHECK-NEXT: .value_type: i8
1614 ; CHECK-NEXT: - .address_space: global
1615 ; CHECK-NEXT: .offset: 48
1616 ; CHECK-NEXT: .size: 8
1617 ; CHECK-NEXT: .value_kind: hidden_none
1618 ; CHECK-NEXT: .value_type: i8
1619 ; CHECK-NEXT: - .address_space: global
1620 ; CHECK-NEXT: .offset: 56
1621 ; CHECK-NEXT: .size: 8
1622 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
11911623 ; CHECK-NEXT: .value_type: i8
11921624 ; CHECK: .language: OpenCL C
11931625 ; CHECK-NEXT: .language_version:
12811713 ; CHECK-NEXT: .offset: 64
12821714 ; CHECK-NEXT: .size: 8
12831715 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
1716 ; CHECK-NEXT: .value_type: i8
1717 ; CHECK-NEXT: - .address_space: global
1718 ; CHECK-NEXT: .offset: 72
1719 ; CHECK-NEXT: .size: 8
1720 ; CHECK-NEXT: .value_kind: hidden_none
1721 ; CHECK-NEXT: .value_type: i8
1722 ; CHECK-NEXT: - .address_space: global
1723 ; CHECK-NEXT: .offset: 80
1724 ; CHECK-NEXT: .size: 8
1725 ; CHECK-NEXT: .value_kind: hidden_none
1726 ; CHECK-NEXT: .value_type: i8
1727 ; CHECK-NEXT: - .address_space: global
1728 ; CHECK-NEXT: .offset: 88
1729 ; CHECK-NEXT: .size: 8
1730 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
12841731 ; CHECK-NEXT: .value_type: i8
12851732 ; CHECK: .language: OpenCL C
12861733 ; CHECK-NEXT: .language_version:
13811828 ; CHECK-NEXT: .size: 8
13821829 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
13831830 ; CHECK-NEXT: .value_type: i8
1831 ; CHECK-NEXT: - .address_space: global
1832 ; CHECK-NEXT: .offset: 72
1833 ; CHECK-NEXT: .size: 8
1834 ; CHECK-NEXT: .value_kind: hidden_none
1835 ; CHECK-NEXT: .value_type: i8
1836 ; CHECK-NEXT: - .address_space: global
1837 ; CHECK-NEXT: .offset: 80
1838 ; CHECK-NEXT: .size: 8
1839 ; CHECK-NEXT: .value_kind: hidden_none
1840 ; CHECK-NEXT: .value_type: i8
1841 ; CHECK-NEXT: - .address_space: global
1842 ; CHECK-NEXT: .offset: 88
1843 ; CHECK-NEXT: .size: 8
1844 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1845 ; CHECK-NEXT: .value_type: i8
13841846 ; CHECK: .language: OpenCL C
13851847 ; CHECK-NEXT: .language_version:
13861848 ; CHECK-NEXT: - 2
14231885 ; CHECK-NEXT: .size: 8
14241886 ; CHECK-NEXT: .value_kind: hidden_printf_buffer
14251887 ; CHECK-NEXT: .value_type: i8
1888 ; CHECK-NEXT: - .address_space: global
1889 ; CHECK-NEXT: .offset: 64
1890 ; CHECK-NEXT: .size: 8
1891 ; CHECK-NEXT: .value_kind: hidden_none
1892 ; CHECK-NEXT: .value_type: i8
1893 ; CHECK-NEXT: - .address_space: global
1894 ; CHECK-NEXT: .offset: 72
1895 ; CHECK-NEXT: .size: 8
1896 ; CHECK-NEXT: .value_kind: hidden_none
1897 ; CHECK-NEXT: .value_type: i8
1898 ; CHECK-NEXT: - .address_space: global
1899 ; CHECK-NEXT: .offset: 80
1900 ; CHECK-NEXT: .size: 8
1901 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1902 ; CHECK-NEXT: .value_type: i8
14261903 ; CHECK: .device_enqueue_symbol: __test_block_invoke_kernel_runtime_handle
14271904 ; CHECK: .language: OpenCL C
14281905 ; CHECK-NEXT: .language_version:
14711948 ; CHECK-NEXT: .size: 8
14721949 ; CHECK-NEXT: .value_kind: hidden_completion_action
14731950 ; CHECK-NEXT: .value_type: i8
1951 ; CHECK-NEXT: - .address_space: global
1952 ; CHECK-NEXT: .offset: 56
1953 ; CHECK-NEXT: .size: 8
1954 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
1955 ; CHECK-NEXT: .value_type: i8
14741956 ; CHECK: .language: OpenCL C
14751957 ; CHECK-NEXT: .language_version:
14761958 ; CHECK-NEXT: - 2
15021984 ; CHECK-NEXT: - 1
15031985 ; CHECK-NEXT: - 0
15041986
1505 attributes #0 = { "amdgpu-implicitarg-num-bytes"="48" }
1506 attributes #1 = { "amdgpu-implicitarg-num-bytes"="48" "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
1507 attributes #2 = { "amdgpu-implicitarg-num-bytes"="48" "calls-enqueue-kernel" }
1987 attributes #0 = { "amdgpu-implicitarg-num-bytes"="56" }
1988 attributes #1 = { "amdgpu-implicitarg-num-bytes"="56" "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
1989 attributes #2 = { "amdgpu-implicitarg-num-bytes"="56" "calls-enqueue-kernel" }
15081990
15091991 !llvm.printf.fmts = !{!100, !101}
15101992
5353 ; CHECK-NEXT: AddrSpaceQual: Global
5454 ; CHECK-NOT: ValueKind: HiddenDefaultQueue
5555 ; CHECK-NOT: ValueKind: HiddenCompletionAction
56 ; CHECK: ValueKind: HiddenMultiGridSyncArg
57 ; CHECK-NEXT: ValueType: I8
58 ; CHECK-NEXT: AddrSpaceQual: Global
5659 define amdgpu_kernel void @test_char(i8 %a) #0
5760 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !9
5861 !kernel_arg_base_type !9 !kernel_arg_type_qual !4 {
8689 ; CHECK-NEXT: - Size: 8
8790 ; CHECK-NEXT: Align: 8
8891 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
92 ; CHECK-NEXT: ValueType: I8
93 ; CHECK-NEXT: AddrSpaceQual: Global
94 ; CHECK-NEXT: - Size: 8
95 ; CHECK-NEXT: Align: 8
96 ; CHECK-NEXT: ValueKind: HiddenNone
97 ; CHECK-NEXT: ValueType: I8
98 ; CHECK-NEXT: AddrSpaceQual: Global
99 ; CHECK-NEXT: - Size: 8
100 ; CHECK-NEXT: Align: 8
101 ; CHECK-NEXT: ValueKind: HiddenNone
102 ; CHECK-NEXT: ValueType: I8
103 ; CHECK-NEXT: AddrSpaceQual: Global
104 ; CHECK-NEXT: - Size: 8
105 ; CHECK-NEXT: Align: 8
106 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
89107 ; CHECK-NEXT: ValueType: I8
90108 ; CHECK-NEXT: AddrSpaceQual: Global
91109 define amdgpu_kernel void @test_ushort2(<2 x i16> %a) #0
123141 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
124142 ; CHECK-NEXT: ValueType: I8
125143 ; CHECK-NEXT: AddrSpaceQual: Global
144 ; CHECK-NEXT: - Size: 8
145 ; CHECK-NEXT: Align: 8
146 ; CHECK-NEXT: ValueKind: HiddenNone
147 ; CHECK-NEXT: ValueType: I8
148 ; CHECK-NEXT: AddrSpaceQual: Global
149 ; CHECK-NEXT: - Size: 8
150 ; CHECK-NEXT: Align: 8
151 ; CHECK-NEXT: ValueKind: HiddenNone
152 ; CHECK-NEXT: ValueType: I8
153 ; CHECK-NEXT: AddrSpaceQual: Global
154 ; CHECK-NEXT: - Size: 8
155 ; CHECK-NEXT: Align: 8
156 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
157 ; CHECK-NEXT: ValueType: I8
158 ; CHECK-NEXT: AddrSpaceQual: Global
126159 define amdgpu_kernel void @test_int3(<3 x i32> %a) #0
127160 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !11
128161 !kernel_arg_base_type !11 !kernel_arg_type_qual !4 {
158191 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
159192 ; CHECK-NEXT: ValueType: I8
160193 ; CHECK-NEXT: AddrSpaceQual: Global
194 ; CHECK-NEXT: - Size: 8
195 ; CHECK-NEXT: Align: 8
196 ; CHECK-NEXT: ValueKind: HiddenNone
197 ; CHECK-NEXT: ValueType: I8
198 ; CHECK-NEXT: AddrSpaceQual: Global
199 ; CHECK-NEXT: - Size: 8
200 ; CHECK-NEXT: Align: 8
201 ; CHECK-NEXT: ValueKind: HiddenNone
202 ; CHECK-NEXT: ValueType: I8
203 ; CHECK-NEXT: AddrSpaceQual: Global
204 ; CHECK-NEXT: - Size: 8
205 ; CHECK-NEXT: Align: 8
206 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
207 ; CHECK-NEXT: ValueType: I8
208 ; CHECK-NEXT: AddrSpaceQual: Global
161209 define amdgpu_kernel void @test_ulong4(<4 x i64> %a) #0
162210 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !12
163211 !kernel_arg_base_type !12 !kernel_arg_type_qual !4 {
193241 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
194242 ; CHECK-NEXT: ValueType: I8
195243 ; CHECK-NEXT: AddrSpaceQual: Global
244 ; CHECK-NEXT: - Size: 8
245 ; CHECK-NEXT: Align: 8
246 ; CHECK-NEXT: ValueKind: HiddenNone
247 ; CHECK-NEXT: ValueType: I8
248 ; CHECK-NEXT: AddrSpaceQual: Global
249 ; CHECK-NEXT: - Size: 8
250 ; CHECK-NEXT: Align: 8
251 ; CHECK-NEXT: ValueKind: HiddenNone
252 ; CHECK-NEXT: ValueType: I8
253 ; CHECK-NEXT: AddrSpaceQual: Global
254 ; CHECK-NEXT: - Size: 8
255 ; CHECK-NEXT: Align: 8
256 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
257 ; CHECK-NEXT: ValueType: I8
258 ; CHECK-NEXT: AddrSpaceQual: Global
196259 define amdgpu_kernel void @test_half8(<8 x half> %a) #0
197260 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !13
198261 !kernel_arg_base_type !13 !kernel_arg_type_qual !4 {
228291 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
229292 ; CHECK-NEXT: ValueType: I8
230293 ; CHECK-NEXT: AddrSpaceQual: Global
294 ; CHECK-NEXT: - Size: 8
295 ; CHECK-NEXT: Align: 8
296 ; CHECK-NEXT: ValueKind: HiddenNone
297 ; CHECK-NEXT: ValueType: I8
298 ; CHECK-NEXT: AddrSpaceQual: Global
299 ; CHECK-NEXT: - Size: 8
300 ; CHECK-NEXT: Align: 8
301 ; CHECK-NEXT: ValueKind: HiddenNone
302 ; CHECK-NEXT: ValueType: I8
303 ; CHECK-NEXT: AddrSpaceQual: Global
304 ; CHECK-NEXT: - Size: 8
305 ; CHECK-NEXT: Align: 8
306 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
307 ; CHECK-NEXT: ValueType: I8
308 ; CHECK-NEXT: AddrSpaceQual: Global
231309 define amdgpu_kernel void @test_float16(<16 x float> %a) #0
232310 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !14
233311 !kernel_arg_base_type !14 !kernel_arg_type_qual !4 {
263341 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
264342 ; CHECK-NEXT: ValueType: I8
265343 ; CHECK-NEXT: AddrSpaceQual: Global
344 ; CHECK-NEXT: - Size: 8
345 ; CHECK-NEXT: Align: 8
346 ; CHECK-NEXT: ValueKind: HiddenNone
347 ; CHECK-NEXT: ValueType: I8
348 ; CHECK-NEXT: AddrSpaceQual: Global
349 ; CHECK-NEXT: - Size: 8
350 ; CHECK-NEXT: Align: 8
351 ; CHECK-NEXT: ValueKind: HiddenNone
352 ; CHECK-NEXT: ValueType: I8
353 ; CHECK-NEXT: AddrSpaceQual: Global
354 ; CHECK-NEXT: - Size: 8
355 ; CHECK-NEXT: Align: 8
356 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
357 ; CHECK-NEXT: ValueType: I8
358 ; CHECK-NEXT: AddrSpaceQual: Global
266359 define amdgpu_kernel void @test_double16(<16 x double> %a) #0
267360 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !15
268361 !kernel_arg_base_type !15 !kernel_arg_type_qual !4 {
299392 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
300393 ; CHECK-NEXT: ValueType: I8
301394 ; CHECK-NEXT: AddrSpaceQual: Global
395 ; CHECK-NEXT: - Size: 8
396 ; CHECK-NEXT: Align: 8
397 ; CHECK-NEXT: ValueKind: HiddenNone
398 ; CHECK-NEXT: ValueType: I8
399 ; CHECK-NEXT: AddrSpaceQual: Global
400 ; CHECK-NEXT: - Size: 8
401 ; CHECK-NEXT: Align: 8
402 ; CHECK-NEXT: ValueKind: HiddenNone
403 ; CHECK-NEXT: ValueType: I8
404 ; CHECK-NEXT: AddrSpaceQual: Global
405 ; CHECK-NEXT: - Size: 8
406 ; CHECK-NEXT: Align: 8
407 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
408 ; CHECK-NEXT: ValueType: I8
409 ; CHECK-NEXT: AddrSpaceQual: Global
302410 define amdgpu_kernel void @test_pointer(i32 addrspace(1)* %a) #0
303411 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !16
304412 !kernel_arg_base_type !16 !kernel_arg_type_qual !4 {
335443 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
336444 ; CHECK-NEXT: ValueType: I8
337445 ; CHECK-NEXT: AddrSpaceQual: Global
446 ; CHECK-NEXT: - Size: 8
447 ; CHECK-NEXT: Align: 8
448 ; CHECK-NEXT: ValueKind: HiddenNone
449 ; CHECK-NEXT: ValueType: I8
450 ; CHECK-NEXT: AddrSpaceQual: Global
451 ; CHECK-NEXT: - Size: 8
452 ; CHECK-NEXT: Align: 8
453 ; CHECK-NEXT: ValueKind: HiddenNone
454 ; CHECK-NEXT: ValueType: I8
455 ; CHECK-NEXT: AddrSpaceQual: Global
456 ; CHECK-NEXT: - Size: 8
457 ; CHECK-NEXT: Align: 8
458 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
459 ; CHECK-NEXT: ValueType: I8
460 ; CHECK-NEXT: AddrSpaceQual: Global
338461 define amdgpu_kernel void @test_image(%opencl.image2d_t addrspace(1)* %a) #0
339462 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !17
340463 !kernel_arg_base_type !17 !kernel_arg_type_qual !4 {
370493 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
371494 ; CHECK-NEXT: ValueType: I8
372495 ; CHECK-NEXT: AddrSpaceQual: Global
496 ; CHECK-NEXT: - Size: 8
497 ; CHECK-NEXT: Align: 8
498 ; CHECK-NEXT: ValueKind: HiddenNone
499 ; CHECK-NEXT: ValueType: I8
500 ; CHECK-NEXT: AddrSpaceQual: Global
501 ; CHECK-NEXT: - Size: 8
502 ; CHECK-NEXT: Align: 8
503 ; CHECK-NEXT: ValueKind: HiddenNone
504 ; CHECK-NEXT: ValueType: I8
505 ; CHECK-NEXT: AddrSpaceQual: Global
506 ; CHECK-NEXT: - Size: 8
507 ; CHECK-NEXT: Align: 8
508 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
509 ; CHECK-NEXT: ValueType: I8
510 ; CHECK-NEXT: AddrSpaceQual: Global
373511 define amdgpu_kernel void @test_sampler(i32 %a) #0
374512 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !18
375513 !kernel_arg_base_type !18 !kernel_arg_type_qual !4 {
406544 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
407545 ; CHECK-NEXT: ValueType: I8
408546 ; CHECK-NEXT: AddrSpaceQual: Global
547 ; CHECK-NEXT: - Size: 8
548 ; CHECK-NEXT: Align: 8
549 ; CHECK-NEXT: ValueKind: HiddenNone
550 ; CHECK-NEXT: ValueType: I8
551 ; CHECK-NEXT: AddrSpaceQual: Global
552 ; CHECK-NEXT: - Size: 8
553 ; CHECK-NEXT: Align: 8
554 ; CHECK-NEXT: ValueKind: HiddenNone
555 ; CHECK-NEXT: ValueType: I8
556 ; CHECK-NEXT: AddrSpaceQual: Global
557 ; CHECK-NEXT: - Size: 8
558 ; CHECK-NEXT: Align: 8
559 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
560 ; CHECK-NEXT: ValueType: I8
561 ; CHECK-NEXT: AddrSpaceQual: Global
409562 define amdgpu_kernel void @test_queue(%opencl.queue_t addrspace(1)* %a) #0
410563 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !19
411564 !kernel_arg_base_type !19 !kernel_arg_type_qual !4 {
442595 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
443596 ; CHECK-NEXT: ValueType: I8
444597 ; CHECK-NEXT: AddrSpaceQual: Global
598 ; CHECK-NEXT: - Size: 8
599 ; CHECK-NEXT: Align: 8
600 ; CHECK-NEXT: ValueKind: HiddenNone
601 ; CHECK-NEXT: ValueType: I8
602 ; CHECK-NEXT: AddrSpaceQual: Global
603 ; CHECK-NEXT: - Size: 8
604 ; CHECK-NEXT: Align: 8
605 ; CHECK-NEXT: ValueKind: HiddenNone
606 ; CHECK-NEXT: ValueType: I8
607 ; CHECK-NEXT: AddrSpaceQual: Global
608 ; CHECK-NEXT: - Size: 8
609 ; CHECK-NEXT: Align: 8
610 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
611 ; CHECK-NEXT: ValueType: I8
612 ; CHECK-NEXT: AddrSpaceQual: Global
445613 define amdgpu_kernel void @test_struct(%struct.A addrspace(5)* byval %a) #0
446614 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !20
447615 !kernel_arg_base_type !20 !kernel_arg_type_qual !4 {
477645 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
478646 ; CHECK-NEXT: ValueType: I8
479647 ; CHECK-NEXT: AddrSpaceQual: Global
648 ; CHECK-NEXT: - Size: 8
649 ; CHECK-NEXT: Align: 8
650 ; CHECK-NEXT: ValueKind: HiddenNone
651 ; CHECK-NEXT: ValueType: I8
652 ; CHECK-NEXT: AddrSpaceQual: Global
653 ; CHECK-NEXT: - Size: 8
654 ; CHECK-NEXT: Align: 8
655 ; CHECK-NEXT: ValueKind: HiddenNone
656 ; CHECK-NEXT: ValueType: I8
657 ; CHECK-NEXT: AddrSpaceQual: Global
658 ; CHECK-NEXT: - Size: 8
659 ; CHECK-NEXT: Align: 8
660 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
661 ; CHECK-NEXT: ValueType: I8
662 ; CHECK-NEXT: AddrSpaceQual: Global
480663 define amdgpu_kernel void @test_i128(i128 %a) #0
481664 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !21
482665 !kernel_arg_base_type !21 !kernel_arg_type_qual !4 {
524707 ; CHECK-NEXT: - Size: 8
525708 ; CHECK-NEXT: Align: 8
526709 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
710 ; CHECK-NEXT: ValueType: I8
711 ; CHECK-NEXT: AddrSpaceQual: Global
712 ; CHECK-NEXT: - Size: 8
713 ; CHECK-NEXT: Align: 8
714 ; CHECK-NEXT: ValueKind: HiddenNone
715 ; CHECK-NEXT: ValueType: I8
716 ; CHECK-NEXT: AddrSpaceQual: Global
717 ; CHECK-NEXT: - Size: 8
718 ; CHECK-NEXT: Align: 8
719 ; CHECK-NEXT: ValueKind: HiddenNone
720 ; CHECK-NEXT: ValueType: I8
721 ; CHECK-NEXT: AddrSpaceQual: Global
722 ; CHECK-NEXT: - Size: 8
723 ; CHECK-NEXT: Align: 8
724 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
527725 ; CHECK-NEXT: ValueType: I8
528726 ; CHECK-NEXT: AddrSpaceQual: Global
529727 define amdgpu_kernel void @test_multi_arg(i32 %a, <2 x i16> %b, <3 x i8> %c) #0
577775 ; CHECK-NEXT: - Size: 8
578776 ; CHECK-NEXT: Align: 8
579777 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
778 ; CHECK-NEXT: ValueType: I8
779 ; CHECK-NEXT: AddrSpaceQual: Global
780 ; CHECK-NEXT: - Size: 8
781 ; CHECK-NEXT: Align: 8
782 ; CHECK-NEXT: ValueKind: HiddenNone
783 ; CHECK-NEXT: ValueType: I8
784 ; CHECK-NEXT: AddrSpaceQual: Global
785 ; CHECK-NEXT: - Size: 8
786 ; CHECK-NEXT: Align: 8
787 ; CHECK-NEXT: ValueKind: HiddenNone
788 ; CHECK-NEXT: ValueType: I8
789 ; CHECK-NEXT: AddrSpaceQual: Global
790 ; CHECK-NEXT: - Size: 8
791 ; CHECK-NEXT: Align: 8
792 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
580793 ; CHECK-NEXT: ValueType: I8
581794 ; CHECK-NEXT: AddrSpaceQual: Global
582795 define amdgpu_kernel void @test_addr_space(i32 addrspace(1)* %g,
637850 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
638851 ; CHECK-NEXT: ValueType: I8
639852 ; CHECK-NEXT: AddrSpaceQual: Global
853 ; CHECK-NEXT: - Size: 8
854 ; CHECK-NEXT: Align: 8
855 ; CHECK-NEXT: ValueKind: HiddenNone
856 ; CHECK-NEXT: ValueType: I8
857 ; CHECK-NEXT: AddrSpaceQual: Global
858 ; CHECK-NEXT: - Size: 8
859 ; CHECK-NEXT: Align: 8
860 ; CHECK-NEXT: ValueKind: HiddenNone
861 ; CHECK-NEXT: ValueType: I8
862 ; CHECK-NEXT: AddrSpaceQual: Global
863 ; CHECK-NEXT: - Size: 8
864 ; CHECK-NEXT: Align: 8
865 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
866 ; CHECK-NEXT: ValueType: I8
867 ; CHECK-NEXT: AddrSpaceQual: Global
640868 define amdgpu_kernel void @test_type_qual(i32 addrspace(1)* %a,
641869 i32 addrspace(1)* %b,
642870 %opencl.pipe_t addrspace(1)* %c) #0
691919 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
692920 ; CHECK-NEXT: ValueType: I8
693921 ; CHECK-NEXT: AddrSpaceQual: Global
922 ; CHECK-NEXT: - Size: 8
923 ; CHECK-NEXT: Align: 8
924 ; CHECK-NEXT: ValueKind: HiddenNone
925 ; CHECK-NEXT: ValueType: I8
926 ; CHECK-NEXT: AddrSpaceQual: Global
927 ; CHECK-NEXT: - Size: 8
928 ; CHECK-NEXT: Align: 8
929 ; CHECK-NEXT: ValueKind: HiddenNone
930 ; CHECK-NEXT: ValueType: I8
931 ; CHECK-NEXT: AddrSpaceQual: Global
932 ; CHECK-NEXT: - Size: 8
933 ; CHECK-NEXT: Align: 8
934 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
935 ; CHECK-NEXT: ValueType: I8
936 ; CHECK-NEXT: AddrSpaceQual: Global
694937 define amdgpu_kernel void @test_access_qual(%opencl.image1d_t addrspace(1)* %ro,
695938 %opencl.image2d_t addrspace(1)* %wo,
696939 %opencl.image3d_t addrspace(1)* %rw) #0
730973 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
731974 ; CHECK-NEXT: ValueType: I8
732975 ; CHECK-NEXT: AddrSpaceQual: Global
976 ; CHECK-NEXT: - Size: 8
977 ; CHECK-NEXT: Align: 8
978 ; CHECK-NEXT: ValueKind: HiddenNone
979 ; CHECK-NEXT: ValueType: I8
980 ; CHECK-NEXT: AddrSpaceQual: Global
981 ; CHECK-NEXT: - Size: 8
982 ; CHECK-NEXT: Align: 8
983 ; CHECK-NEXT: ValueKind: HiddenNone
984 ; CHECK-NEXT: ValueType: I8
985 ; CHECK-NEXT: AddrSpaceQual: Global
986 ; CHECK-NEXT: - Size: 8
987 ; CHECK-NEXT: Align: 8
988 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
989 ; CHECK-NEXT: ValueType: I8
990 ; CHECK-NEXT: AddrSpaceQual: Global
733991 define amdgpu_kernel void @test_vec_type_hint_half(i32 %a) #0
734992 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
735993 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !26 {
7671025 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
7681026 ; CHECK-NEXT: ValueType: I8
7691027 ; CHECK-NEXT: AddrSpaceQual: Global
1028 ; CHECK-NEXT: - Size: 8
1029 ; CHECK-NEXT: Align: 8
1030 ; CHECK-NEXT: ValueKind: HiddenNone
1031 ; CHECK-NEXT: ValueType: I8
1032 ; CHECK-NEXT: AddrSpaceQual: Global
1033 ; CHECK-NEXT: - Size: 8
1034 ; CHECK-NEXT: Align: 8
1035 ; CHECK-NEXT: ValueKind: HiddenNone
1036 ; CHECK-NEXT: ValueType: I8
1037 ; CHECK-NEXT: AddrSpaceQual: Global
1038 ; CHECK-NEXT: - Size: 8
1039 ; CHECK-NEXT: Align: 8
1040 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1041 ; CHECK-NEXT: ValueType: I8
1042 ; CHECK-NEXT: AddrSpaceQual: Global
7701043 define amdgpu_kernel void @test_vec_type_hint_float(i32 %a) #0
7711044 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
7721045 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !27 {
8041077 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
8051078 ; CHECK-NEXT: ValueType: I8
8061079 ; CHECK-NEXT: AddrSpaceQual: Global
1080 ; CHECK-NEXT: - Size: 8
1081 ; CHECK-NEXT: Align: 8
1082 ; CHECK-NEXT: ValueKind: HiddenNone
1083 ; CHECK-NEXT: ValueType: I8
1084 ; CHECK-NEXT: AddrSpaceQual: Global
1085 ; CHECK-NEXT: - Size: 8
1086 ; CHECK-NEXT: Align: 8
1087 ; CHECK-NEXT: ValueKind: HiddenNone
1088 ; CHECK-NEXT: ValueType: I8
1089 ; CHECK-NEXT: AddrSpaceQual: Global
1090 ; CHECK-NEXT: - Size: 8
1091 ; CHECK-NEXT: Align: 8
1092 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1093 ; CHECK-NEXT: ValueType: I8
1094 ; CHECK-NEXT: AddrSpaceQual: Global
8071095 define amdgpu_kernel void @test_vec_type_hint_double(i32 %a) #0
8081096 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
8091097 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !28 {
8411129 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
8421130 ; CHECK-NEXT: ValueType: I8
8431131 ; CHECK-NEXT: AddrSpaceQual: Global
1132 ; CHECK-NEXT: - Size: 8
1133 ; CHECK-NEXT: Align: 8
1134 ; CHECK-NEXT: ValueKind: HiddenNone
1135 ; CHECK-NEXT: ValueType: I8
1136 ; CHECK-NEXT: AddrSpaceQual: Global
1137 ; CHECK-NEXT: - Size: 8
1138 ; CHECK-NEXT: Align: 8
1139 ; CHECK-NEXT: ValueKind: HiddenNone
1140 ; CHECK-NEXT: ValueType: I8
1141 ; CHECK-NEXT: AddrSpaceQual: Global
1142 ; CHECK-NEXT: - Size: 8
1143 ; CHECK-NEXT: Align: 8
1144 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1145 ; CHECK-NEXT: ValueType: I8
1146 ; CHECK-NEXT: AddrSpaceQual: Global
8441147 define amdgpu_kernel void @test_vec_type_hint_char(i32 %a) #0
8451148 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
8461149 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !29 {
8781181 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
8791182 ; CHECK-NEXT: ValueType: I8
8801183 ; CHECK-NEXT: AddrSpaceQual: Global
1184 ; CHECK-NEXT: - Size: 8
1185 ; CHECK-NEXT: Align: 8
1186 ; CHECK-NEXT: ValueKind: HiddenNone
1187 ; CHECK-NEXT: ValueType: I8
1188 ; CHECK-NEXT: AddrSpaceQual: Global
1189 ; CHECK-NEXT: - Size: 8
1190 ; CHECK-NEXT: Align: 8
1191 ; CHECK-NEXT: ValueKind: HiddenNone
1192 ; CHECK-NEXT: ValueType: I8
1193 ; CHECK-NEXT: AddrSpaceQual: Global
1194 ; CHECK-NEXT: - Size: 8
1195 ; CHECK-NEXT: Align: 8
1196 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1197 ; CHECK-NEXT: ValueType: I8
1198 ; CHECK-NEXT: AddrSpaceQual: Global
8811199 define amdgpu_kernel void @test_vec_type_hint_short(i32 %a) #0
8821200 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
8831201 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !30 {
9151233 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
9161234 ; CHECK-NEXT: ValueType: I8
9171235 ; CHECK-NEXT: AddrSpaceQual: Global
1236 ; CHECK-NEXT: - Size: 8
1237 ; CHECK-NEXT: Align: 8
1238 ; CHECK-NEXT: ValueKind: HiddenNone
1239 ; CHECK-NEXT: ValueType: I8
1240 ; CHECK-NEXT: AddrSpaceQual: Global
1241 ; CHECK-NEXT: - Size: 8
1242 ; CHECK-NEXT: Align: 8
1243 ; CHECK-NEXT: ValueKind: HiddenNone
1244 ; CHECK-NEXT: ValueType: I8
1245 ; CHECK-NEXT: AddrSpaceQual: Global
1246 ; CHECK-NEXT: - Size: 8
1247 ; CHECK-NEXT: Align: 8
1248 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1249 ; CHECK-NEXT: ValueType: I8
1250 ; CHECK-NEXT: AddrSpaceQual: Global
9181251 define amdgpu_kernel void @test_vec_type_hint_long(i32 %a) #0
9191252 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
9201253 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !31 {
9501283 ; CHECK-NEXT: - Size: 8
9511284 ; CHECK-NEXT: Align: 8
9521285 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
1286 ; CHECK-NEXT: ValueType: I8
1287 ; CHECK-NEXT: AddrSpaceQual: Global
1288 ; CHECK-NEXT: - Size: 8
1289 ; CHECK-NEXT: Align: 8
1290 ; CHECK-NEXT: ValueKind: HiddenNone
1291 ; CHECK-NEXT: ValueType: I8
1292 ; CHECK-NEXT: AddrSpaceQual: Global
1293 ; CHECK-NEXT: - Size: 8
1294 ; CHECK-NEXT: Align: 8
1295 ; CHECK-NEXT: ValueKind: HiddenNone
1296 ; CHECK-NEXT: ValueType: I8
1297 ; CHECK-NEXT: AddrSpaceQual: Global
1298 ; CHECK-NEXT: - Size: 8
1299 ; CHECK-NEXT: Align: 8
1300 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
9531301 ; CHECK-NEXT: ValueType: I8
9541302 ; CHECK-NEXT: AddrSpaceQual: Global
9551303 define amdgpu_kernel void @test_vec_type_hint_unknown(i32 %a) #0
9901338 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
9911339 ; CHECK-NEXT: ValueType: I8
9921340 ; CHECK-NEXT: AddrSpaceQual: Global
1341 ; CHECK-NEXT: - Size: 8
1342 ; CHECK-NEXT: Align: 8
1343 ; CHECK-NEXT: ValueKind: HiddenNone
1344 ; CHECK-NEXT: ValueType: I8
1345 ; CHECK-NEXT: AddrSpaceQual: Global
1346 ; CHECK-NEXT: - Size: 8
1347 ; CHECK-NEXT: Align: 8
1348 ; CHECK-NEXT: ValueKind: HiddenNone
1349 ; CHECK-NEXT: ValueType: I8
1350 ; CHECK-NEXT: AddrSpaceQual: Global
1351 ; CHECK-NEXT: - Size: 8
1352 ; CHECK-NEXT: Align: 8
1353 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1354 ; CHECK-NEXT: ValueType: I8
1355 ; CHECK-NEXT: AddrSpaceQual: Global
9931356 define amdgpu_kernel void @test_reqd_wgs_vec_type_hint(i32 %a) #0
9941357 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
9951358 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !5
10291392 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
10301393 ; CHECK-NEXT: ValueType: I8
10311394 ; CHECK-NEXT: AddrSpaceQual: Global
1395 ; CHECK-NEXT: - Size: 8
1396 ; CHECK-NEXT: Align: 8
1397 ; CHECK-NEXT: ValueKind: HiddenNone
1398 ; CHECK-NEXT: ValueType: I8
1399 ; CHECK-NEXT: AddrSpaceQual: Global
1400 ; CHECK-NEXT: - Size: 8
1401 ; CHECK-NEXT: Align: 8
1402 ; CHECK-NEXT: ValueKind: HiddenNone
1403 ; CHECK-NEXT: ValueType: I8
1404 ; CHECK-NEXT: AddrSpaceQual: Global
1405 ; CHECK-NEXT: - Size: 8
1406 ; CHECK-NEXT: Align: 8
1407 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1408 ; CHECK-NEXT: ValueType: I8
1409 ; CHECK-NEXT: AddrSpaceQual: Global
10321410 define amdgpu_kernel void @test_wgs_hint_vec_type_hint(i32 %a) #0
10331411 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
10341412 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 !vec_type_hint !7
10641442 ; CHECK-NEXT: - Size: 8
10651443 ; CHECK-NEXT: Align: 8
10661444 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
1445 ; CHECK-NEXT: ValueType: I8
1446 ; CHECK-NEXT: AddrSpaceQual: Global
1447 ; CHECK-NEXT: - Size: 8
1448 ; CHECK-NEXT: Align: 8
1449 ; CHECK-NEXT: ValueKind: HiddenNone
1450 ; CHECK-NEXT: ValueType: I8
1451 ; CHECK-NEXT: AddrSpaceQual: Global
1452 ; CHECK-NEXT: - Size: 8
1453 ; CHECK-NEXT: Align: 8
1454 ; CHECK-NEXT: ValueKind: HiddenNone
1455 ; CHECK-NEXT: ValueType: I8
1456 ; CHECK-NEXT: AddrSpaceQual: Global
1457 ; CHECK-NEXT: - Size: 8
1458 ; CHECK-NEXT: Align: 8
1459 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
10671460 ; CHECK-NEXT: ValueType: I8
10681461 ; CHECK-NEXT: AddrSpaceQual: Global
10691462 define amdgpu_kernel void @test_arg_ptr_to_ptr(i32 addrspace(5)* addrspace(1)* %a) #0
11371530 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
11381531 ; CHECK-NEXT: ValueType: I8
11391532 ; CHECK-NEXT: AddrSpaceQual: Global
1533 ; CHECK-NEXT: - Size: 8
1534 ; CHECK-NEXT: Align: 8
1535 ; CHECK-NEXT: ValueKind: HiddenNone
1536 ; CHECK-NEXT: ValueType: I8
1537 ; CHECK-NEXT: AddrSpaceQual: Global
1538 ; CHECK-NEXT: - Size: 8
1539 ; CHECK-NEXT: Align: 8
1540 ; CHECK-NEXT: ValueKind: HiddenNone
1541 ; CHECK-NEXT: ValueType: I8
1542 ; CHECK-NEXT: AddrSpaceQual: Global
1543 ; CHECK-NEXT: - Size: 8
1544 ; CHECK-NEXT: Align: 8
1545 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1546 ; CHECK-NEXT: ValueType: I8
1547 ; CHECK-NEXT: AddrSpaceQual: Global
11401548 define amdgpu_kernel void @test_arg_vector_of_ptr(<2 x i32 addrspace(1)*> %a) #0
11411549 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !83
11421550 !kernel_arg_base_type !83 !kernel_arg_type_qual !4 {
11711579 ; CHECK-NEXT: - Size: 8
11721580 ; CHECK-NEXT: Align: 8
11731581 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
1582 ; CHECK-NEXT: ValueType: I8
1583 ; CHECK-NEXT: AddrSpaceQual: Global
1584 ; CHECK-NEXT: - Size: 8
1585 ; CHECK-NEXT: Align: 8
1586 ; CHECK-NEXT: ValueKind: HiddenNone
1587 ; CHECK-NEXT: ValueType: I8
1588 ; CHECK-NEXT: AddrSpaceQual: Global
1589 ; CHECK-NEXT: - Size: 8
1590 ; CHECK-NEXT: Align: 8
1591 ; CHECK-NEXT: ValueKind: HiddenNone
1592 ; CHECK-NEXT: ValueType: I8
1593 ; CHECK-NEXT: AddrSpaceQual: Global
1594 ; CHECK-NEXT: - Size: 8
1595 ; CHECK-NEXT: Align: 8
1596 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
11741597 ; CHECK-NEXT: ValueType: I8
11751598 ; CHECK-NEXT: AddrSpaceQual: Global
11761599 define amdgpu_kernel void @test_arg_unknown_builtin_type(
12691692 ; CHECK-NEXT: - Size: 8
12701693 ; CHECK-NEXT: Align: 8
12711694 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
1695 ; CHECK-NEXT: ValueType: I8
1696 ; CHECK-NEXT: AddrSpaceQual: Global
1697 ; CHECK-NEXT: - Size: 8
1698 ; CHECK-NEXT: Align: 8
1699 ; CHECK-NEXT: ValueKind: HiddenNone
1700 ; CHECK-NEXT: ValueType: I8
1701 ; CHECK-NEXT: AddrSpaceQual: Global
1702 ; CHECK-NEXT: - Size: 8
1703 ; CHECK-NEXT: Align: 8
1704 ; CHECK-NEXT: ValueKind: HiddenNone
1705 ; CHECK-NEXT: ValueType: I8
1706 ; CHECK-NEXT: AddrSpaceQual: Global
1707 ; CHECK-NEXT: - Size: 8
1708 ; CHECK-NEXT: Align: 8
1709 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
12721710 ; CHECK-NEXT: ValueType: I8
12731711 ; CHECK-NEXT: AddrSpaceQual: Global
12741712 define amdgpu_kernel void @test_pointee_align(i64 addrspace(1)* %a,
13751813 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
13761814 ; CHECK-NEXT: ValueType: I8
13771815 ; CHECK-NEXT: AddrSpaceQual: Global
1816 ; CHECK-NEXT: - Size: 8
1817 ; CHECK-NEXT: Align: 8
1818 ; CHECK-NEXT: ValueKind: HiddenNone
1819 ; CHECK-NEXT: ValueType: I8
1820 ; CHECK-NEXT: AddrSpaceQual: Global
1821 ; CHECK-NEXT: - Size: 8
1822 ; CHECK-NEXT: Align: 8
1823 ; CHECK-NEXT: ValueKind: HiddenNone
1824 ; CHECK-NEXT: ValueType: I8
1825 ; CHECK-NEXT: AddrSpaceQual: Global
1826 ; CHECK-NEXT: - Size: 8
1827 ; CHECK-NEXT: Align: 8
1828 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1829 ; CHECK-NEXT: ValueType: I8
1830 ; CHECK-NEXT: AddrSpaceQual: Global
13781831 define amdgpu_kernel void @test_pointee_align_attribute(i64 addrspace(1)* align 16 %a,
13791832 i8 addrspace(3)* align 8 %b,
13801833 <2 x i8> addrspace(3)* align 32 %c,
14201873 ; CHECK-NEXT: ValueKind: HiddenPrintfBuffer
14211874 ; CHECK-NEXT: ValueType: I8
14221875 ; CHECK-NEXT: AddrSpaceQual: Global
1876 ; CHECK-NEXT: - Size: 8
1877 ; CHECK-NEXT: Align: 8
1878 ; CHECK-NEXT: ValueKind: HiddenNone
1879 ; CHECK-NEXT: ValueType: I8
1880 ; CHECK-NEXT: AddrSpaceQual: Global
1881 ; CHECK-NEXT: - Size: 8
1882 ; CHECK-NEXT: Align: 8
1883 ; CHECK-NEXT: ValueKind: HiddenNone
1884 ; CHECK-NEXT: ValueType: I8
1885 ; CHECK-NEXT: AddrSpaceQual: Global
1886 ; CHECK-NEXT: - Size: 8
1887 ; CHECK-NEXT: Align: 8
1888 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
1889 ; CHECK-NEXT: ValueType: I8
1890 ; CHECK-NEXT: AddrSpaceQual: Global
14231891 define amdgpu_kernel void @__test_block_invoke_kernel(
14241892 <{ i32, i32, i8*, i8 addrspace(1)*, i8 }> %arg) #1
14251893 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !110
14641932 ; CHECK-NEXT: - Size: 8
14651933 ; CHECK-NEXT: Align: 8
14661934 ; CHECK-NEXT: ValueKind: HiddenCompletionAction
1935 ; CHECK-NEXT: ValueType: I8
1936 ; CHECK-NEXT: AddrSpaceQual: Global
1937 ; CHECK-NEXT: - Size: 8
1938 ; CHECK-NEXT: Align: 8
1939 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
14671940 ; CHECK-NEXT: ValueType: I8
14681941 ; CHECK-NEXT: AddrSpaceQual: Global
14691942 define amdgpu_kernel void @test_enqueue_kernel_caller(i8 %a) #2
14831956 ret void
14841957 }
14851958
1486 attributes #0 = { "amdgpu-implicitarg-num-bytes"="48" }
1487 attributes #1 = { "amdgpu-implicitarg-num-bytes"="48" "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
1488 attributes #2 = { "amdgpu-implicitarg-num-bytes"="48" "calls-enqueue-kernel" }
1959 attributes #0 = { "amdgpu-implicitarg-num-bytes"="56" }
1960 attributes #1 = { "amdgpu-implicitarg-num-bytes"="56" "runtime-handle"="__test_block_invoke_kernel_runtime_handle" }
1961 attributes #2 = { "amdgpu-implicitarg-num-bytes"="56" "calls-enqueue-kernel" }
14891962
14901963 !llvm.printf.fmts = !{!100, !101}
14911964
262262 half addrspace(1)* %r,
263263 half addrspace(1)* %a,
264264 half addrspace(1)* %b) #4 {
265 entry:
266 %a.val = load half, half addrspace(1)* %a
267 %b.val = load half, half addrspace(1)* %b
268 %r.val = fadd half %a.val, %b.val
269 store half %r.val, half addrspace(1)* %r
270 ret void
271 }
272
273 ; CHECK: - .args:
274 ; CHECK-NEXT: - .address_space: global
275 ; CHECK-NEXT: .name: r
276 ; CHECK-NEXT: .offset: 0
277 ; CHECK-NEXT: .size: 8
278 ; CHECK-NEXT: .value_kind: global_buffer
279 ; CHECK-NEXT: .value_type: f16
280 ; CHECK-NEXT: - .address_space: global
281 ; CHECK-NEXT: .name: a
282 ; CHECK-NEXT: .offset: 8
283 ; CHECK-NEXT: .size: 8
284 ; CHECK-NEXT: .value_kind: global_buffer
285 ; CHECK-NEXT: .value_type: f16
286 ; CHECK-NEXT: - .address_space: global
287 ; CHECK-NEXT: .name: b
288 ; CHECK-NEXT: .offset: 16
289 ; CHECK-NEXT: .size: 8
290 ; CHECK-NEXT: .value_kind: global_buffer
291 ; CHECK-NEXT: .value_type: f16
292 ; CHECK-NEXT: - .offset: 24
293 ; CHECK-NEXT: .size: 8
294 ; CHECK-NEXT: .value_kind: hidden_global_offset_x
295 ; CHECK-NEXT: .value_type: i64
296 ; CHECK-NEXT: - .offset: 32
297 ; CHECK-NEXT: .size: 8
298 ; CHECK-NEXT: .value_kind: hidden_global_offset_y
299 ; CHECK-NEXT: .value_type: i64
300 ; CHECK-NEXT: - .offset: 40
301 ; CHECK-NEXT: .size: 8
302 ; CHECK-NEXT: .value_kind: hidden_global_offset_z
303 ; CHECK-NEXT: .value_type: i64
304 ; CHECK-NEXT: - .address_space: global
305 ; CHECK-NEXT: .offset: 48
306 ; CHECK-NEXT: .size: 8
307 ; CHECK-NEXT: .value_kind: hidden_none
308 ; CHECK-NEXT: .value_type: i8
309 ; CHECK-NEXT: - .address_space: global
310 ; CHECK-NEXT: .offset: 56
311 ; CHECK-NEXT: .size: 8
312 ; CHECK-NEXT: .value_kind: hidden_none
313 ; CHECK-NEXT: .value_type: i8
314 ; CHECK-NEXT: - .address_space: global
315 ; CHECK-NEXT: .offset: 64
316 ; CHECK-NEXT: .size: 8
317 ; CHECK-NEXT: .value_kind: hidden_none
318 ; CHECK-NEXT: .value_type: i8
319 ; CHECK-NEXT: - .address_space: global
320 ; CHECK-NEXT: .offset: 72
321 ; CHECK-NEXT: .size: 8
322 ; CHECK-NEXT: .value_kind: hidden_multigrid_sync_arg
323 ; CHECK-NEXT: .value_type: i8
324 ; CHECK: .name: test56
325 ; CHECK: .symbol: test56.kd
326 define amdgpu_kernel void @test56(
327 half addrspace(1)* %r,
328 half addrspace(1)* %a,
329 half addrspace(1)* %b) #5 {
265330 entry:
266331 %a.val = load half, half addrspace(1)* %a
267332 %b.val = load half, half addrspace(1)* %b
279344 attributes #2 = { "amdgpu-implicitarg-num-bytes"="24" }
280345 attributes #3 = { "amdgpu-implicitarg-num-bytes"="32" }
281346 attributes #4 = { "amdgpu-implicitarg-num-bytes"="48" }
347 attributes #5 = { "amdgpu-implicitarg-num-bytes"="56" }
269269 half addrspace(1)* %r,
270270 half addrspace(1)* %a,
271271 half addrspace(1)* %b) #4 {
272 entry:
273 %a.val = load half, half addrspace(1)* %a
274 %b.val = load half, half addrspace(1)* %b
275 %r.val = fadd half %a.val, %b.val
276 store half %r.val, half addrspace(1)* %r
277 ret void
278 }
279
280 ; CHECK: - Name: test56
281 ; CHECK: SymbolName: 'test56@kd'
282 ; CHECK: Args:
283 ; CHECK-NEXT: - Name: r
284 ; CHECK-NEXT: Size: 8
285 ; CHECK-NEXT: Align: 8
286 ; CHECK-NEXT: ValueKind: GlobalBuffer
287 ; CHECK-NEXT: ValueType: F16
288 ; CHECK-NEXT: AddrSpaceQual: Global
289 ; CHECK-NEXT: - Name: a
290 ; CHECK-NEXT: Size: 8
291 ; CHECK-NEXT: Align: 8
292 ; CHECK-NEXT: ValueKind: GlobalBuffer
293 ; CHECK-NEXT: ValueType: F16
294 ; CHECK-NEXT: AddrSpaceQual: Global
295 ; CHECK-NEXT: - Name: b
296 ; CHECK-NEXT: Size: 8
297 ; CHECK-NEXT: Align: 8
298 ; CHECK-NEXT: ValueKind: GlobalBuffer
299 ; CHECK-NEXT: ValueType: F16
300 ; CHECK-NEXT: AddrSpaceQual: Global
301 ; CHECK-NEXT: - Size: 8
302 ; CHECK-NEXT: Align: 8
303 ; CHECK-NEXT: ValueKind: HiddenGlobalOffsetX
304 ; CHECK-NEXT: ValueType: I64
305 ; CHECK-NEXT: - Size: 8
306 ; CHECK-NEXT: Align: 8
307 ; CHECK-NEXT: ValueKind: HiddenGlobalOffsetY
308 ; CHECK-NEXT: ValueType: I64
309 ; CHECK-NEXT: - Size: 8
310 ; CHECK-NEXT: Align: 8
311 ; CHECK-NEXT: ValueKind: HiddenGlobalOffsetZ
312 ; CHECK-NEXT: ValueType: I64
313 ; CHECK-NEXT: - Size: 8
314 ; CHECK-NEXT: Align: 8
315 ; CHECK-NEXT: ValueKind: HiddenNone
316 ; CHECK-NEXT: ValueType: I8
317 ; CHECK-NEXT: AddrSpaceQual: Global
318 ; CHECK-NEXT: - Size: 8
319 ; CHECK-NEXT: Align: 8
320 ; CHECK-NEXT: ValueKind: HiddenNone
321 ; CHECK-NEXT: ValueType: I8
322 ; CHECK-NEXT: AddrSpaceQual: Global
323 ; CHECK-NEXT: - Size: 8
324 ; CHECK-NEXT: Align: 8
325 ; CHECK-NEXT: ValueKind: HiddenNone
326 ; CHECK-NEXT: ValueType: I8
327 ; CHECK-NEXT: AddrSpaceQual: Global
328 ; CHECK-NEXT: - Size: 8
329 ; CHECK-NEXT: Align: 8
330 ; CHECK-NEXT: ValueKind: HiddenMultiGridSyncArg
331 ; CHECK-NEXT: ValueType: I8
332 ; CHECK-NEXT: AddrSpaceQual: Global
333 ; CHECK-NEXT: CodeProps:
334 define amdgpu_kernel void @test56(
335 half addrspace(1)* %r,
336 half addrspace(1)* %a,
337 half addrspace(1)* %b) #5 {
272338 entry:
273339 %a.val = load half, half addrspace(1)* %a
274340 %b.val = load half, half addrspace(1)* %b
282348 attributes #2 = { "amdgpu-implicitarg-num-bytes"="24" }
283349 attributes #3 = { "amdgpu-implicitarg-num-bytes"="32" }
284350 attributes #4 = { "amdgpu-implicitarg-num-bytes"="48" }
351 attributes #5 = { "amdgpu-implicitarg-num-bytes"="56" }