Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Hey, I just discovered this CL, and I'd love to have this for WebAssembly. LGTM, FWIW
test/CodeGen/Generic/llc-start-stop.ll | ||
---|---|---|
6 | Could add another line like |
include/llvm/CodeGen/TargetPassConfig.h | ||
---|---|---|
151 | These asserts should be report_fatal_error; the user might trigger them with bad command-line options (and I assume we still want them in release builds). |
LGTM.
include/llvm/CodeGen/TargetPassConfig.h | ||
---|---|---|
151 | Agreed. A follow-up commit is fine given we use to assert on that already. |
include/llvm/CodeGen/TargetPassConfig.h | ||
---|---|---|
151 | I'll leave this as an assert, but will add some error handling/catching for this case to llc. Reasoning: I'd like to keep the llvm free of (unnecessary) commandline handling logic, that's the frontends job IMO (llc in this case). Ideally we would have all of this start/stop/before/after handling purely in llc, however when I tried to do that it turned out to be quite tricky so I left the code as is and went for the easy enhancement. |
Sure, sounds reasonable. In this case we just happen to have fewer library consumers of the exported APIs. The only library consumers are the static thunk libraries.
These asserts should be report_fatal_error; the user might trigger them with bad command-line options (and I assume we still want them in release builds).