Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/CAPI/ExecutionEngine/ExecutionEngine.cpp | ||
---|---|---|
57 | Are you sure there's no unintended effects due to this being always-on? I'd rather take the flag as argument and thread that to Python. |
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h | ||
---|---|---|
49 | Please add documentation. | |
mlir/lib/ExecutionEngine/ExecutionEngine.cpp | ||
111 | Nit: please expand auto. MLIR only uses auto if the type is clear from immediate context. | |
113–116 | So this just suppresses all errors? This must be at least documented. Even better if we propagate failure to avoid the surprise for the caller when the dumped object is silently missing some functions that couldn't be compiled. | |
257 | I'd rather do m->getOps<LLVM::FuncOp> or at least indicate that traversal _inside_ functions isn't necessary. |
LGTM with the last batch of comments addressed.
mlir/include/mlir/ExecutionEngine/ExecutionEngine.h | ||
---|---|---|
205 | I think we need to use owning strings here. There doesn't seem to be a guarantee that the owner of the function name (attribute of the MLIR operation, so the content is presumably owned by the MLIRContext) outlives the execution engine. It looks unlikely, but someone may decide to free up the memory after compilation and before execution. | |
mlir/lib/ExecutionEngine/ExecutionEngine.cpp | ||
111 | There's no need to have a reference to StringRef which itself a reference to a string. |
This change has broken the Windows buildbot, in an unfortunately opaque way. https://lab.llvm.org/buildbot/#/builders/13/builds/27291
******************** TEST 'MLIR :: python/execution_engine.py' FAILED ******************** Script: -- : 'RUN: at line 1'; "C:/Program Files/Python39/python.exe" C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\test\python\execution_engine.py 2>&1 | c:\buildbot\mlir-x64-windows-ninja\build\bin\filecheck.exe C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\test\python\execution_engine.py -- Exit Code: 1 Command Output (stdout): -- $ ":" "RUN: at line 1" $ "C:/Program Files/Python39/python.exe" "C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\test\python\execution_engine.py" note: command had no output on stdout or stderr error: command failed with exit status: 1 $ "c:\buildbot\mlir-x64-windows-ninja\build\bin\filecheck.exe" "C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\test\python\execution_engine.py" -- ********************
Please add documentation.