Skip to content

Commit

Permalink
regent: Add logger for codegen to track what it's doing.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Dec 3, 2018
1 parent f017587 commit 352b917
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions language/src/regent/codegen.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
-- Regent Code Generation

local ast = require("regent/ast")
local data = require("common/data")
local report = require("common/report")
local std = require("regent/std")
local symbol_table = require("regent/symbol_table")
local codegen_hooks = require("regent/codegen_hooks")
local cudahelper = require("regent/cudahelper")
local data = require("common/data")
local log = require("common/log")
local openmphelper = require("regent/openmphelper")
local pretty = require("regent/pretty")
local report = require("common/report")
local std = require("regent/std")
local symbol_table = require("regent/symbol_table")

local log_codegen = log.make_logger("codegen")

-- Configuration Variables

Expand Down Expand Up @@ -9664,6 +9667,8 @@ local function setup_regent_calling_convention_metadata(node, task)
end

function codegen.top_task(cx, node)
log_codegen:info("Starting codegen for task " .. tostring(node.name))

local task = node.prototype
local variant = cx.variant
assert(variant)
Expand Down

0 comments on commit 352b917

Please sign in to comment.