summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/AMDGPUMetadata.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/Support/AMDGPUMetadata.cpp
parentf67534afd6f237d3ec00c207b26579968c3d60e5 (diff)
downloadbcm5719-llvm-52c5014da099797e9f1f6c90acddf79a68aa85cb.tar.gz
bcm5719-llvm-52c5014da099797e9f1f6c90acddf79a68aa85cb.zip
[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/Support/AMDGPUMetadata.cpp')
-rw-r--r--llvm/lib/Support/AMDGPUMetadata.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/AMDGPUMetadata.cpp b/llvm/lib/Support/AMDGPUMetadata.cpp
index 5f8102299f4..4ea197a9738 100644
--- a/llvm/lib/Support/AMDGPUMetadata.cpp
+++ b/llvm/lib/Support/AMDGPUMetadata.cpp
@@ -62,6 +62,7 @@ struct ScalarEnumerationTraits<ValueKind> {
YIO.enumCase(EN, "HiddenGlobalOffsetZ", ValueKind::HiddenGlobalOffsetZ);
YIO.enumCase(EN, "HiddenNone", ValueKind::HiddenNone);
YIO.enumCase(EN, "HiddenPrintfBuffer", ValueKind::HiddenPrintfBuffer);
+ YIO.enumCase(EN, "HiddenHostcallBuffer", ValueKind::HiddenHostcallBuffer);
YIO.enumCase(EN, "HiddenDefaultQueue", ValueKind::HiddenDefaultQueue);
YIO.enumCase(EN, "HiddenCompletionAction",
ValueKind::HiddenCompletionAction);
OpenPOWER on IntegriCloud