mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
llvmpipe: code to dump bytecode to file (disabled)
This commit is contained in:
parent
62450b3c49
commit
3d7479d705
1 changed files with 6 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue