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.h | |
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.h')
-rw-r--r-- | src/amd/common/ac_llvm_build.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index 14ec03f5c84..b6434893cfa 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -28,6 +28,8 @@ #include <stdbool.h> #include <llvm-c/TargetMachine.h> +#include "amd_family.h" + #ifdef __cplusplus extern "C" { #endif @@ -61,10 +63,13 @@ struct ac_llvm_context { unsigned fpmath_md_kind; LLVMValueRef fpmath_md_2p5_ulp; LLVMValueRef empty_md; + + enum chip_class chip_class; }; 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); unsigned ac_get_type_size(LLVMTypeRef type); |