<div dir="ltr"><div>Ahhh, thanks!<br><br></div>Toshi<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 11:48 AM, Hongbin Zheng <span dir="ltr"><<a href="mailto:etherzhhb@gmail.com" target="_blank">etherzhhb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I thinkĀ <span style="font-size:12.8px">getModuleFlag do not return these attributes.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">These are function attributes that are returned by Function::getAttributes()</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, May 2, 2017 at 11:43 AM, Toshiyasu Morita via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>I'm trying to find a way to get/set the module attributes as printed in a module dump:<br><br>attributes #0 = { noinline nounwind uwtable "correctly-rounded-divide-sqrt<wbr>-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-lea<wbr>f" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="fal<wbr>se" "no-trapping-math"="false" "stack-protector-buffer-size"=<wbr>"8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,<wbr>+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }<br><br></div>Am I correct in assuming these are actually called flags, and they're accessed using Module::getModuleFlag() and Module::addModuleFlag()?<br><br></div>Toshi<br><br></div>
<br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>