[llvm-dev] Merge two Attribute lists

Nicholas Wilson via llvm-dev llvm-dev at lists.llvm.org
Sun May 28 00:58:43 PDT 2017


Fixed it: https://reviews.llvm.org/D33627

On 27 May 2017, at 11:21 pm, Nicholas Wilson via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:

Whats the best way to merge two AttributeLists (maintaining semantics after inlining)?

What I have at the moment is
result = AttributeSet::get(gIR->context(), {a,b});
but this (completely reliably - no races) segfaults on certain input, but only whenever
our logging code is turned OFF (a runtime switch).
The attributes when logging is on are
attributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false”
"no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"=“false"
 }

Any advice?
Also how do you print an attribute list?

_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170528/756cd4be/attachment.html>


More information about the llvm-dev mailing list