[lld][thinlto] Include -mllvm options in the thinlto cache key
authorMircea Trofin <mtrofin@google.com>
Fri, 16 Sep 2022 04:01:56 +0000 (21:01 -0700)
committerMircea Trofin <mtrofin@google.com>
Mon, 19 Sep 2022 19:04:17 +0000 (12:04 -0700)
commitc625c17b88b4831c99269546fc0ede1667528c6b
tree276817bbafe11dcd46b7515be7beaae2a73f6385
parenteec19987c04be4c94ffdd27817d4f77e1b7ee0a8
[lld][thinlto] Include -mllvm options in the thinlto cache key

They may modify thinlto optimization.

This patch only extends support for `-mllvm`. There is another way to
pass llvm flags, `-plugin-opt`, but its processing is different and will
be provided in a subsequent patch.

Differential Revision: https://reviews.llvm.org/D134013
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/LTO.cpp
lld/test/ELF/lto/cache.ll
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTO.cpp