Turns out raw_fd_stream doesn't work with named pipes, so we just need
to lower the abstraction. Updated the unittest accordingly. Because
mkfifo's path argument requires a certain naming pattern on Windows
(IIUC), restricted the test to Linux only.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM. Just minor comments about sticking to the FileSystem.h API and removing a couple of #includes.
llvm/include/llvm/Analysis/InteractiveModelRunner.h | ||
---|---|---|
19 | If you are lowering things down to sys::fs::file_t, you probably don't need this!? | |
llvm/lib/Analysis/InteractiveModelRunner.cpp | ||
18 | You should be able to remove this if you can switch ::read to sys::fs::readNativeFile below. | |
76 | Can you use sys::fs::readNativeFile for consistency with sys::fs::openFileForRead and sys::fs::closeFile? | |
llvm/unittests/Analysis/MLModelRunnerTest.cpp | ||
179 | Likewise, can you use sys::fs::readNativeFile for consistency with sys::fs::openFileForRead? | |
202–203 | Likewise. | |
214–215 | Likewise. | |
238–239 | Likewise. | |
249 | Can you use sys::fs::closeFile here? |
Hey, looks like this might've broken the windows sanitizer bots. Would you be able to take a look? https://lab.llvm.org/buildbot/#/builders/127/builds/43077
Thanks.
If you are lowering things down to sys::fs::file_t, you probably don't need this!?