aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/llvm
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-12-30 14:08:09 -0500
committerMarek Olšák <[email protected]>2020-01-08 16:03:48 -0500
commit9b710416270b05ddc08e26e38fd87ff589b2860d (patch)
tree6aaf0da4fe3be2878f51e3fb0bec6b6331ae5f92 /src/amd/llvm
parent1c44480538ac9bc6d5900a0704cbc447afc735f9 (diff)
ac: add ac_build_s_endpgm
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/amd/llvm')
-rw-r--r--src/amd/llvm/ac_llvm_build.c6
-rw-r--r--src/amd/llvm/ac_llvm_build.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c
index b62b81999d3..79831260066 100644
--- a/src/amd/llvm/ac_llvm_build.c
+++ b/src/amd/llvm/ac_llvm_build.c
@@ -4889,3 +4889,9 @@ ac_build_main(const struct ac_shader_args *args,
return main_function;
}
+void ac_build_s_endpgm(struct ac_llvm_context *ctx)
+{
+ LLVMTypeRef calltype = LLVMFunctionType(ctx->voidt, NULL, 0, false);
+ LLVMValueRef code = LLVMConstInlineAsm(calltype, "s_endpgm", "", true, false);
+ LLVMBuildCall(ctx->builder, code, NULL, 0, "");
+}
diff --git a/src/amd/llvm/ac_llvm_build.h b/src/amd/llvm/ac_llvm_build.h
index af774ab092f..627433efd5d 100644
--- a/src/amd/llvm/ac_llvm_build.h
+++ b/src/amd/llvm/ac_llvm_build.h
@@ -786,6 +786,7 @@ LLVMValueRef ac_build_main(const struct ac_shader_args *args,
enum ac_llvm_calling_convention convention,
const char *name, LLVMTypeRef ret_type,
LLVMModuleRef module);
+void ac_build_s_endpgm(struct ac_llvm_context *ctx);
#ifdef __cplusplus
}