[PATCH] D22766: Handle -mlong-calls on Hexagon
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 17:44:45 PDT 2016
compnerd added a subscriber: compnerd.
================
Comment at: include/clang/Driver/Options.td:1380
@@ +1379,3 @@
+def mlong_calls : Flag<["-"], "mlong-calls">, Group<m_Group>,
+ HelpText<"ARM: Generate an indirect jump to enable jumps further than 64M, Hexagon: Generate constant-extended branches.">;
+def mno_long_calls : Flag<["-"], "mno-long-calls">, Group<m_Group>,
----------------
It seems a bit weird to have target specific descriptions. AFAIK, the behavior is the same on all the targets: it generates branches which have full addressability (ARC, ARM, BlackFin, Epiphany, MIPS, PPC all support this option, probably amongst other architectures). This would easily grow unwieldily if we try to have target specific descriptions. We support at least ARM, MIPS, PPC, and now Hexagon. Why not make the description generic, something like:
Generate branches with extended addressability, usually via indirect jumps.
Repository:
rL LLVM
https://reviews.llvm.org/D22766
More information about the cfe-commits
mailing list