This is an archive of the discontinued LLVM Phabricator instance.

[mlir-cpu-runner] Support parsing operations other than 'builtin.module' as top-level
ClosedPublic

Authored by rkayaith on Sep 19 2022, 4:27 PM.

Details

Summary

This adds a --no-implicit-module option, which disables the insertion
of a top-level builtin.module during parsing. The top-level op is
required to have the SymbolTable trait.

The majority of the change here is removing ModuleOp from interfaces.

Diff Detail

Event Timeline

rkayaith created this revision.Sep 19 2022, 4:27 PM
rkayaith updated this revision to Diff 461434.Sep 19 2022, 6:10 PM

fix spriv-cpu-runner

rkayaith published this revision for review.Sep 19 2022, 10:29 PM

Needs a rebase?

mlir/include/mlir/ExecutionEngine/ExecutionEngine.h
53–54

We should likely drop the module or tweak the wording a bit.

rkayaith updated this revision to Diff 463366.Sep 27 2022, 4:51 PM
rkayaith retitled this revision from [mlir-cpu-runner] Support parsing operations other than builtin.module as top-level to [mlir-cpu-runner] Support parsing operations other than 'builtin.module' as top-level.
rkayaith edited the summary of this revision. (Show Details)

rebase

rkayaith updated this revision to Diff 463374.Sep 27 2022, 5:15 PM
rkayaith marked an inline comment as done.

update docstrings that reference "MLIR module"

rriddle accepted this revision.Oct 3 2022, 12:17 AM
This revision is now accepted and ready to land.Oct 3 2022, 12:17 AM
aartbik added inline comments.Oct 3 2022, 1:09 PM
mlir/lib/ExecutionEngine/JitRunner.cpp
26

This needs a bazel update?

rkayaith added inline comments.Oct 3 2022, 1:20 PM
mlir/lib/ExecutionEngine/JitRunner.cpp
26

I'm not familiar with the bazel build, sorry