summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-04-07 00:58:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-04-07 00:58:44 +0000
commita7c7b54dde5aa7fc37c5ceb70ab7c7ea3d77de0d (patch)
tree6b0bd75731330c5a20a60fbf0c8ede02a1e2265b /llvm/lib/Target/TargetMachine.cpp
parentb7c9c407f9e37ee0c83c1466024b8739492ff315 (diff)
downloadbcm5719-llvm-a7c7b54dde5aa7fc37c5ceb70ab7c7ea3d77de0d.tar.gz
bcm5719-llvm-a7c7b54dde5aa7fc37c5ceb70ab7c7ea3d77de0d.zip
Change -arm-divmod-libcall to a target neutral option.
llvm-svn: 129045
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index 681842ea6b6..8c7330a77c7 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -48,6 +48,7 @@ namespace llvm {
bool RealignStack;
bool DisableJumpTables;
bool StrongPHIElim;
+ bool HasDivModLibcall;
bool AsmVerbosityDefault(false);
}
@@ -205,6 +206,11 @@ EnableStrongPHIElim(cl::Hidden, "strong-phi-elim",
cl::desc("Use strong PHI elimination."),
cl::location(StrongPHIElim),
cl::init(false));
+static cl::opt<bool, true>
+UseDivMod("use-divmod-libcall",
+ cl::desc("Use __{u}divmod libcalls for div / rem pairs"),
+ cl::location(HasDivModLibcall),
+ cl::init(false));
static cl::opt<bool>
DataSections("fdata-sections",
cl::desc("Emit data into separate sections"),
OpenPOWER on IntegriCloud