mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
make arm-use-movt available for all ARM
Before this patch this flag is IOS specific, but is also useful for bare project like bootloaders / kernels etc, since movw / movt prevents simple relocation. Therefore make this flag more commonly available. note: this patch depends on a similiar rename in clang Patch by Jeroen Hofstee. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24adc8f60f
commit
14c41370e3
@ -32,7 +32,7 @@ ReserveR9("arm-reserve-r9", cl::Hidden,
|
|||||||
cl::desc("Reserve R9, making it unavailable as GPR"));
|
cl::desc("Reserve R9, making it unavailable as GPR"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
DarwinUseMOVT("arm-darwin-use-movt", cl::init(true), cl::Hidden);
|
ArmUseMOVT("arm-use-movt", cl::init(true), cl::Hidden);
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
UseFusedMulOps("arm-use-mulops",
|
UseFusedMulOps("arm-use-mulops",
|
||||||
@ -169,12 +169,12 @@ void ARMSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
|||||||
if (isAAPCS_ABI())
|
if (isAAPCS_ABI())
|
||||||
stackAlignment = 8;
|
stackAlignment = 8;
|
||||||
|
|
||||||
|
UseMovt = hasV6T2Ops() && ArmUseMOVT;
|
||||||
|
|
||||||
if (!isTargetIOS()) {
|
if (!isTargetIOS()) {
|
||||||
UseMovt = hasV6T2Ops();
|
|
||||||
IsR9Reserved = ReserveR9;
|
IsR9Reserved = ReserveR9;
|
||||||
} else {
|
} else {
|
||||||
IsR9Reserved = ReserveR9 | !HasV6Ops;
|
IsR9Reserved = ReserveR9 | !HasV6Ops;
|
||||||
UseMovt = DarwinUseMOVT && hasV6T2Ops();
|
|
||||||
SupportsTailCall = !getTargetTriple().isOSVersionLT(5, 0);
|
SupportsTailCall = !getTargetTriple().isOSVersionLT(5, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user