[IR] Better printer (#256)

This commit is contained in:
daadaada
2021-09-02 00:55:12 +08:00
committed by GitHub
parent 4ff3714d61
commit 274d613488
7 changed files with 337 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ void add_passes_to_emit_bin(ir::module &ir, driver::device *dev, int num_warps,
allocation.run(ir);
prefetch_s.run(ir);
barriers.run(ir);
// ir.print(std::cout);
isel.visit(ir, *llvm);
mod = driver::module::create(dev, std::move(llvm));
ker = driver::kernel::create(&*mod, name.c_str());