[PATCH] D81678: Introduce frozen attribute at call sites for stricter poison analysis
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 15:35:52 PDT 2020
jdoerfert added inline comments.
================
Comment at: clang/include/clang/Driver/CC1Options.td:507
+def disable_frozen_args : Flag<["-"], "disable-frozen-args">,
+ HelpText<"Disable emitting frozen attribute in LLVM IR">;
def load : Separate<["-"], "load">, MetaVarName<"<dsopath>">,
----------------
Do we want a second flag for return values or one to disable everything? Having the ability to disable it partially seems odd.
================
Comment at: clang/lib/CodeGen/CGCall.cpp:4095
+ }
+ }
call->setCallingConv(getRuntimeCC());
----------------
Why would we do this? Function attributes are valid at the call site, no need to copy them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81678/new/
https://reviews.llvm.org/D81678
More information about the cfe-commits
mailing list