forked from OSchip/llvm-project
parent
3e600a29d3
commit
f7f319d4d3
|
@ -318,7 +318,7 @@ void X86FrameLowering::emitCalleeSavedFrameMoves(MachineFunction &MF,
|
|||
// move" for this extra "PUSH", the linker will lose track of the fact that
|
||||
// the frame pointer should have the value of the first "PUSH" when it's
|
||||
// trying to unwind.
|
||||
//
|
||||
//
|
||||
// FIXME: This looks inelegant. It's possibly correct, but it's covering up
|
||||
// another bug. I.e., one where we generate a prolog like this:
|
||||
//
|
||||
|
@ -594,8 +594,8 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
|||
StackPtr, false, NumBytes - 4);
|
||||
MBB.insert(MBBI, MI);
|
||||
}
|
||||
} else if (NumBytes >= 4096 &&
|
||||
STI.isTargetWin64() &&
|
||||
} else if (NumBytes >= 4096 &&
|
||||
STI.isTargetWin64() &&
|
||||
!STI.isTargetEnvMacho()) {
|
||||
// Sanity check that EAX is not livein for this function. It should
|
||||
// not be, so throw an assert.
|
||||
|
|
|
@ -63,7 +63,7 @@ static SDValue getMOVL(SelectionDAG &DAG, DebugLoc dl, EVT VT, SDValue V1,
|
|||
static TargetLoweringObjectFile *createTLOF(X86TargetMachine &TM) {
|
||||
const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||
bool is64Bit = Subtarget->is64Bit();
|
||||
|
||||
|
||||
if (Subtarget->isTargetEnvMacho()) {
|
||||
if (is64Bit)
|
||||
return new X8664_MachoTargetObjectFile();
|
||||
|
@ -3394,7 +3394,7 @@ unsigned X86::getInsertVINSERTF128Immediate(SDNode *N) {
|
|||
llvm_unreachable("Illegal insert subvector for VINSERTF128");
|
||||
|
||||
uint64_t Index =
|
||||
cast<ConstantSDNode>(N->getOperand(2).getNode())->getZExtValue();
|
||||
cast<ConstantSDNode>(N->getOperand(2).getNode())->getZExtValue();
|
||||
|
||||
EVT VecVT = N->getValueType(0);
|
||||
EVT ElVT = VecVT.getVectorElementType();
|
||||
|
|
|
@ -333,7 +333,7 @@ extern "C" {
|
|||
extern "C" {
|
||||
#if !(defined (X86_64_JIT) && defined(_MSC_VER))
|
||||
// the following function is called only from this translation unit,
|
||||
// unless we are under 64bit Windows with MSC, where there is
|
||||
// unless we are under 64bit Windows with MSC, where there is
|
||||
// no support for inline assembly
|
||||
static
|
||||
#endif
|
||||
|
@ -462,7 +462,7 @@ TargetJITInfo::StubLayout X86JITInfo::getStubLayout() {
|
|||
|
||||
void *X86JITInfo::emitFunctionStub(const Function* F, void *Target,
|
||||
JITCodeEmitter &JCE) {
|
||||
// Note, we cast to intptr_t here to silence a -pedantic warning that
|
||||
// Note, we cast to intptr_t here to silence a -pedantic warning that
|
||||
// complains about casting a function pointer to a normal pointer.
|
||||
#if defined (X86_32_JIT) && !defined (_MSC_VER)
|
||||
bool NotCC = (Target != (void*)(intptr_t)X86CompilationCallback &&
|
||||
|
|
Loading…
Reference in New Issue