[llvm-dev] Merge two Attribute lists
Nicholas Wilson via llvm-dev
llvm-dev at lists.llvm.org
Sat May 27 08:21:15 PDT 2017
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170527/74f3d77b/attachment.html>
More information about the llvm-dev
mailing list