diff options
author | Nicolai Hähnle <[email protected]> | 2017-09-13 14:36:23 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-09-18 11:25:18 +0200 |
commit | 3db86d86ed8484d04c42453001d8704c3cd5d446 (patch) | |
tree | 4598d1350ae3fc6a11df3240b509345cbd70749b /src/amd/common/ac_llvm_build.c | |
parent | e0af3bed2cb52b5d8cf1da08b42cf28bae131c76 (diff) |
amd/common: add chip_class to ac_llvm_context
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.c')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 7193b80be59..4077bd81bbc 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -46,10 +46,13 @@ * The caller is responsible for initializing ctx::module and ctx::builder. */ void -ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context) +ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context, + enum chip_class chip_class) { LLVMValueRef args[1]; + ctx->chip_class = chip_class; + ctx->context = context; ctx->module = NULL; ctx->builder = NULL; |