It is a very common user trap to think that the location printed along with the diagnostic is the same as the current operation that caused the error. This revision changes the behavior to always print the current operation, except for when diagnostics are being verified. This is achieved by moving the command line flags in IR/ to be options on the MLIRContext.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/IR/MLIRContext.cpp | ||
---|---|---|
55 | Can we avoid cl::opt here and push it to clients? (trying to avoid more global constructor / global state) |
mlir/lib/IR/MLIRContext.cpp | ||
---|---|---|
55 | This is the same situation that we are already in. Moving to clients will require more churn on a currently simple revision. I'd rather defer that for a followup. |
Can we avoid cl::opt here and push it to clients? (trying to avoid more global constructor / global state)