[all-commits] [llvm/llvm-project] 17b48d: [ForceFunctionAttrs] Make options additionally wor...
Aiden Grossman via All-commits
all-commits at lists.llvm.org
Fri Aug 25 14:06:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 17b48de120739cbc246b8e560a6f5976b2faf96f
https://github.com/llvm/llvm-project/commit/17b48de120739cbc246b8e560a6f5976b2faf96f
Author: Aiden Grossman <agrossman154 at yahoo.com>
Date: 2023-08-25 (Fri, 25 Aug 2023)
Changed paths:
M llvm/lib/Transforms/IPO/ForceFunctionAttrs.cpp
M llvm/test/Transforms/ForcedFunctionAttrs/forced.ll
Log Message:
-----------
[ForceFunctionAttrs] Make options additionally work over entire module
This patch makes the -force-attribute and -force-remove-attribute flags
in the forceattrs pass additionally work over all the functions in a
module rather than on specific functions. I often
find myself dealing with bitcode from projects with arbitrary build
systems that have applied the optnone attribute for various reasons and
having the ability to do this in opt would be quite convenient. It's
possible to remove the attribute by disassembling to textual IR, running
sed, and then running opt over the result, but this option makes things
just a bit easier.
Differential Revision: https://reviews.llvm.org/D158815
Reviewed-By: nikic
More information about the All-commits
mailing list