diff options
author | Brian Paul <brianp@vmware.com> | 2010-10-14 16:31:54 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-10-14 17:28:24 -0600 |
commit | 3d7479d70568c84354338d0da0b7bed4d296c169 (patch) | |
tree | 3ed44525ff730be2864efa73999eee3dd10f9554 /src | |
parent | 62450b3c490e3f16aa18135d5b1767911861ae4a (diff) |
llvmpipe: code to dump bytecode to file (disabled)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 6e3c27e78e..d2fbe27708 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -99,6 +99,7 @@ #include <llvm-c/Analysis.h> +#include <llvm-c/BitWriter.h> static unsigned fs_no = 0; @@ -778,6 +779,11 @@ generate_fragment(struct llvmpipe_context *lp, debug_printf("\n"); } + /* Dump byte code to a file */ + if (0) { + LLVMWriteBitcodeToFile(lp_build_module, "llvmpipe.bc"); + } + /* * Translate the LLVM IR into machine code. */ |