/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | RegUsageInfoCollector.cpp | 62 static void computeCalleeSavedRegs(BitVector &SavedRegs, MachineFunction &MF); 105 BitVector SavedRegs; in runOnMachineFunction() local 106 computeCalleeSavedRegs(SavedRegs, MF); in runOnMachineFunction() 116 if (SavedRegs.test(PReg)) in runOnMachineFunction() 122 if (!SavedRegs.test(*AI)) in runOnMachineFunction() 151 computeCalleeSavedRegs(BitVector &SavedRegs, MachineFunction &MF) { in computeCalleeSavedRegs() argument 156 SavedRegs.clear(); in computeCalleeSavedRegs() 157 TFI.determineCalleeSaves(MF, SavedRegs); in computeCalleeSavedRegs() 163 if (SavedRegs.test(Reg)) in computeCalleeSavedRegs() 165 SavedRegs.set(*SR); in computeCalleeSavedRegs() [all …]
|
D | TargetFrameLoweringImpl.cpp | 70 BitVector &SavedRegs, in determineCalleeSaves() argument 77 SavedRegs.resize(TRI.getNumRegs()); in determineCalleeSaves() 114 SavedRegs.set(Reg); in determineCalleeSaves()
|
D | ShrinkWrap.cpp | 167 BitVector SavedRegs; in getCurrentCSRs() local 171 TFI->determineCalleeSaves(*MachineFunc, SavedRegs, RS); in getCurrentCSRs() 173 for (int Reg = SavedRegs.find_first(); Reg != -1; in getCurrentCSRs() 174 Reg = SavedRegs.find_next(Reg)) in getCurrentCSRs()
|
/external/llvm/lib/Target/BPF/ |
D | BPFFrameLowering.cpp | 33 BitVector &SavedRegs, in determineCalleeSaves() argument 35 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 36 SavedRegs.reset(BPF::R6); in determineCalleeSaves() 37 SavedRegs.reset(BPF::R7); in determineCalleeSaves() 38 SavedRegs.reset(BPF::R8); in determineCalleeSaves() 39 SavedRegs.reset(BPF::R9); in determineCalleeSaves()
|
D | BPFFrameLowering.h | 31 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/ |
D | BPFFrameLowering.cpp | 33 BitVector &SavedRegs, in determineCalleeSaves() argument 35 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 36 SavedRegs.reset(BPF::R6); in determineCalleeSaves() 37 SavedRegs.reset(BPF::R7); in determineCalleeSaves() 38 SavedRegs.reset(BPF::R8); in determineCalleeSaves() 39 SavedRegs.reset(BPF::R9); in determineCalleeSaves()
|
D | BPFFrameLowering.h | 31 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
/external/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86AsmBackend.cpp | 483 mutable unsigned SavedRegs[CU_NUM_SAVED_REGS]; member in __anon6801bd310211::DarwinX86AsmBackend 519 memset(SavedRegs, 0, sizeof(SavedRegs)); in generateCompactUnwindEncodingImpl() 553 memset(SavedRegs, 0, sizeof(SavedRegs)); in generateCompactUnwindEncodingImpl() 598 SavedRegs[SavedRegIdx++] = Reg; in generateCompactUnwindEncodingImpl() 658 std::reverse(&SavedRegs[0], &SavedRegs[SavedRegIdx]); in generateCompactUnwindEncodingImpl() 700 unsigned Reg = SavedRegs[i]; in encodeCompactUnwindRegistersWithFrame() 734 int CUReg = getCompactUnwindRegNum(SavedRegs[i]); in encodeCompactUnwindRegistersWithoutFrame() 736 SavedRegs[i] = CUReg; in encodeCompactUnwindRegistersWithoutFrame() 740 std::reverse(&SavedRegs[0], &SavedRegs[CU_NUM_SAVED_REGS]); in encodeCompactUnwindRegistersWithoutFrame() 746 if (SavedRegs[j] < SavedRegs[i]) in encodeCompactUnwindRegistersWithoutFrame() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86AsmBackend.cpp | 496 mutable unsigned SavedRegs[CU_NUM_SAVED_REGS]; member in __anonaf8716690211::DarwinX86AsmBackend 532 memset(SavedRegs, 0, sizeof(SavedRegs)); in generateCompactUnwindEncodingImpl() 570 memset(SavedRegs, 0, sizeof(SavedRegs)); in generateCompactUnwindEncodingImpl() 615 SavedRegs[SavedRegIdx++] = Reg; in generateCompactUnwindEncodingImpl() 674 std::reverse(&SavedRegs[0], &SavedRegs[SavedRegIdx]); in generateCompactUnwindEncodingImpl() 716 unsigned Reg = SavedRegs[i]; in encodeCompactUnwindRegistersWithFrame() 750 int CUReg = getCompactUnwindRegNum(SavedRegs[i]); in encodeCompactUnwindRegistersWithoutFrame() 752 SavedRegs[i] = CUReg; in encodeCompactUnwindRegistersWithoutFrame() 756 std::reverse(&SavedRegs[0], &SavedRegs[CU_NUM_SAVED_REGS]); in encodeCompactUnwindRegistersWithoutFrame() 762 if (SavedRegs[j] < SavedRegs[i]) in encodeCompactUnwindRegistersWithoutFrame() [all …]
|
/external/llvm/lib/CodeGen/ |
D | TargetFrameLoweringImpl.cpp | 61 BitVector &SavedRegs, in determineCalleeSaves() argument 68 SavedRegs.resize(TRI.getNumRegs()); in determineCalleeSaves() 92 SavedRegs.set(Reg); in determineCalleeSaves()
|
D | ShrinkWrap.cpp | 139 BitVector SavedRegs; in getCurrentCSRs() local 143 TFI->determineCalleeSaves(*MachineFunc, SavedRegs, RS); in getCurrentCSRs() 145 for (int Reg = SavedRegs.find_first(); Reg != -1; in getCurrentCSRs() 146 Reg = SavedRegs.find_next(Reg)) in getCurrentCSRs()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/ |
D | RISCVFrameLowering.cpp | 206 BitVector &SavedRegs, in determineCalleeSaves() argument 208 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 212 SavedRegs.set(RISCV::X1); in determineCalleeSaves() 213 SavedRegs.set(RISCV::X8); in determineCalleeSaves() 231 SavedRegs.set(CSRegs[i]); in determineCalleeSaves() 242 SavedRegs.set(Regs[i]); in determineCalleeSaves()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZFrameLowering.cpp | 66 BitVector &SavedRegs, in determineCalleeSaves() argument 68 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 82 SavedRegs.set(SystemZ::ArgGPRs[I]); in determineCalleeSaves() 86 SavedRegs.set(SystemZ::R6D); in determineCalleeSaves() 87 SavedRegs.set(SystemZ::R7D); in determineCalleeSaves() 93 SavedRegs.set(SystemZ::R11D); in determineCalleeSaves() 98 SavedRegs.set(SystemZ::R14D); in determineCalleeSaves() 107 if (SystemZ::GR64BitRegClass.contains(Reg) && SavedRegs.test(Reg)) { in determineCalleeSaves() 108 SavedRegs.set(SystemZ::R15D); in determineCalleeSaves()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZFrameLowering.cpp | 66 BitVector &SavedRegs, in determineCalleeSaves() argument 68 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 82 SavedRegs.set(SystemZ::ArgGPRs[I]); in determineCalleeSaves() 86 SavedRegs.set(SystemZ::R6D); in determineCalleeSaves() 87 SavedRegs.set(SystemZ::R7D); in determineCalleeSaves() 93 SavedRegs.set(SystemZ::R11D); in determineCalleeSaves() 98 SavedRegs.set(SystemZ::R14D); in determineCalleeSaves() 107 if (SystemZ::GR64BitRegClass.contains(Reg) && SavedRegs.test(Reg)) { in determineCalleeSaves() 108 SavedRegs.set(SystemZ::R15D); in determineCalleeSaves()
|
/external/llvm/lib/Target/Mips/ |
D | Mips16FrameLowering.cpp | 159 BitVector &SavedRegs, in determineCalleeSaves() argument 161 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 168 SavedRegs.set(Mips::S2); in determineCalleeSaves() 170 SavedRegs.set(Mips::S0); in determineCalleeSaves()
|
D | Mips16FrameLowering.h | 41 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | Mips16FrameLowering.cpp | 164 BitVector &SavedRegs, in determineCalleeSaves() argument 166 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 173 SavedRegs.set(Mips::S2); in determineCalleeSaves() 175 SavedRegs.set(Mips::S0); in determineCalleeSaves()
|
D | Mips16FrameLowering.h | 41 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 1080 BitVector &SavedRegs, in determineCalleeSaves() argument 1087 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 1096 SavedRegs.set(AArch64::FP); in determineCalleeSaves() 1097 SavedRegs.set(AArch64::LR); in determineCalleeSaves() 1112 SavedRegs.set(Reg); in determineCalleeSaves() 1114 bool RegUsed = SavedRegs.test(Reg); in determineCalleeSaves() 1128 if (produceCompactUnwindFrame(MF) && !SavedRegs.test(PairedReg)) { in determineCalleeSaves() 1129 SavedRegs.set(PairedReg); in determineCalleeSaves() 1137 for (int Reg = SavedRegs.find_first(); Reg != -1; in determineCalleeSaves() 1138 Reg = SavedRegs.find_next(Reg)) in determineCalleeSaves() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FrameLowering.cpp | 1394 BitVector &SavedRegs, in determineCalleeSaves() argument 1401 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 1415 unsigned SpillEstimate = SavedRegs.count(); in determineCalleeSaves() 1421 if (produceCompactUnwindFrame(MF) && !SavedRegs.test(PairedReg)) in determineCalleeSaves() 1429 SavedRegs.set(AArch64::FP); in determineCalleeSaves() 1430 SavedRegs.set(AArch64::LR); in determineCalleeSaves() 1440 SavedRegs.set(Reg); in determineCalleeSaves() 1442 bool RegUsed = SavedRegs.test(Reg); in determineCalleeSaves() 1456 if (produceCompactUnwindFrame(MF) && !SavedRegs.test(PairedReg)) { in determineCalleeSaves() 1457 SavedRegs.set(PairedReg); in determineCalleeSaves() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMFrameLowering.cpp | 1546 checkNumAlignedDPRCS2Regs(MachineFunction &MF, BitVector &SavedRegs) { in checkNumAlignedDPRCS2Regs() argument 1575 if (!SavedRegs.test(ARM::D8 + NumSpills)) in checkNumAlignedDPRCS2Regs() 1586 SavedRegs.set(ARM::R4); in checkNumAlignedDPRCS2Regs() 1590 BitVector &SavedRegs, in determineCalleeSaves() argument 1592 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 1622 SavedRegs.set(ARM::R4); in determineCalleeSaves() 1631 SavedRegs.set(ARM::R4); in determineCalleeSaves() 1632 SavedRegs.set(ARM::LR); in determineCalleeSaves() 1638 SavedRegs.set(ARM::LR); in determineCalleeSaves() 1648 SavedRegs.set(ARM::R4); in determineCalleeSaves() [all …]
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiFrameLowering.cpp | 199 BitVector &SavedRegs, in determineCalleeSaves() argument 201 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 218 SavedRegs.reset(LRI->getBaseRegister()); in determineCalleeSaves()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/ |
D | LanaiFrameLowering.cpp | 199 BitVector &SavedRegs, in determineCalleeSaves() argument 201 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 218 SavedRegs.reset(LRI->getBaseRegister()); in determineCalleeSaves()
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86FrameLowering.cpp | 365 static uint32_t encodeCompactUnwindRegistersWithoutFrame(unsigned SavedRegs[6], in encodeCompactUnwindRegistersWithoutFrame() 390 int CUReg = getCompactUnwindRegNum(CURegs, SavedRegs[i]); in encodeCompactUnwindRegistersWithoutFrame() 392 SavedRegs[i] = CUReg; in encodeCompactUnwindRegistersWithoutFrame() 396 if (SavedRegs[j] < SavedRegs[i]) in encodeCompactUnwindRegistersWithoutFrame() 399 RenumRegs[i] = SavedRegs[i] - Countless - 1; in encodeCompactUnwindRegistersWithoutFrame() 438 static uint32_t encodeCompactUnwindRegistersWithFrame(unsigned SavedRegs[6], in encodeCompactUnwindRegistersWithFrame() 452 unsigned Reg = SavedRegs[I]; in encodeCompactUnwindRegistersWithFrame() 475 unsigned SavedRegs[6] = { 0, 0, 0, 0, 0, 0 }; in getCompactUnwindEncoding() local 509 SavedRegs[SavedRegIdx] = MI.getOperand(0).getReg(); in getCompactUnwindEncoding() 520 memset(SavedRegs, 0, sizeof(SavedRegs)); in getCompactUnwindEncoding() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMFrameLowering.cpp | 1425 checkNumAlignedDPRCS2Regs(MachineFunction &MF, BitVector &SavedRegs) { in checkNumAlignedDPRCS2Regs() argument 1454 if (!SavedRegs.test(ARM::D8 + NumSpills)) in checkNumAlignedDPRCS2Regs() 1465 SavedRegs.set(ARM::R4); in checkNumAlignedDPRCS2Regs() 1469 BitVector &SavedRegs, in determineCalleeSaves() argument 1471 TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS); in determineCalleeSaves() 1499 SavedRegs.set(ARM::R4); in determineCalleeSaves() 1504 SavedRegs.set(ARM::LR); in determineCalleeSaves() 1514 SavedRegs.set(ARM::R4); in determineCalleeSaves() 1518 checkNumAlignedDPRCS2Regs(MF, SavedRegs); in determineCalleeSaves() 1522 SavedRegs.set(RegInfo->getBaseRegister()); in determineCalleeSaves() [all …]
|