From 4a8953efa349569a298c0011997f89cc8abe7222 Mon Sep 17 00:00:00 2001 From: daadaada Date: Sun, 19 Dec 2021 10:03:22 +0800 Subject: [PATCH] [FRONTEND] Replace the legacy print call in triton.cc with the SlotTracker-based one. (#396) The legacy print call will assign names (e.g., %10) to values, which can be undesirable in some cases. --- python/src/triton.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/triton.cc b/python/src/triton.cc index 92df2ae27..01ad402aa 100644 --- a/python/src/triton.cc +++ b/python/src/triton.cc @@ -440,7 +440,7 @@ void init_triton_codegen(py::module &&m) { // record asm as we generate asm_map_t asm_map; std::ostringstream ttir; - ir::print(ir, ttir); + ir.print(ttir); asm_map["ttir"] = py::cast(ttir.str()); llvm::LLVMContext ctx; if(backend == CUDA)