| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMParallelDSP.cpp | 329 if (auto *Ld = dyn_cast<LoadInst>(SExt->getOperand(0))) { in IsNarrowSequence() local 331 return LoadPairs.count(Ld) || OffsetLoads.count(Ld); in IsNarrowSequence() 351 auto *Ld = dyn_cast<LoadInst>(&I); in RecordMemoryOps() local 352 if (!Ld || !Ld->isSimple() || in RecordMemoryOps() 353 !Ld->hasOneUse() || !isa<SExtInst>(Ld->user_back())) in RecordMemoryOps() 355 Loads.push_back(Ld); in RecordMemoryOps()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopVersioningLICM.cpp | 325 LoadInst *Ld = dyn_cast<LoadInst>(I); in instructionSafeForVersioning() local 326 if (!Ld || !Ld->isSimple()) { in instructionSafeForVersioning() 331 Value *Ptr = Ld->getPointerOperand(); in instructionSafeForVersioning()
|
| H A D | LoopUnrollAndJamPass.cpp | 260 if (auto *Ld = dyn_cast<LoadInst>(&I)) { in computeUnrollAndJamCount() local 261 Value *V = Ld->getPointerOperand(); in computeUnrollAndJamCount()
|
| H A D | GVNHoist.cpp | 1036 if (auto *Ld = dyn_cast<LoadInst>(Repl)) { in makeGepOperandsAvailable() local 1037 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 950 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCastInstrCost() local 951 if (Ld->hasOneUse()) in getCastInstrCost() 958 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCastInstrCost() local 959 if (Ld->hasOneUse()) in getCastInstrCost() 1104 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCmpSelInstrCost() local 1106 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost() 1215 bool SystemZTTIImpl::isFoldableLoad(const LoadInst *Ld, in isFoldableLoad() argument 1217 if (!Ld->hasOneUse()) in isFoldableLoad() 1219 FoldedValue = Ld; in isFoldableLoad() 1220 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() [all …]
|
| H A D | SystemZTargetTransformInfo.h | 125 bool isFoldableLoad(const LoadInst *Ld,
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | GCRootLowering.cpp | 228 Value *Ld = new LoadInst(CI->getType(), CI->getArgOperand(1), "", in DoLowering() local 230 Ld->takeName(CI); in DoLowering() 231 CI->replaceAllUsesWith(Ld); in DoLowering()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 199 const auto *Ld = dyn_cast<LoadInst>(&I); in isGlobalLoadUsedInBB() local 200 if (!Ld) in isGlobalLoadUsedInBB() 202 if (!isGlobalAddr(Ld->getPointerOperand())) in isGlobalLoadUsedInBB() 205 for (const User *Usr : Ld->users()) { in isGlobalLoadUsedInBB()
|
| H A D | SMInstructions.td | 875 LoadSDNode *Ld = cast<LoadSDNode>(N); 876 unsigned Size = Ld->getMemoryVT().getStoreSize(); 877 return Size <= 4 || Ld->getAlign().value() >= Size; 880 auto &Ld = cast<GLoad>(MI); 881 TypeSize Size = Ld.getMMO().getSize().getValue(); 882 return Size <= 4 || Ld.getMMO().getAlign().value() >= Size;
|
| H A D | AMDGPUISelDAGToDAG.cpp | 3963 const auto *Ld = cast<LoadSDNode>(N); in isUniformLoad() local 3965 const MachineMemOperand *MMO = Ld->getMemOperand(); in isUniformLoad() 3970 Ld->getAlign() >= in isUniformLoad() 3973 ((Ld->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS || in isUniformLoad() 3974 Ld->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS_32BIT) || in isUniformLoad() 3976 Ld->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS && in isUniformLoad() 3977 Ld->isSimple() && in isUniformLoad()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 3287 auto *Ld = dyn_cast<LoadSDNode>(N); 3288 return Ld && Ld->getExtensionType() == ISD::NON_EXTLOAD && 3289 Ld->getAddressingMode() == ISD::UNINDEXED; 3294 auto *Ld = dyn_cast<LoadSDNode>(N); 3295 return Ld && Ld->getExtensionType() == ISD::NON_EXTLOAD; 3300 auto *Ld = dyn_cast<LoadSDNode>(N); 3301 return Ld && Ld->getExtensionType() == ISD::EXTLOAD; 3306 auto *Ld = dyn_cast<LoadSDNode>(N); 3307 return Ld && Ld->getExtensionType() == ISD::SEXTLOAD; 3312 auto *Ld = dyn_cast<LoadSDNode>(N); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchInstrInfo.cpp | 481 auto Ld = std::next(SecondOp); in isSafeToMove() local 482 if (Ld == MIE || Ld->getOpcode() != LdOp) in isSafeToMove() 485 auto MO2 = LoongArchII::getDirectFlags(Ld->getOperand(2)); in isSafeToMove()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelValueTracking.cpp | 1760 static unsigned computeNumSignBitsFromRangeMetadata(const GAnyLoad *Ld, in computeNumSignBitsFromRangeMetadata() argument 1762 const MDNode *Ranges = Ld->getRanges(); in computeNumSignBitsFromRangeMetadata() 1768 switch (Ld->getOpcode()) { in computeNumSignBitsFromRangeMetadata() 1837 GLoad *Ld = cast<GLoad>(&MI); in computeNumSignBits() local 1841 return computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits() 1844 GSExtLoad *Ld = cast<GSExtLoad>(&MI); in computeNumSignBits() local 1850 unsigned NumBits = computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits() 1859 GZExtLoad *Ld = cast<GZExtLoad>(&MI); in computeNumSignBits() local 1865 unsigned NumBits = computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 828 LoadSDNode *Ld = cast<LoadSDNode>(Node); in tryIndexedLoad() local 829 ISD::MemIndexedMode AM = Ld->getAddressingMode(); in tryIndexedLoad() 833 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Ld->getOffset()); in tryIndexedLoad() 837 EVT LoadVT = Ld->getMemoryVT(); in tryIndexedLoad() 855 bool IsZExt = (Ld->getExtensionType() == ISD::ZEXTLOAD); in tryIndexedLoad() 876 EVT Ty = Ld->getOffset().getValueType(); in tryIndexedLoad() 878 Ld->getBasePtr(), in tryIndexedLoad() 880 CurDAG->getTargetConstant(Shift, SDLoc(Node), Ty), Ld->getChain()}; in tryIndexedLoad() 881 SDNode *New = CurDAG->getMachineNode(Opcode, SDLoc(Node), Ld->getValueType(0), in tryIndexedLoad() 882 Ld->getValueType(1), MVT::Other, Ops); in tryIndexedLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrFragments.td | 563 LoadSDNode *Ld = cast<LoadSDNode>(N); 564 return Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 567 LoadSDNode *Ld = cast<LoadSDNode>(N); 569 Ld->getAlign() >= Ld->getMemoryVT().getStoreSize();
|
| H A D | X86InstrFragmentsSIMD.td | 1020 auto *Ld = cast<LoadSDNode>(N); 1021 return Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 1092 auto *Ld = cast<LoadSDNode>(N); 1094 Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 1286 auto *Ld = cast<MaskedLoadSDNode>(N); 1287 return Ld->getAlign() >= Ld->getValueType(0).getStoreSize();
|
| H A D | X86ISelLowering.cpp | 2784 auto *Ld = cast<LoadSDNode>(Op.getNode()); in mayFoldLoad() local 2786 Ld->getValueSizeInBits(0) == 128 && Ld->getAlign() < Align(16)) in mayFoldLoad() 2804 auto *Ld = cast<LoadSDNode>(Op.getNode()); in mayFoldLoadIntoBroadcastFromMem() local 2805 return !Ld->isVolatile() || in mayFoldLoadIntoBroadcastFromMem() 2806 Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits(); in mayFoldLoadIntoBroadcastFromMem() 7200 static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) { in findEltLoadSrc() argument 7205 Ld = BaseLd; in findEltLoadSrc() 7214 return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset); in findEltLoadSrc() 7218 if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) { in findEltLoadSrc() 7230 findEltLoadSrc(Src, Ld, ByteOffset)) { in findEltLoadSrc() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LoopAccessAnalysis.cpp | 2530 auto *Ld = dyn_cast<LoadInst>(&I); in analyzeLoop() local 2531 if (!Ld) { in analyzeLoop() 2532 recordAnalysis("CantVectorizeInstruction", Ld) in analyzeLoop() 2537 if (!Ld->isSimple() && !IsAnnotatedParallel) { in analyzeLoop() 2538 recordAnalysis("NonSimpleLoad", Ld) in analyzeLoop() 2545 Loads.push_back(Ld); in analyzeLoop() 2546 DepChecker->addAccess(Ld); in analyzeLoop() 2548 collectStridedAccess(Ld); in analyzeLoop()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUnrollAndJam.cpp | 632 if (auto *Ld = dyn_cast<LoadInst>(&I)) { in getLoadsAndStores() local 633 if (!Ld->isSimple()) in getLoadsAndStores()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Builtins.def | 48 // L -> long (e.g. Li for 'long int', Ld for 'long double')
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelDAGToDAG.cpp | 1740 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectLoad() local 1741 SDValue SuperReg = SDValue(Ld, 0); in SelectLoad() 1746 ReplaceUses(SDValue(N, NumVecs), SDValue(Ld, 1)); in SelectLoad() 1752 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ld), {MemOp}); in SelectLoad() 1771 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectPostLoad() local 1774 ReplaceUses(SDValue(N, NumVecs), SDValue(Ld, 0)); in SelectPostLoad() 1777 SDValue SuperReg = SDValue(Ld, 1); in SelectPostLoad() 1786 ReplaceUses(SDValue(N, NumVecs + 1), SDValue(Ld, 2)); in SelectPostLoad() 2407 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectLoadLane() local 2408 SDValue SuperReg = SDValue(Ld, 0); in SelectLoadLane() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcISelLowering.cpp | 3500 LoadSDNode *Ld = cast<LoadSDNode>(N); in ReplaceNodeResults() local 3503 if (Ld->getValueType(0) != MVT::i64 || Ld->getMemoryVT() != MVT::i64) in ReplaceNodeResults() 3508 Ld->getExtensionType(), dl, MVT::v2i32, Ld->getChain(), in ReplaceNodeResults() 3509 Ld->getBasePtr(), Ld->getPointerInfo(), MVT::v2i32, Ld->getBaseAlign(), in ReplaceNodeResults() 3510 Ld->getMemOperand()->getFlags(), Ld->getAAInfo()); in ReplaceNodeResults()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 808 bool hasCallInLdStChain(StoreSDNode *St, LoadSDNode *Ld); 14212 MaskedLoadSDNode *Ld = dyn_cast<MaskedLoadSDNode>(N0); in tryToFoldExtOfMaskedLoad() local 14213 if (!Ld || Ld->getExtensionType() != ISD::NON_EXTLOAD) in tryToFoldExtOfMaskedLoad() 14217 !TLI.isLoadExtLegalOrCustom(ExtLoadType, VT, Ld->getValueType(0))) in tryToFoldExtOfMaskedLoad() 14223 SDLoc dl(Ld); in tryToFoldExtOfMaskedLoad() 14224 SDValue PassThru = DAG.getNode(ExtOpc, dl, VT, Ld->getPassThru()); in tryToFoldExtOfMaskedLoad() 14226 VT, dl, Ld->getChain(), Ld->getBasePtr(), Ld->getOffset(), Ld->getMask(), in tryToFoldExtOfMaskedLoad() 14227 PassThru, Ld->getMemoryVT(), Ld->getMemOperand(), Ld->getAddressingMode(), in tryToFoldExtOfMaskedLoad() 14228 ExtLoadType, Ld->isExpandingLoad()); in tryToFoldExtOfMaskedLoad() 14229 DAG.ReplaceAllUsesOfValueWith(SDValue(Ld, 1), SDValue(NewLoad.getNode(), 1)); in tryToFoldExtOfMaskedLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 868 } else if (auto *Ld = dyn_cast<GLoad>(&MI)) { in optimizeConsecutiveMemOpAddressing() local 869 LoadValsSinceLastStore.push_back(Ld->getDstReg()); in optimizeConsecutiveMemOpAddressing()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ThreadSafetyCommon.cpp | 899 til::SExpr *Ld = new (Arena) til::Load(Lp); in enterCFG() local 900 til::SExpr *V = addStatement(Ld, nullptr, Pm); in enterCFG()
|