The revision enriches the debug locations generated during LLVMIR to MLIR translation with file name information and adds a separate test to exercise the debug location translation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp | ||
|---|---|---|
| 190–192 | Nit: API-level entries should use /// for comments. | |
| 241–242 | Is this still useful? Maybe use it to cache UnknownLoc::get()? | |
| mlir/test/Target/LLVMIR/Import/debug-info.ll | ||
| 10 | Nit: basic block names are not guaranteed either, use something like ^{{.*}} instead. | |
Comment Actions
I was not sure if there was a specific intention behind the unknownLoc but I assume UnknownLoc did not exist at the time.
Nit: API-level entries should use /// for comments.