[llvm-dev] LLVM module attributes question

Toshiyasu Morita via llvm-dev llvm-dev at lists.llvm.org
Tue May 2 11:43:57 PDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170502/50f18580/attachment.html>


More information about the llvm-dev mailing list