This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] UnknownLoc on Inlinable Calls in LLVMIR Translation
ClosedPublic

Authored by manbearian on Mar 14 2022, 12:07 PM.

Details

Summary

During MLIR translation to LLVMIR if an inlineable call has an UnkownLoc we get this error message:

inlinable function call in a function with debug info must have a !dbg location   
  call void @callee()

There is code that checks for this case and strips debug information to avoid this situation. I'm expanding this code to handle the case where an debug location points at a UnknownLoc. For example, a NamedLoc whose child location is an UnknownLoc.

Diff Detail

Event Timeline

manbearian created this revision.Mar 14 2022, 12:07 PM
Herald added a project: Restricted Project. · View Herald Transcript
manbearian requested review of this revision.Mar 14 2022, 12:07 PM
ftynse accepted this revision.Mar 15 2022, 5:19 AM
This revision is now accepted and ready to land.Mar 15 2022, 5:19 AM