[llvm-dev] LLVM module attributes question
Toshiyasu Morita via llvm-dev
llvm-dev at lists.llvm.org
Tue May 2 11:52:35 PDT 2017
Ahhh, thanks!
Toshi
On Tue, May 2, 2017 at 11:48 AM, Hongbin Zheng <etherzhhb at gmail.com> wrote:
> I think getModuleFlag do not return these attributes.
>
> These are function attributes that are returned by
> Function::getAttributes()
>
> On Tue, May 2, 2017 at 11:43 AM, Toshiyasu Morita via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> I'm trying to find a way to get/set the module attributes as printed in a
>> module dump:
>>
>> attributes #0 = { noinline nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false"
>> "disable-tail-calls"="false" "less-precise-fpmad"="false"
>> "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"
>> "no-infs-fp-math"="false" "no-jump-tables"="false"
>> "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false"
>> "no-trapping-math"="false" "stack-protector-buffer-size"="8"
>> "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87"
>> "unsafe-fp-math"="false" "use-soft-float"="false" }
>>
>> Am I correct in assuming these are actually called flags, and they're
>> accessed using Module::getModuleFlag() and Module::addModuleFlag()?
>>
>> Toshi
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> 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/20170502/f057e71d/attachment.html>
More information about the llvm-dev
mailing list