/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopDataPrefetch.cpp | 242 Instruction *MemI = nullptr; member 256 MemI = I; in addInstruction() 329 Instruction *MemI; in runOnLoop() local 332 MemI = LMemI; in runOnLoop() 336 MemI = SMemI; in runOnLoop() 363 Pref.addInstruction(MemI, DT, PD); in runOnLoop() 370 Prefetches.push_back(Prefetch(LSCEVAddRec, MemI)); in runOnLoop() 417 << *P.MemI->getOperand(isa<LoadInst>(P.MemI) ? 0 : 1) in runOnLoop() 420 return OptimizationRemark(DEBUG_TYPE, "Prefetched", P.MemI) in runOnLoop()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCLoopInstrFormPrep.cpp | 261 bool alreadyPrepared(Loop *L, Instruction *MemI, 266 Value *getNodeForInc(Loop *L, Instruction *MemI, 291 void addOneCandidate(Instruction *MemI, const SCEV *LSCEV, 374 static Value *getPointerOperandAndType(Value *MemI, in getPointerOperandAndType() argument 380 if (LoadInst *LMemI = dyn_cast<LoadInst>(MemI)) { in getPointerOperandAndType() 383 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(MemI)) { in getPointerOperandAndType() 386 } else if (IntrinsicInst *IMemI = dyn_cast<IntrinsicInst>(MemI)) { in getPointerOperandAndType() 387 PointerElementType = Type::getInt8Ty(MemI->getContext()); in getPointerOperandAndType() 836 Instruction *MemI, const SCEV *LSCEV, SmallVector<Bucket, 16> &Buckets, in addOneCandidate() argument 838 assert((MemI && getPointerOperandAndType(MemI)) && in addOneCandidate() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64InstrInfo.cpp | 2719 AArch64InstrInfo::getAddrModeFromMemoryOp(const MachineInstr &MemI, in getAddrModeFromMemoryOp() argument 2724 if (!getMemOperandWithOffset(MemI, Base, Offset, OffsetIsScalable, TRI)) in getAddrModeFromMemoryOp() 2737 bool AArch64InstrInfo::canFoldIntoAddrMode(const MachineInstr &MemI, in canFoldIntoAddrMode() argument 2744 switch (MemI.getOpcode()) { in canFoldIntoAddrMode() 2844 const MachineOperand &BaseRegOp = MemI.getOperand(0); in canFoldIntoAddrMode() 2849 if (MemI.getOperand(2).isReg()) { in canFoldIntoAddrMode() 2852 if (MemI.getOperand(3).getImm()) in canFoldIntoAddrMode() 2856 if (MemI.getOperand(4).getImm() == 0) in canFoldIntoAddrMode() 2862 if (MemI.getOperand(1).getReg() == Reg && OffsetScale != 1) in canFoldIntoAddrMode() 2878 AM.BaseReg = MemI.getOperand(1).getReg(); in canFoldIntoAddrMode() [all …]
|
H A D | AArch64InstrInfo.h | 289 getAddrModeFromMemoryOp(const MachineInstr &MemI, 292 bool canFoldIntoAddrMode(const MachineInstr &MemI, Register Reg, 296 MachineInstr *emitLdStWithAddr(MachineInstr &MemI,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVInstrInfo.h | 162 bool canFoldIntoAddrMode(const MachineInstr &MemI, Register Reg, 166 MachineInstr *emitLdStWithAddr(MachineInstr &MemI,
|
H A D | RISCVInstrInfo.cpp | 2549 bool RISCVInstrInfo::canFoldIntoAddrMode(const MachineInstr &MemI, Register Reg, in canFoldIntoAddrMode() 2552 switch (MemI.getOpcode()) { in canFoldIntoAddrMode() 2575 if (MemI.getOperand(0).getReg() == Reg) in canFoldIntoAddrMode() 2582 int64_t OldOffset = MemI.getOperand(2).getImm(); in canFoldIntoAddrMode() 2599 MachineInstr *RISCVInstrInfo::emitLdStWithAddr(MachineInstr &MemI, in emitLdStWithAddr() 2602 const DebugLoc &DL = MemI.getDebugLoc(); in emitLdStWithAddr() 2603 MachineBasicBlock &MBB = *MemI.getParent(); in emitLdStWithAddr() 2608 return BuildMI(MBB, MemI, DL, get(MemI.getOpcode())) in emitLdStWithAddr() 2609 .addReg(MemI in emitLdStWithAddr() 2542 canFoldIntoAddrMode(const MachineInstr & MemI,Register Reg,const MachineInstr & AddrI,ExtAddrMode & AM) const canFoldIntoAddrMode() argument 2592 emitLdStWithAddr(MachineInstr & MemI,const ExtAddrMode & AM) const emitLdStWithAddr() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 891 GetElementPtrInst *GEPI, Instruction *MemI, in canReplaceGEPIdxWithZero() argument 939 KnownBits Known = IC.computeKnownBits(GEPI->getOperand(i), 0, MemI); in canReplaceGEPIdxWithZero() 966 Instruction &MemI) { in replaceGEPIdxWithZero() argument 969 if (canReplaceGEPIdxWithZero(IC, GEPI, &MemI, Idx)) { in replaceGEPIdxWithZero()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetLowering.h | 1443 unsigned MemI = (unsigned) MemVT.getSimpleVT().SimpleTy; in getLoadExtAction() local 1445 MemI < MVT::VALUETYPE_SIZE && "Table isn't big enough!"); in getLoadExtAction() 1447 return (LegalizeAction)((LoadExtActions[ValI][MemI] >> Shift) & 0xf); in getLoadExtAction() 1467 unsigned MemI = (unsigned)MemVT.getSimpleVT().SimpleTy; in getAtomicLoadExtAction() local 1469 MemI < MVT::VALUETYPE_SIZE && "Table isn't big enough!"); in getAtomicLoadExtAction() 1472 (LegalizeAction)((AtomicLoadExtActions[ValI][MemI] >> Shift) & 0xf); in getAtomicLoadExtAction() 1490 unsigned MemI = (unsigned) MemVT.getSimpleVT().SimpleTy; in getTruncStoreAction() local 1491 assert(ValI < MVT::VALUETYPE_SIZE && MemI < MVT::VALUETYPE_SIZE && in getTruncStoreAction() 1493 return TruncStoreActions[ValI][MemI]; in getTruncStoreAction()
|
H A D | TargetInstrInfo.h | 1504 getAddrModeFromMemoryOp(const MachineInstr &MemI, in getAddrModeFromMemoryOp() argument 1515 virtual bool canFoldIntoAddrMode(const MachineInstr &MemI, Register Reg, in canFoldIntoAddrMode() argument 1524 virtual MachineInstr *emitLdStWithAddr(MachineInstr &MemI, in emitLdStWithAddr() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrInfo.h | 387 getAddrModeFromMemoryOp(const MachineInstr &MemI,
|
H A D | X86InstrInfo.cpp | 4489 X86InstrInfo::getAddrModeFromMemoryOp(const MachineInstr &MemI, in getAddrModeFromMemoryOp() argument 4491 const MCInstrDesc &Desc = MemI.getDesc(); in getAddrModeFromMemoryOp() 4498 auto &BaseOp = MemI.getOperand(MemRefBegin + X86::AddrBaseReg); in getAddrModeFromMemoryOp() 4502 const MachineOperand &DispMO = MemI.getOperand(MemRefBegin + X86::AddrDisp); in getAddrModeFromMemoryOp() 4509 AM.ScaledReg = MemI.getOperand(MemRefBegin + X86::AddrIndexReg).getReg(); in getAddrModeFromMemoryOp() 4510 AM.Scale = MemI.getOperand(MemRefBegin + X86::AddrScaleAmt).getImm(); in getAddrModeFromMemoryOp()
|