aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorSebastian Neubauer <sebastian.neubauer@amd.com>2020-09-16 14:38:54 +0200
committerSebastian Neubauer <sebastian.neubauer@amd.com>2020-11-09 16:51:44 +0100
commita022b1ccd8d849dd59a8e7b76c0406cc80dee0f0 (patch)
treeb0b5bd390dd2a18b12cc25ac221ef30cbdc9a018 /llvm/lib/AsmParser/LLLexer.cpp
parentd093401a2617d3c46aaed9eeaecf877e3ae1a9f1 (diff)
downloadllvm-a022b1ccd8d849dd59a8e7b76c0406cc80dee0f0.zip
llvm-a022b1ccd8d849dd59a8e7b76c0406cc80dee0f0.tar.gz
llvm-a022b1ccd8d849dd59a8e7b76c0406cc80dee0f0.tar.bz2
[AMDGPU] Add amdgpu_gfx calling convention
Add a calling convention called amdgpu_gfx for real function calls within graphics shaders. For the moment, this uses the same calling convention as other calls in amdgpu, with registers excluded for return address, stack pointer and stack buffer descriptor. Differential Revision: https://reviews.llvm.org/D88540
Diffstat (limited to 'llvm/lib/AsmParser/LLLexer.cpp')
-rw-r--r--llvm/lib/AsmParser/LLLexer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index b8f7c08..3e36a32 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -624,6 +624,7 @@ lltok::Kind LLLexer::LexIdentifier() {
KEYWORD(amdgpu_ps);
KEYWORD(amdgpu_cs);
KEYWORD(amdgpu_kernel);
+ KEYWORD(amdgpu_gfx);
KEYWORD(tailcc);
KEYWORD(cc);