summaryrefslogtreecommitdiffstats
path: root/src/amd/compiler/aco_interface.cpp
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-09-25 11:48:04 +0100
committerRhys Perry <[email protected]>2019-09-26 11:08:47 +0100
commit3c966fd688c1b8eb846fd8675275c33a08786b07 (patch)
tree350c9503d4f523071a798a708281d4e5b7288377 /src/amd/compiler/aco_interface.cpp
parentec8ced912337d57f9643b579201f5f1d637600e9 (diff)
aco,radv: rename record_llvm_ir/llvm_ir_string to record_ir/ir_string
Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/compiler/aco_interface.cpp')
-rw-r--r--src/amd/compiler/aco_interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amd/compiler/aco_interface.cpp b/src/amd/compiler/aco_interface.cpp
index 2a1986357ca..79dd33385dc 100644
--- a/src/amd/compiler/aco_interface.cpp
+++ b/src/amd/compiler/aco_interface.cpp
@@ -96,7 +96,7 @@ void aco_compile_shader(unsigned shader_count,
aco::schedule_program(program.get(), live_vars);
std::string llvm_ir;
- if (options->record_llvm_ir) {
+ if (options->record_ir) {
char *data = NULL;
size_t size = 0;
FILE *f = open_memstream(&data, &size);
@@ -140,7 +140,7 @@ void aco_compile_shader(unsigned shader_count,
std::vector<uint32_t> code;
unsigned exec_size = aco::emit_program(program.get(), code);
- bool get_disasm = options->dump_shader || options->record_llvm_ir;
+ bool get_disasm = options->dump_shader || options->record_ir;
size_t size = llvm_ir.size();
@@ -167,7 +167,7 @@ void aco_compile_shader(unsigned shader_count,
legacy_binary->config = config;
legacy_binary->disasm_size = 0;
- legacy_binary->llvm_ir_size = llvm_ir.size();
+ legacy_binary->ir_size = llvm_ir.size();
llvm_ir.copy((char*) legacy_binary->data + legacy_binary->code_size, llvm_ir.size());