aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2019-11-19 14:05:39 +0530
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2019-11-20 15:53:55 +0530
commit52c5014da099797e9f1f6c90acddf79a68aa85cb (patch)
treeed25183186a703e2feec5ce7ad864cb41d415237 /llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
parentf67534afd6f237d3ec00c207b26579968c3d60e5 (diff)
downloadllvm-52c5014da099797e9f1f6c90acddf79a68aa85cb.zip
llvm-52c5014da099797e9f1f6c90acddf79a68aa85cb.tar.gz
llvm-52c5014da099797e9f1f6c90acddf79a68aa85cb.tar.bz2
[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
Diffstat (limited to 'llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp')
-rw-r--r--llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp b/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
index 3f36dff..d927171 100644
--- a/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
+++ b/llvm/lib/BinaryFormat/AMDGPUMetadataVerifier.cpp
@@ -119,6 +119,7 @@ bool MetadataVerifier::verifyKernelArgs(msgpack::DocNode &Node) {
.Case("hidden_global_offset_z", true)
.Case("hidden_none", true)
.Case("hidden_printf_buffer", true)
+ .Case("hidden_hostcall_buffer", true)
.Case("hidden_default_queue", true)
.Case("hidden_completion_action", true)
.Case("hidden_multigrid_sync_arg", true)