Matt Arsenault
ae0ba7dedd
AMDGPU: Optimize out implicit kernarg argument allocation if unused
...
We already annotate whether llvm.amdgcn.implicitarg.ptr is known to be
unused. Start using it to avoid allocating the implicit arguments if
unneeded.
2021-12-04 10:38:25 -05:00
Konstantin Zhuravlyov
f4ace63737
AMDGPU: Add target id and code object v4 support
...
- Add target id support (https://clang.llvm.org/docs/ClangOffloadBundler.html#target-id )
- Add code object v4 support (https://llvm.org/docs/AMDGPUUsage.html#elf-code-object )
- Add kernarg_size to kernel descriptor
- Change trap handler ABI to no longer move queue pointer into s[0:1]
- Cleanup ELF definitions
- Add V2, V3, V4 suffixes to make a clear distinction for code object version
- Consolidate note names
Differential Revision: https://reviews.llvm.org/D95638
2021-03-24 11:54:05 -04:00
Konstantin Zhuravlyov
3fdf3b1539
AMDGPU: Update AMDHSA code object version handling
...
Differential Revision: https://reviews.llvm.org/D89076
2020-10-14 13:04:27 -04:00
Elvina Yakubova
b36a3e6140
[llvm-readobj] Update tests because of changes in llvm-readobj behavior
...
This patch updates tests using llvm-readobj and llvm-readelf, because
soon reading from stdin will be achievable only via a '-' as described
here: https://bugs.llvm.org/show_bug.cgi?id=46400 . Patch with changes to
llvm-readobj behavior is here: https://reviews.llvm.org/D83704
Differential Revision: https://reviews.llvm.org/D83912
Reviewed by: jhenderson, MaskRay, grimar
2020-07-20 10:39:04 +01:00
Matt Arsenault
31f4e43f3f
AMDGPU: Remove .value_type from kernel metadata
...
This doesn't appear used for anything, and is emitted incorrectly
based on the description. This also depends on the IR type, and
pointee element type.
2020-07-10 18:16:31 -04:00
Sameer Sahasrabuddhe
52c5014da0
[AMDGPU] add support for hostcall buffer pointer as hidden kernel argument
...
Hostcall is a service that allows a kernel to submit requests to the
host using shared buffers, and block until a response is
received. This will eventually replace the shared buffer currently
used for printf, and repurposes the same hidden kernel argument. This
change introduces a new ValueKind in the HSA metadata to represent the
hostcall buffer.
Differential Revision: https://reviews.llvm.org/D70038
2019-11-20 15:53:55 +05:30