diff options
author | Han Shen <shenhan@google.com> | 2023-08-24 10:11:16 -0700 |
---|---|---|
committer | Han Shen <shenhan@google.com> | 2023-08-24 15:55:43 -0700 |
commit | 7b27167a57c5809e9936fe3c0920054009cb46f4 (patch) | |
tree | af1add4a651b23ab1c4520d287d9c2ec065c2141 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 719506769a89c4f01fc8513cf3553e723591294c (diff) | |
download | llvm-7b27167a57c5809e9936fe3c0920054009cb46f4.zip llvm-7b27167a57c5809e9936fe3c0920054009cb46f4.tar.gz llvm-7b27167a57c5809e9936fe3c0920054009cb46f4.tar.bz2 |
[Driver] Make "-fno-split-machine-functions" a valid flag for all archs
Previously, clang reports an error when -fno-split-machine-functions
is used for non-X86 archs.
However, in some cases, users may specify flags as
"-fsplit-machine-functions -fother-flags
-fno-split-machine-functions", the first one is from a global flag
set, the last one is used to negate the global flag, we think this is
a valid usage mode.
Another cases is when clang is used to invoke multiple workloads, like
"-x cuda -fsplit-machine-functions -Xarch_device
-fno-split-machine-functions", the latter is used to negate
-fsplit-machine-functions when invoke workloads for GPU."
This change makes this work.
Reviewed By: maskray
Differential Revision: https://reviews.llvm.org/D158755
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions