[all-commits] [llvm/llvm-project] 67ec87: llc: Change behavior of -mattr with existing attri...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Jan 15 16:46:16 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 67ec8744d7e72b50a5db5038c9643584ce57cb0c
https://github.com/llvm/llvm-project/commit/67ec8744d7e72b50a5db5038c9643584ce57cb0c
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2020-01-15 (Wed, 15 Jan 2020)
Changed paths:
M llvm/include/llvm/CodeGen/CommandFlags.inc
M llvm/test/CodeGen/WebAssembly/target-features.ll
M llvm/test/Other/opt-override-mcpu-mattr.ll
Log Message:
-----------
llc: Change behavior of -mattr with existing attribute
Append this to the existing target-features attribute on the function.
Some flags ignore existing attributes, and some overwrite them. Move
towards consistently respecting existing attributes if present. Since
target features act as a state machine on their own, append to the
function attribute. The backend default added feature list, function
attributes, and -mattr will all be appended together, and the later
features can individually toggle the earlier settings.
More information about the All-commits
mailing list