<p dir="ltr">No, that doesn't sound like a good idea. There should be done way of representing this in assembly. </p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 4, 2016, 6:57 AM Andrey Turetskiy <<a href="mailto:andrey.turetskiy@gmail.com">andrey.turetskiy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">aturetsk added a comment.<br>
<br>
Can we use llvm.ident metadata which is stored and loaded from an assembly file to keep function-specific subtarget information across assembly?<br>
For example we could store "llvm/multiversioning/symbol_name/cpu_name/feature_bits_hex" string in ident metadata for functions which subtarget info differs from module's info in AsmPrinter::FinalizeMachineFunction.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D21374" rel="noreferrer" target="_blank">http://reviews.llvm.org/D21374</a><br>
<br>
<br>
<br>
</blockquote></div>