/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegisterInfo.cpp | 55 MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 63 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 74 if ((MI.mayLoad() && FIOperandNum == WebAssembly::LoadAddressOperandNo) || in eliminateFrameIndex() 75 (MI.mayStore() && FIOperandNum == WebAssembly::StoreAddressOperandNo)) { in eliminateFrameIndex() 76 assert(FrameOffset >= 0 && MI.getOperand(FIOperandNum - 1).getImm() >= 0); in eliminateFrameIndex() 77 int64_t Offset = MI.getOperand(FIOperandNum - 1).getImm() + FrameOffset; in eliminateFrameIndex() 80 MI.getOperand(FIOperandNum - 1).setImm(Offset); in eliminateFrameIndex() 81 MI.getOperand(FIOperandNum) in eliminateFrameIndex() 90 MachineOperand &OtherMO = MI.getOperand(3 - FIOperandNum); in eliminateFrameIndex() 102 MI.getOperand(FIOperandNum) in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 67 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 79 int FrameIndex = MI->getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 82 MI->getOperand(FIOperandNum + 1).getImm()); in eliminateFrameIndex() 86 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 87 MI->getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 101 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 120 && MI->getOperand(FIOperandNum + 2).getReg() == 0) { in eliminateFrameIndex() 124 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 125 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 142 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegisterInfo.cpp | 55 MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 63 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 69 if (MI.mayLoadOrStore() && FIOperandNum == WebAssembly::MemOpAddressOperandNo) { in eliminateFrameIndex() 74 MI.getOperand(FIOperandNum - 1).setImm(Offset); in eliminateFrameIndex() 75 MI.getOperand(FIOperandNum) in eliminateFrameIndex() 84 MachineOperand &OtherMO = MI.getOperand(3 - FIOperandNum); in eliminateFrameIndex() 96 MI.getOperand(FIOperandNum) in eliminateFrameIndex() 122 MI.getOperand(FIOperandNum).ChangeToRegister(FIRegOperand, /*IsDef=*/false); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/ |
D | SparcRegisterInfo.cpp | 110 unsigned FIOperandNum, int Offset, unsigned FramePtr) { in replaceFI() argument 115 MI.getOperand(FIOperandNum).ChangeToRegister(FramePtr, false); in replaceFI() 116 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in replaceFI() 137 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI() 138 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(LO10(Offset)); in replaceFI() 155 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI() 156 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(0); in replaceFI() 162 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 168 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 177 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/Sparc/ |
D | SparcRegisterInfo.cpp | 110 unsigned FIOperandNum, int Offset, unsigned FramePtr) { in replaceFI() argument 115 MI.getOperand(FIOperandNum).ChangeToRegister(FramePtr, false); in replaceFI() 116 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in replaceFI() 137 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI() 138 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(LO10(Offset)); in replaceFI() 155 MI.getOperand(FIOperandNum).ChangeToRegister(SP::G1, false); in replaceFI() 156 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(0); in replaceFI() 162 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 168 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 177 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXRegisterInfo.cpp | 92 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 97 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 101 MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 104 MI.getOperand(FIOperandNum).ChangeToRegister(NVPTX::VRFrame, false); in eliminateFrameIndex() 105 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXRegisterInfo.cpp | 114 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 119 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 123 MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 126 MI.getOperand(FIOperandNum).ChangeToRegister(NVPTX::VRFrame, false); in eliminateFrameIndex() 127 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 164 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 176 int FrameIndex = MI->getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 179 MI->getOperand(FIOperandNum + 1).getImm()); in eliminateFrameIndex() 183 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 184 MI->getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 198 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 217 && MI->getOperand(FIOperandNum + 2).getReg() == 0) { in eliminateFrameIndex() 221 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 222 MI->getOperand(FIOperandNum + 2).ChangeToRegister(ScratchReg, in eliminateFrameIndex() 239 MI->getOperand(FIOperandNum).ChangeToRegister(ScratchReg, in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430RegisterInfo.cpp | 105 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 114 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 128 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 137 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 154 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 155 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
D | MSP430RegisterInfo.cpp | 105 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 114 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 128 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 137 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 154 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 155 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/ |
D | RISCVRegisterInfo.cpp | 69 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 79 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 83 MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 107 MI.getOperand(FIOperandNum) in eliminateFrameIndex() 109 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/ |
D | LanaiRegisterInfo.cpp | 136 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 147 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 150 MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 221 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, /*isDef=*/false); in eliminateFrameIndex() 222 MI.getOperand(FIOperandNum + 1) in eliminateFrameIndex() 243 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, /*isDef=*/false); in eliminateFrameIndex() 244 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/llvm/lib/Target/Lanai/ |
D | LanaiRegisterInfo.cpp | 136 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 147 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 150 MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 221 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, /*isDef=*/false); in eliminateFrameIndex() 222 MI.getOperand(FIOperandNum + 1) in eliminateFrameIndex() 243 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, /*isDef=*/false); in eliminateFrameIndex() 244 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 762 unsigned FIOperandNum) { in getOffsetONFromFION() argument 764 unsigned OffsetOperandNo = (FIOperandNum == 2) ? 1 : 2; in getOffsetONFromFION() 766 OffsetOperandNo = FIOperandNum - 1; in getOffsetONFromFION() 769 OffsetOperandNo = FIOperandNum + 1; in getOffsetONFromFION() 776 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 793 unsigned OffsetOperandNo = getOffsetONFromFION(MI, FIOperandNum); in eliminateFrameIndex() 796 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 839 MI.getOperand(FIOperandNum).ChangeToRegister( in eliminateFrameIndex() 915 unsigned StackReg = MI.getOperand(FIOperandNum).getReg(); in eliminateFrameIndex() 1028 unsigned FIOperandNum = 0; in resolveFrameIndex() local [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86RegisterInfo.cpp | 576 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 581 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 604 MachineOperand &FI = MI.getOperand(FIOperandNum); in eliminateFrameIndex() 619 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 637 int64_t Offset = MI.getOperand(FIOperandNum + 1).getImm() + FIOffset; in eliminateFrameIndex() 638 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 642 if (MI.getOperand(FIOperandNum+3).isImm()) { in eliminateFrameIndex() 644 int Imm = (int)(MI.getOperand(FIOperandNum + 3).getImm()); in eliminateFrameIndex() 648 MI.getOperand(FIOperandNum + 3).ChangeToImmediate(Offset); in eliminateFrameIndex() 652 (uint64_t)MI.getOperand(FIOperandNum+3).getOffset(); in eliminateFrameIndex() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/ |
D | AVRRegisterInfo.cpp | 129 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 141 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 147 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 154 MI.getOperand(FIOperandNum).ChangeToRegister(AVR::R29R28, false); in eliminateFrameIndex() 242 MI.getOperand(FIOperandNum).ChangeToRegister(AVR::R29R28, false); in eliminateFrameIndex() 244 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/llvm/lib/Target/AVR/ |
D | AVRRegisterInfo.cpp | 122 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 134 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 140 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 147 MI.getOperand(FIOperandNum).ChangeToRegister(AVR::R29R28, false); in eliminateFrameIndex() 232 MI.getOperand(FIOperandNum).ChangeToRegister(AVR::R29R28, false); in eliminateFrameIndex() 234 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCRegisterInfo.cpp | 855 unsigned FIOperandNum) { in getOffsetONFromFION() argument 857 unsigned OffsetOperandNo = (FIOperandNum == 2) ? 1 : 2; in getOffsetONFromFION() 859 OffsetOperandNo = FIOperandNum - 1; in getOffsetONFromFION() 862 OffsetOperandNo = FIOperandNum + 1; in getOffsetONFromFION() 869 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 886 unsigned OffsetOperandNo = getOffsetONFromFION(MI, FIOperandNum); in eliminateFrameIndex() 889 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 932 MI.getOperand(FIOperandNum).ChangeToRegister( in eliminateFrameIndex() 1011 unsigned StackReg = MI.getOperand(FIOperandNum).getReg(); in eliminateFrameIndex() 1124 unsigned FIOperandNum = 0; in resolveFrameIndex() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86RegisterInfo.cpp | 679 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 684 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 705 MachineOperand &FI = MI.getOperand(FIOperandNum); in eliminateFrameIndex() 720 MI.getOperand(FIOperandNum).ChangeToRegister(MachineBasePtr, false); in eliminateFrameIndex() 729 int64_t Offset = MI.getOperand(FIOperandNum + 1).getImm() + FIOffset; in eliminateFrameIndex() 730 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 734 if (MI.getOperand(FIOperandNum+3).isImm()) { in eliminateFrameIndex() 736 int Imm = (int)(MI.getOperand(FIOperandNum + 3).getImm()); in eliminateFrameIndex() 741 MI.getOperand(FIOperandNum + 3).ChangeToImmediate(Offset); in eliminateFrameIndex() 745 (uint64_t)MI.getOperand(FIOperandNum+3).getOffset(); in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64RegisterInfo.cpp | 364 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 375 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 384 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 385 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 386 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 392 if (rewriteAArch64FrameIndex(MI, FIOperandNum, FrameReg, Offset, TII)) in eliminateFrameIndex() 404 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64RegisterInfo.cpp | 392 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 403 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 412 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 413 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 414 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 420 if (rewriteAArch64FrameIndex(MI, FIOperandNum, FrameReg, Offset, TII)) in eliminateFrameIndex() 432 MI.getOperand(FIOperandNum).ChangeToRegister(ScratchReg, false, false, true); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/ |
D | ARCRegisterInfo.cpp | 163 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 167 MachineOperand &FrameOp = MI.getOperand(FIOperandNum); in eliminateFrameIndex() 191 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 192 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 197 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ThumbRegisterInfo.cpp | 508 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 515 return ARMBaseRegisterInfo::eliminateFrameIndex(II, SPAdj, FIOperandNum, in eliminateFrameIndex() 524 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 545 MI.getOperand(FIOperandNum). ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 546 MI.getOperand(FIOperandNum+1).ChangeToImmediate(Offset); in eliminateFrameIndex() 553 if (rewriteFrameIndex(MI, FIOperandNum, FrameReg, Offset, TII)) in eliminateFrameIndex() 586 MI.getOperand(FIOperandNum).ChangeToRegister(TmpReg, false, false, true); in eliminateFrameIndex() 590 MI.getOperand(FIOperandNum+1).ChangeToRegister(FrameReg, false, false, in eliminateFrameIndex() 608 MI.getOperand(FIOperandNum).ChangeToRegister(VReg, false, false, true); in eliminateFrameIndex() 612 MI.getOperand(FIOperandNum+1).ChangeToRegister(FrameReg, false, false, in eliminateFrameIndex()
|
/external/llvm/lib/Target/ARM/ |
D | ThumbRegisterInfo.cpp | 496 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 503 return ARMBaseRegisterInfo::eliminateFrameIndex(II, SPAdj, FIOperandNum, in eliminateFrameIndex() 513 int FrameIndex = MI.getOperand(FIOperandNum).getIndex(); in eliminateFrameIndex() 545 MI.getOperand(FIOperandNum). ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 546 MI.getOperand(FIOperandNum+1).ChangeToImmediate(Offset); in eliminateFrameIndex() 553 if (rewriteFrameIndex(MI, FIOperandNum, FrameReg, Offset, TII)) in eliminateFrameIndex() 586 MI.getOperand(FIOperandNum).ChangeToRegister(TmpReg, false, false, true); in eliminateFrameIndex() 590 MI.getOperand(FIOperandNum+1).ChangeToRegister(FrameReg, false, false, in eliminateFrameIndex() 608 MI.getOperand(FIOperandNum).ChangeToRegister(VReg, false, false, true); in eliminateFrameIndex() 612 MI.getOperand(FIOperandNum+1).ChangeToRegister(FrameReg, false, false, in eliminateFrameIndex()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreRegisterInfo.cpp | 262 int SPAdj, unsigned FIOperandNum, in eliminateFrameIndex() argument 266 MachineOperand &FrameOp = MI.getOperand(FIOperandNum); in eliminateFrameIndex() 293 MI.getOperand(FIOperandNum).ChangeToRegister(FrameReg, false /*isDef*/); in eliminateFrameIndex() 294 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Offset); in eliminateFrameIndex() 299 Offset += MI.getOperand(FIOperandNum + 1).getImm(); in eliminateFrameIndex() 300 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(0); in eliminateFrameIndex()
|