Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tools/arcilator/arcilator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ static LogicalResult processBuffer(
#ifdef ARCILATOR_ENABLE_JIT
// Handle JIT execution.
if (outputFormat == OutputRunJIT) {
auto tsJit = ts.nest("JIT");
if (runUntilBefore != UntilEnd || runUntilAfter != UntilEnd) {
llvm::errs() << "full pipeline must be run for JIT execution\n";
return failure();
Expand Down Expand Up @@ -460,6 +461,7 @@ static LogicalResult processBuffer(
engineOptions.transformer = transformer;
engineOptions.sharedLibPaths = sharedLibraries;

auto tsCompile = tsJit.nest("Compile");
auto executionEngine =
mlir::ExecutionEngine::create(module.get(), engineOptions);
if (!executionEngine) {
Expand All @@ -480,7 +482,9 @@ static LogicalResult processBuffer(
});
return failure();
}
tsCompile.stop();

auto tsExecute = tsJit.nest("Execute");
void (*simulationFunc)(void **) = *expectedFunc;
(*simulationFunc)(nullptr);

Expand Down