Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
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, "");
+}
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
}