/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
D | PPCFrameLowering.h | 55 static unsigned getReturnSaveOffset(bool isPPC64, bool isDarwinABI) { in getReturnSaveOffset() argument 57 return isPPC64 ? 16 : 8; in getReturnSaveOffset() 59 return isPPC64 ? 16 : 4; in getReturnSaveOffset() 64 static unsigned getFramePointerSaveOffset(bool isPPC64, bool isDarwinABI) { in getFramePointerSaveOffset() argument 71 return isPPC64 ? -8U : -4U; in getFramePointerSaveOffset() 74 return isPPC64 ? -8U : -4U; in getFramePointerSaveOffset() 79 static unsigned getLinkageSize(bool isPPC64, bool isDarwinABI) { in getLinkageSize() argument 80 if (isDarwinABI || isPPC64) in getLinkageSize() 81 return 6 * (isPPC64 ? 8 : 4); in getLinkageSize() 89 static unsigned getMinCallArgumentsSize(bool isPPC64, bool isDarwinABI) { in getMinCallArgumentsSize() argument [all …]
|
D | PPCFrameLowering.cpp | 204 unsigned minCallFrameSize = getMinCallFrameSize(Subtarget.isPPC64(), in determineFrameLayout() 288 bool isPPC64 = Subtarget.isPPC64(); in emitPrologue() local 297 int LROffset = PPCFrameLowering::getReturnSaveOffset(isPPC64, isDarwinABI); in emitPrologue() 307 FPOffset = PPCFrameLowering::getFramePointerSaveOffset(isPPC64, isDarwinABI); in emitPrologue() 311 if (isPPC64) { in emitPrologue() 352 if (!isPPC64) { in emitPrologue() 437 MachineLocation SP(isPPC64 ? PPC::X31 : PPC::R31); in emitPrologue() 443 MachineLocation FPSrc(isPPC64 ? PPC::X31 : PPC::R31); in emitPrologue() 449 MachineLocation LRSrc(isPPC64 ? PPC::LR8 : PPC::LR); in emitPrologue() 458 if (!isPPC64) { in emitPrologue() [all …]
|
D | PPCAsmPrinter.cpp | 384 if (!Subtarget.isPPC64()) // linux/ppc32 - Normal entry label. in EmitFunctionEntryLabel() 402 bool isPPC64 = TD->getPointerSizeInBits() == 64; in doFinalization() local 404 if (isPPC64 && !TOC.empty()) { in doFinalization() 438 if (Subtarget.isPPC64() && Directive < PPC::DIR_970) in EmitStartOfAsmFile() 483 bool isPPC64 = TM.getTargetData()->getPointerSizeInBits() == 64; in EmitFunctionStubs() local 518 if (isPPC64) in EmitFunctionStubs() 531 if (isPPC64) in EmitFunctionStubs() 555 if (isPPC64) in EmitFunctionStubs() 567 if (isPPC64) in EmitFunctionStubs() 578 bool isPPC64 = TM.getTargetData()->getPointerSizeInBits() == 64; in doFinalization() local [all …]
|
D | PPCInstr64Bit.td | 391 "cmpd $crD, $rA, $rB", IntCompare>, isPPC64; 393 "cmpld $crD, $rA, $rB", IntCompare>, isPPC64; 395 "cmpdi $crD, $rA, $imm", IntCompare>, isPPC64; 397 "cmpldi $dst, $src1, $src2", IntCompare>, isPPC64; 401 [(set G8RC:$rA, (PPCshl G8RC:$rS, GPRC:$rB))]>, isPPC64; 404 [(set G8RC:$rA, (PPCsrl G8RC:$rS, GPRC:$rB))]>, isPPC64; 408 [(set G8RC:$rA, (PPCsra G8RC:$rS, GPRC:$rB))]>, isPPC64; 420 [(set G8RC:$rA, (sext_inreg G8RC:$rS, i32))]>, isPPC64; 424 [(set GPRC:$rA, (PPCextsw_32 GPRC:$rS))]>, isPPC64; 427 [(set G8RC:$rA, (sext GPRC:$rS))]>, isPPC64; [all …]
|
D | PPCRegisterInfo.cpp | 66 return ((EnablePPC32RS && !Subtarget.isPPC64()) || in requiresRegisterScavenging() 67 (EnablePPC64RS && Subtarget.isPPC64())); in requiresRegisterScavenging() 72 : PPCGenRegisterInfo(ST.isPPC64() ? PPC::LR8 : PPC::LR, in PPCRegisterInfo() 73 ST.isPPC64() ? 0 : 1, in PPCRegisterInfo() 74 ST.isPPC64() ? 0 : 1), in PPCRegisterInfo() 97 if (Subtarget.isPPC64()) in getPointerRegClass() 214 return Subtarget.isPPC64() ? Darwin64_CalleeSavedRegs : in getCalleeSavedRegs() 217 return Subtarget.isPPC64() ? SVR4_64_CalleeSavedRegs : SVR4_CalleeSavedRegs; in getCalleeSavedRegs() 246 if (Subtarget.isPPC64()) { in getReservedRegs() 286 bool is64Bit = Subtarget.isPPC64(); in eliminateCallFramePseudoInstr() [all …]
|
D | PPCISelLowering.cpp | 78 setMinStackArgumentAlignment(TM.getSubtarget<PPCSubtarget>().isPPC64() ? 8:4); in PPCTargetLowering() 222 && !TM.getSubtarget<PPCSubtarget>().isPPC64()) { in PPCTargetLowering() 375 if (TM.getSubtarget<PPCSubtarget>().isPPC64()) { in PPCTargetLowering() 908 Base = DAG.getRegister(PPCSubTarget.isPPC64() ? PPC::X0 : PPC::R0, in SelectAddressRegImm() 957 Base = DAG.getRegister(PPCSubTarget.isPPC64() ? PPC::X0 : PPC::R0, in SelectAddressRegRegOnly() 1023 Base = DAG.getRegister(PPCSubTarget.isPPC64() ? PPC::X0 : PPC::R0, in SelectAddressRegImmShift() 1206 if (PPCSubTarget.isSVR4ABI() && PPCSubTarget.isPPC64()) { in LowerGlobalAddress() 1283 assert(!Subtarget.isPPC64() && "LowerVAARG is PPC32 only"); in LowerVAARG() 1392 bool isPPC64 = (PtrVT == MVT::i64); in LowerINIT_TRAMPOLINE() local 1404 Entry.Node = DAG.getConstant(isPPC64 ? 48 : 40, in LowerINIT_TRAMPOLINE() [all …]
|
D | PPCSubtarget.h | 108 return isPPC64() ? "E-p:64:64-f64:64:64-i64:64:64-f128:64:128-n32:64" in getTargetDataString() 114 bool isPPC64() const { return IsPPC64; } in isPPC64() function
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 42 return STI.isPPC64() ? 16 : 8; in computeReturnSaveOffset() 44 return STI.isPPC64() ? 16 : 4; in computeReturnSaveOffset() 58 return STI.isPPC64() ? -8U : -4U; in computeFramePointerSaveOffset() 61 return STI.isPPC64() ? -8U : -4U; in computeFramePointerSaveOffset() 65 if (STI.isDarwinABI() || STI.isPPC64()) in computeLinkageSize() 66 return (STI.isELFv2ABI() ? 4 : 6) * (STI.isPPC64() ? 8 : 4); in computeLinkageSize() 74 return STI.isPPC64() ? -16U : -8U; in computeBasePointerSaveOffset() 77 return STI.isPPC64() in computeBasePointerSaveOffset() 96 if (Subtarget.isPPC64()) { in getCalleeSavedSpillSlots() 236 if (Subtarget.isPPC64()) { in getCalleeSavedSpillSlots() [all …]
|
D | PPCInstr64Bit.td | 250 "ldat $rD, $rA, $FC", IIC_LdStLoad>, isPPC64, 260 "stdat $rS, $rA, $FC", IIC_LdStStore>, isPPC64, 571 "cmpd $crD, $rA, $rB", IIC_IntCompare>, isPPC64; 573 "cmpld $crD, $rA, $rB", IIC_IntCompare>, isPPC64; 575 "cmpdi $crD, $rA, $imm", IIC_IntCompare>, isPPC64; 578 IIC_IntCompare>, isPPC64; 592 [(set i64:$rA, (PPCshl i64:$rS, i32:$rB))]>, isPPC64; 595 [(set i64:$rA, (PPCsrl i64:$rS, i32:$rB))]>, isPPC64; 598 [(set i64:$rA, (PPCsra i64:$rS, i32:$rB))]>, isPPC64; 623 "extsb $rA, $rS", IIC_IntSimple, []>, isPPC64; [all …]
|
D | PPCAsmPrinter.cpp | 451 ((Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::X3) || in EmitTlsCall() 452 (!Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::R3)) && in EmitTlsCall() 455 ((Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::X3) || in EmitTlsCall() 456 (!Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::R3)) && in EmitTlsCall() 459 if (!Subtarget->isPPC64() && !Subtarget->isDarwin() && in EmitTlsCall() 469 MCInstBuilder(Subtarget->isPPC64() ? in EmitTlsCall() 480 bool isPPC64 = Subtarget->isPPC64(); in EmitInstruction() local 758 assert(Subtarget->isPPC64() && "Not supported for 32-bit PowerPC"); in EmitInstruction() 777 TmpInst.setOpcode(isPPC64 ? PPC::LD : PPC::LWZ); in EmitInstruction() 836 assert(Subtarget->isPPC64() && "Not supported for 32-bit PowerPC"); in EmitInstruction() [all …]
|
D | PPCRegisterInfo.cpp | 61 : PPCGenRegisterInfo(TM.isPPC64() ? PPC::LR8 : PPC::LR, in PPCRegisterInfo() 62 TM.isPPC64() ? 0 : 1, in PPCRegisterInfo() 63 TM.isPPC64() ? 0 : 1), in PPCRegisterInfo() 91 if (TM.isPPC64()) in getPointerRegClass() 96 if (TM.isPPC64()) in getPointerRegClass() 113 return TM.isPPC64() in getCalleeSavedRegs() 119 if (TM.isPPC64() && MF->getInfo<PPCFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegs() 125 return TM.isPPC64() in getCalleeSavedRegs() 140 if (!TM.isPPC64()) in getCalleeSavedRegsViaCopy() 172 return TM.isPPC64() ? (Subtarget.hasAltivec() ? CSR_Darwin64_Altivec_RegMask in getCallPreservedMask() [all …]
|
D | PPCInstrInfo.cpp | 452 bool isPPC64 = Subtarget.isPPC64(); in analyzeBranch() local 504 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 515 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 572 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 586 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 648 bool isPPC64 = Subtarget.isPPC64(); in InsertBranch() local 656 (isPPC64 ? PPC::BDNZ8 : PPC::BDNZ) : in InsertBranch() 657 (isPPC64 ? PPC::BDZ8 : PPC::BDZ))).addMBB(TBB); in InsertBranch() 671 (isPPC64 ? PPC::BDNZ8 : PPC::BDNZ) : in InsertBranch() 672 (isPPC64 ? PPC::BDZ8 : PPC::BDZ))).addMBB(TBB); in InsertBranch() [all …]
|
D | PPCSubtarget.cpp | 197 CriticalPathRCs.push_back(isPPC64() ? in getCriticalPathRCs() 251 bool PPCSubtarget::isPPC64() const { return TM.isPPC64(); } in isPPC64() function in PPCSubtarget
|
D | PPCISelLowering.cpp | 78 bool isPPC64 = Subtarget.isPPC64(); in PPCTargetLowering() local 79 setMinStackArgumentAlignment(isPPC64 ? 8:4); in PPCTargetLowering() 115 if (isPPC64 || Subtarget.hasFPCVT()) { in PPCTargetLowering() 118 isPPC64 ? MVT::i64 : MVT::i32); in PPCTargetLowering() 121 isPPC64 ? MVT::i64 : MVT::i32); in PPCTargetLowering() 266 if (Subtarget.hasDirectMove() && isPPC64) { in PPCTargetLowering() 314 if (isPPC64) { in PPCTargetLowering() 333 if (Subtarget.isSVR4ABI() && !isPPC64) in PPCTargetLowering() 378 if (Subtarget.hasLFIWAX() || Subtarget.isPPC64()) in PPCTargetLowering() 566 if (Subtarget.hasDirectMove() && isPPC64) { in PPCTargetLowering() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 42 return STI.isPPC64() ? 16 : 8; in computeReturnSaveOffset() 44 return STI.isPPC64() ? 16 : 4; in computeReturnSaveOffset() 58 return STI.isPPC64() ? -8U : -4U; in computeFramePointerSaveOffset() 61 return STI.isPPC64() ? -8U : -4U; in computeFramePointerSaveOffset() 65 if (STI.isDarwinABI() || STI.isPPC64()) in computeLinkageSize() 66 return (STI.isELFv2ABI() ? 4 : 6) * (STI.isPPC64() ? 8 : 4); in computeLinkageSize() 74 return STI.isPPC64() ? -16U : -8U; in computeBasePointerSaveOffset() 77 return STI.isPPC64() in computeBasePointerSaveOffset() 96 if (Subtarget.isPPC64()) { in getCalleeSavedSpillSlots() 256 if (Subtarget.isPPC64()) { in getCalleeSavedSpillSlots() [all …]
|
D | PPCInstr64Bit.td | 257 "ldat $rD, $rA, $FC", IIC_LdStLoad>, isPPC64, 267 "stdat $rS, $rA, $FC", IIC_LdStStore>, isPPC64, 510 "ldx $rD, $rA, $rB", IIC_LdStLD, []>, isPPC64; 531 "stdx $rS, $rA, $rB", IIC_LdStSTD, []>, isPPC64, 615 "ldx $rD, $rA, $rB", IIC_LdStLD, []>, isPPC64; 629 "stdx $rS, $rA, $rB", IIC_LdStSTD, []>, isPPC64, 647 "cmpd $crD, $rA, $rB", IIC_IntCompare>, isPPC64; 649 "cmpld $crD, $rA, $rB", IIC_IntCompare>, isPPC64; 651 "cmpdi $crD, $rA, $imm", IIC_IntCompare>, isPPC64; 654 IIC_IntCompare>, isPPC64; [all …]
|
D | PPCRegisterInfo.cpp | 75 : PPCGenRegisterInfo(TM.isPPC64() ? PPC::LR8 : PPC::LR, in PPCRegisterInfo() 76 TM.isPPC64() ? 0 : 1, in PPCRegisterInfo() 77 TM.isPPC64() ? 0 : 1), in PPCRegisterInfo() 125 if (TM.isPPC64()) in getPointerRegClass() 130 if (TM.isPPC64()) in getPointerRegClass() 147 return TM.isPPC64() in getCalleeSavedRegs() 153 if (TM.isPPC64() && MF->getInfo<PPCFunctionInfo>()->isSplitCSR()) in getCalleeSavedRegs() 163 return TM.isPPC64() in getCalleeSavedRegs() 173 return TM.isPPC64() in getCalleeSavedRegs() 188 if (!TM.isPPC64()) in getCalleeSavedRegsViaCopy() [all …]
|
D | PPCAsmPrinter.cpp | 479 ((Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::X3) || in EmitTlsCall() 480 (!Subtarget->isPPC64() && MI->getOperand(0).getReg() == PPC::R3)) && in EmitTlsCall() 483 ((Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::X3) || in EmitTlsCall() 484 (!Subtarget->isPPC64() && MI->getOperand(1).getReg() == PPC::R3)) && in EmitTlsCall() 487 if (!Subtarget->isPPC64() && !Subtarget->isDarwin() && in EmitTlsCall() 497 MCInstBuilder(Subtarget->isPPC64() ? in EmitTlsCall() 508 bool isPPC64 = Subtarget->isPPC64(); in EmitInstruction() local 847 assert(Subtarget->isPPC64() && "Not supported for 32-bit PowerPC"); in EmitInstruction() 866 TmpInst.setOpcode(isPPC64 ? PPC::LD : PPC::LWZ); in EmitInstruction() 925 assert(Subtarget->isPPC64() && "Not supported for 32-bit PowerPC"); in EmitInstruction() [all …]
|
D | PPCSubtarget.cpp | 191 CriticalPathRCs.push_back(isPPC64() ? in getCriticalPathRCs() 231 bool PPCSubtarget::isPPC64() const { return TM.isPPC64(); } in isPPC64() function in PPCSubtarget
|
D | PPCInstrInfo.cpp | 104 STI.isPPC64() ? PPC::BLR8 : PPC::BLR), in PPCInstrInfo() 488 bool isPPC64 = Subtarget.isPPC64(); in analyzeBranch() local 554 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 565 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 622 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 636 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, in analyzeBranch() 702 bool isPPC64 = Subtarget.isPPC64(); in insertBranch() local 710 (isPPC64 ? PPC::BDNZ8 : PPC::BDNZ) : in insertBranch() 711 (isPPC64 ? PPC::BDZ8 : PPC::BDZ))).addMBB(TBB); in insertBranch() 727 (isPPC64 ? PPC::BDNZ8 : PPC::BDNZ) : in insertBranch() [all …]
|
D | PPCISelLowering.cpp | 134 bool isPPC64 = Subtarget.isPPC64(); in PPCTargetLowering() local 135 setMinStackArgumentAlignment(isPPC64 ? 8:4); in PPCTargetLowering() 194 if (isPPC64 || Subtarget.hasFPCVT()) { in PPCTargetLowering() 197 isPPC64 ? MVT::i64 : MVT::i32); in PPCTargetLowering() 200 isPPC64 ? MVT::i64 : MVT::i32); in PPCTargetLowering() 384 if (Subtarget.hasDirectMove() && isPPC64) { in PPCTargetLowering() 432 if (isPPC64) { in PPCTargetLowering() 451 if (Subtarget.isSVR4ABI() && !isPPC64) in PPCTargetLowering() 509 if (Subtarget.hasLFIWAX() || Subtarget.isPPC64()) in PPCTargetLowering() 704 if (Subtarget.hasDirectMove() && isPPC64) { in PPCTargetLowering() [all …]
|
D | PPCCTRLoops.cpp | 435 isLargeIntegerTy(!TM->isPPC64(), CI->getSrcTy()->getScalarType()) || in mightUseCTR() 436 isLargeIntegerTy(!TM->isPPC64(), CI->getDestTy()->getScalarType())) in mightUseCTR() 438 } else if (isLargeIntegerTy(!TM->isPPC64(), in mightUseCTR() 445 } else if (!TM->isPPC64() && in mightUseCTR() 580 if (SE->getTypeSizeInBits(EC->getType()) > (TM->isPPC64() ? 64 : 32)) in convertToCTRLoop() 654 Type *CountType = TM->isPPC64() ? Type::getInt64Ty(C) : Type::getInt32Ty(C); in convertToCTRLoop()
|
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCTargetDesc.cpp | 44 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64); in createPPCMCRegisterInfo() local 45 unsigned Flavour = isPPC64 ? 0 : 1; in createPPCMCRegisterInfo() 46 unsigned RA = isPPC64 ? PPC::LR8 : PPC::LR; in createPPCMCRegisterInfo() 62 bool isPPC64 = TheTriple.getArch() == Triple::ppc64; in createPPCMCAsmInfo() local 66 MAI = new PPCMCAsmInfoDarwin(isPPC64); in createPPCMCAsmInfo() 68 MAI = new PPCLinuxMCAsmInfo(isPPC64); in createPPCMCAsmInfo()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCTargetDesc.cpp | 62 bool isPPC64 = in createPPCMCRegisterInfo() local 64 unsigned Flavour = isPPC64 ? 0 : 1; in createPPCMCRegisterInfo() 65 unsigned RA = isPPC64 ? PPC::LR8 : PPC::LR; in createPPCMCRegisterInfo() 79 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCAsmInfo() local 84 MAI = new PPCMCAsmInfoDarwin(isPPC64, TheTriple); in createPPCMCAsmInfo() 86 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo() 89 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1; in createPPCMCAsmInfo()
|
/external/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCTargetDesc.cpp | 54 bool isPPC64 = in createPPCMCRegisterInfo() local 56 unsigned Flavour = isPPC64 ? 0 : 1; in createPPCMCRegisterInfo() 57 unsigned RA = isPPC64 ? PPC::LR8 : PPC::LR; in createPPCMCRegisterInfo() 71 bool isPPC64 = (TheTriple.getArch() == Triple::ppc64 || in createPPCMCAsmInfo() local 76 MAI = new PPCMCAsmInfoDarwin(isPPC64, TheTriple); in createPPCMCAsmInfo() 78 MAI = new PPCELFMCAsmInfo(isPPC64, TheTriple); in createPPCMCAsmInfo() 81 unsigned Reg = isPPC64 ? PPC::X1 : PPC::R1; in createPPCMCAsmInfo()
|