[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.
This commit is contained in:
daadaada
2021-12-19 10:03:22 +08:00
committed by GitHub
parent fa62b4a8f6
commit 4a8953efa3

View File

@@ -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)