[llvm] [BOLT][AArch64] Introduce SPE mode in BasicAggregation (PR #120741)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 16:27:15 PST 2025
================
@@ -245,6 +247,13 @@ int main(int argc, char **argv) {
if (Error E = RIOrErr.takeError())
report_error(opts::InputFilename, std::move(E));
RewriteInstance &RI = *RIOrErr.get();
+
+ if (opts::AggregateOnly && !RI.getBinaryContext().isAArch64() &&
+ opts::ArmSPE == 1) {
+ errs() << "BOLT-ERROR: -spe is available only on AArch64.\n";
----------------
maksfb wrote:
nit: use `ToolName` instead of `"BOLT-ERROR"`.
https://github.com/llvm/llvm-project/pull/120741
More information about the llvm-commits
mailing list