summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/thinlto_embed_bitcode.ll
AgeCommit message (Collapse)Author
2020-11-24[NFC][tests] Replace non-portable grep with FileCheckHubert Tong
After commit 2482648a795afbe12774168bbbf70dc14c031267, a GNU grep option is just passed unconditionally to `grep` in general. This patch fixes the test for platforms where `grep` is not GNU grep.
2020-11-21thinlto_embed_bitcode.ll: clarify grep should treat input as textMircea Trofin
The input to the test's use of grep should be treated as text, and that's not the case on certain Linux distros. Added --text.
2020-10-29[ThinLTO] Fix empty .llvmcmd sectionsMircea Trofin
When passing -lto-embed-bitcode=post-merge-pre-opt, we were getting empty .llvmcmd sections. It turns out that is because the CodeGenOptions::CmdArgs field was only populated when clang saw -fembed-bitcode={all|marker}. This patch always populates the CodeGenOptions::CmdArgs. The overhead of carrying through in memory in all cases is likely negligible in the grand schema of things, and it keeps the using code simple. Differential Revision: https://reviews.llvm.org/D90366
2020-10-28[ThinLTO] Fix .llvmcmd emissionMircea Trofin
llvm::EmbedBitcodeInModule needs (what used to be called) EmbedMarker set, in order to emit .llvmcmd. EmbedMarker is really about embedding the command line, so renamed the parameter accordingly, too. This was not caught at test because the check-prefix was incorrect, but FileCheck does not report that when multiple prefixes are provided. A separate patch will address that. Differential Revision: https://reviews.llvm.org/D90278
2020-09-22[ThinLTO] Option to bypass function importing.Mircea Trofin
This completes the circle, complementing -lto-embed-bitcode (specifically, post-merge-pre-opt). Using -thinlto-assume-merged skips function importing. The index file is still needed for the other data it contains. Differential Revision: https://reviews.llvm.org/D87949
2020-09-15[ThinLTO] Relax thinlto_embed_bitcode.ll checkMircea Trofin
Fixes fuscia test [1] - the thinlto annotations may not always be there. [1] http://lab.llvm.org:8011/builders/fuchsia-x86_64-linux/builds/11312
2020-09-15[ThinLTO] add post-thinlto-merge option to -lto-embed-bitcodeMircea Trofin
This will embed bitcode after (Thin)LTO merge, but before optimizations. In the case the thinlto backend is called from clang, the .llvmcmd section is also produced. Doing so in the case where the caller is the linker doesn't yet have a motivation, and would require plumbing through command line args. Differential Revision: https://reviews.llvm.org/D87636