<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Oct 9, 2018 at 11:32 AM Gleb Popov via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Note that I can't use global variables for a reason, so the data has to be encoded in a BB using inline assembly.</div></div></div></blockquote><div><br></div><div>Can you elaborate on why you've discarded this idea? There are tons of ways to put metadata in a global and then associate it with the function. The inline assembly snippets you pasted suggest that the contents are just data in some non-text section, they don't use any values from the function. What you're doing sounds a lot like coverage mapping data, instrprof data, asan global metadata, or exception handling data. Those features all have different ways to put stuff in global variables on the side and get them emitted into different sections as appropriate.</div></div></div>