diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-28 17:32:05 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-29 10:25:00 +0100 |
commit | 0fca80b3db64dc1d004f78e22b9de86a07e9de96 (patch) | |
tree | 8352bb49a65abfc372d6c7c8efaf714944e706f5 /src/amd/common/ac_llvm_util.h | |
parent | ce7a045feeef8cad155f1c9aa07f166e146e3d00 (diff) |
various: Fix missing DumpModule with recent LLVM.
Since LLVM revision 293359 DumpModule gets only implemented when
either a debug build or LLVM_ENABLE_DUMP is set.
This patch adds a direct replacement for the function for radv and
radeonsi, However, as I don't know a good place to put common LLVM
code for all three I inlined the implementation for LLVMPipe.
v2: Use the new code for LLVM 3.4+ instead of LLVM 5+ & fixed indentation
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r-- | src/amd/common/ac_llvm_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h index 802c2662470..2d301c93575 100644 --- a/src/amd/common/ac_llvm_util.h +++ b/src/amd/common/ac_llvm_util.h @@ -95,6 +95,9 @@ ac_prepare_cube_coords(struct ac_llvm_context *ctx, LLVMValueRef *coords_arg, LLVMValueRef *derivs_arg); +void +ac_dump_module(LLVMModuleRef module); + #ifdef __cplusplus } #endif |