/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/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 823 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCastInstrCost() local 824 if (Ld->hasOneUse()) in getCastInstrCost() 831 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCastInstrCost() local 832 if (Ld->hasOneUse()) in getCastInstrCost() 977 if (LoadInst *Ld = dyn_cast<LoadInst>(I->getOperand(0))) in getCmpSelInstrCost() local 979 if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() && in getCmpSelInstrCost() 1071 isFoldableLoad(const LoadInst *Ld, const Instruction *&FoldedValue) { in isFoldableLoad() argument 1072 if (!Ld->hasOneUse()) in isFoldableLoad() 1074 FoldedValue = Ld; in isFoldableLoad() 1075 const Instruction *UserI = cast<Instruction>(*Ld->user_begin()); in isFoldableLoad() [all …]
|
H A D | SystemZTargetTransformInfo.h | 116 bool isFoldableLoad(const LoadInst *Ld, const Instruction *&FoldedValue);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopVersioningLICM.cpp | 328 LoadInst *Ld = dyn_cast<LoadInst>(I); in instructionSafeForVersioning() local 329 if (!Ld || !Ld->isSimple()) { in instructionSafeForVersioning() 334 Value *Ptr = Ld->getPointerOperand(); in instructionSafeForVersioning()
|
H A D | LoopUnrollAndJamPass.cpp | 261 if (auto *Ld = dyn_cast<LoadInst>(&I)) { in computeUnrollAndJamCount() local 262 Value *V = Ld->getPointerOperand(); in computeUnrollAndJamCount()
|
H A D | GVNHoist.cpp | 1038 if (auto *Ld = dyn_cast<LoadInst>(Repl)) { in makeGepOperandsAvailable() local 1039 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.cpp | 632 static unsigned computeNumSignBitsFromRangeMetadata(const GAnyLoad *Ld, in computeNumSignBitsFromRangeMetadata() argument 634 const MDNode *Ranges = Ld->getRanges(); in computeNumSignBitsFromRangeMetadata() 640 switch (Ld->getOpcode()) { in computeNumSignBitsFromRangeMetadata() 708 GLoad *Ld = cast<GLoad>(&MI); in computeNumSignBits() local 712 return computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits() 715 GSExtLoad *Ld = cast<GSExtLoad>(&MI); in computeNumSignBits() local 721 unsigned NumBits = computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits() 730 GZExtLoad *Ld = cast<GZExtLoad>(&MI); in computeNumSignBits() local 736 unsigned NumBits = computeNumSignBitsFromRangeMetadata(Ld, TyBits); in computeNumSignBits()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPerfHintAnalysis.cpp | 202 const auto *Ld = dyn_cast<LoadInst>(&I); in isGlobalLoadUsedInBB() local 203 if (!Ld) in isGlobalLoadUsedInBB() 205 if (!isGlobalAddr(Ld->getPointerOperand())) in isGlobalLoadUsedInBB() 208 for (const User *Usr : Ld->users()) { in isGlobalLoadUsedInBB()
|
H A D | SMInstructions.td | 871 LoadSDNode *Ld = cast<LoadSDNode>(N); 872 unsigned Size = Ld->getMemoryVT().getStoreSize(); 873 return Size <= 4 || Ld->getAlign().value() >= Size; 876 auto &Ld = cast<GLoad>(MI); 877 TypeSize Size = Ld.getMMO().getSize().getValue(); 878 return Size <= 4 || Ld.getMMO().getAlign().value() >= Size;
|
H A D | AMDGPUISelDAGToDAG.cpp | 3599 auto Ld = cast<LoadSDNode>(N); in isUniformLoad() local 3601 const MachineMemOperand *MMO = Ld->getMemOperand(); in isUniformLoad() 3606 Ld->getAlign() >= in isUniformLoad() 3609 ((Ld->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS || in isUniformLoad() 3610 Ld->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS_32BIT) || in isUniformLoad() 3612 Ld->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS && in isUniformLoad() 3613 Ld->isSimple() && in isUniformLoad()
|
/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/include/llvm/CodeGen/ |
H A D | SelectionDAGNodes.h | 3177 auto *Ld = dyn_cast<LoadSDNode>(N); 3178 return Ld && Ld->getExtensionType() == ISD::NON_EXTLOAD && 3179 Ld->getAddressingMode() == ISD::UNINDEXED; 3184 auto *Ld = dyn_cast<LoadSDNode>(N); 3185 return Ld && Ld->getExtensionType() == ISD::NON_EXTLOAD; 3190 auto *Ld = dyn_cast<LoadSDNode>(N); 3191 return Ld && Ld->getExtensionType() == ISD::EXTLOAD; 3196 auto *Ld = dyn_cast<LoadSDNode>(N); 3197 return Ld && Ld->getExtensionType() == ISD::SEXTLOAD; 3202 auto *Ld = dyn_cast<LoadSDNode>(N); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 754 LoadSDNode *Ld = cast<LoadSDNode>(Node); in tryIndexedLoad() local 755 ISD::MemIndexedMode AM = Ld->getAddressingMode(); in tryIndexedLoad() 759 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Ld->getOffset()); in tryIndexedLoad() 763 EVT LoadVT = Ld->getMemoryVT(); in tryIndexedLoad() 781 bool IsZExt = (Ld->getExtensionType() == ISD::ZEXTLOAD); in tryIndexedLoad() 802 EVT Ty = Ld->getOffset().getValueType(); in tryIndexedLoad() 803 SDValue Ops[] = {Ld->getBasePtr(), in tryIndexedLoad() 806 Ld->getChain()}; in tryIndexedLoad() 807 SDNode *New = CurDAG->getMachineNode(Opcode, SDLoc(Node), Ld->getValueType(0), in tryIndexedLoad() 808 Ld->getValueType(1), MVT::Other, Ops); in tryIndexedLoad() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrFragmentsSIMD.td | 864 auto *Ld = cast<LoadSDNode>(N); 865 return Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 931 auto *Ld = cast<LoadSDNode>(N); 933 Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 1121 auto *Ld = cast<MaskedLoadSDNode>(N); 1122 return Ld->getAlign() >= Ld->getValueType(0).getStoreSize();
|
H A D | X86InstrFragments.td | 537 LoadSDNode *Ld = cast<LoadSDNode>(N); 538 return Ld->getAlign() >= Ld->getMemoryVT().getStoreSize(); 541 LoadSDNode *Ld = cast<LoadSDNode>(N); 543 Ld->getAlign() >= Ld->getMemoryVT().getStoreSize();
|
H A D | X86ISelLowering.cpp | 2648 auto *Ld = cast<LoadSDNode>(Op.getNode()); in mayFoldLoad() local 2650 Ld->getValueSizeInBits(0) == 128 && Ld->getAlign() < Align(16)) in mayFoldLoad() 2668 auto *Ld = cast<LoadSDNode>(Op.getNode()); in mayFoldLoadIntoBroadcastFromMem() local 2669 return !Ld->isVolatile() || in mayFoldLoadIntoBroadcastFromMem() 2670 Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits(); in mayFoldLoadIntoBroadcastFromMem() 6849 static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) { in findEltLoadSrc() argument 6854 Ld = BaseLd; in findEltLoadSrc() 6863 return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset); in findEltLoadSrc() 6867 if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) { in findEltLoadSrc() 6879 findEltLoadSrc(Src, Ld, ByteOffset)) { in findEltLoadSrc() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | LoopAccessAnalysis.cpp | 2461 auto *Ld = dyn_cast<LoadInst>(&I); in analyzeLoop() local 2462 if (!Ld) { in analyzeLoop() 2463 recordAnalysis("CantVectorizeInstruction", Ld) in analyzeLoop() 2468 if (!Ld->isSimple() && !IsAnnotatedParallel) { in analyzeLoop() 2469 recordAnalysis("NonSimpleLoad", Ld) in analyzeLoop() 2476 Loads.push_back(Ld); in analyzeLoop() 2477 DepChecker->addAccess(Ld); in analyzeLoop() 2479 collectStridedAccess(Ld); in analyzeLoop()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerCombiner.cpp | 752 } else if (auto *Ld = dyn_cast<GLoad>(&MI)) { in optimizeConsecutiveMemOpAddressing() local 753 LoadValsSinceLastStore.push_back(Ld->getDstReg()); in optimizeConsecutiveMemOpAddressing()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopUnrollAndJam.cpp | 629 if (auto *Ld = dyn_cast<LoadInst>(&I)) { in getLoadsAndStores() local 630 if (!Ld->isSimple()) in getLoadsAndStores()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelDAGToDAG.cpp | 1689 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectLoad() local 1690 SDValue SuperReg = SDValue(Ld, 0); in SelectLoad() 1695 ReplaceUses(SDValue(N, NumVecs), SDValue(Ld, 1)); in SelectLoad() 1701 CurDAG->setNodeMemRefs(cast<MachineSDNode>(Ld), {MemOp}); in SelectLoad() 1720 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectPostLoad() local 1723 ReplaceUses(SDValue(N, NumVecs), SDValue(Ld, 0)); in SelectPostLoad() 1726 SDValue SuperReg = SDValue(Ld, 1); in SelectPostLoad() 1735 ReplaceUses(SDValue(N, NumVecs + 1), SDValue(Ld, 2)); in SelectPostLoad() 2307 SDNode *Ld = CurDAG->getMachineNode(Opc, dl, ResTys, Ops); in SelectLoadLane() local 2308 SDValue SuperReg = SDValue(Ld, 0); in SelectLoadLane() [all …]
|
/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/Sparc/ |
H A D | SparcISelLowering.cpp | 3646 LoadSDNode *Ld = cast<LoadSDNode>(N); in ReplaceNodeResults() local 3649 if (Ld->getValueType(0) != MVT::i64 || Ld->getMemoryVT() != MVT::i64) in ReplaceNodeResults() 3654 Ld->getExtensionType(), dl, MVT::v2i32, Ld->getChain(), in ReplaceNodeResults() 3655 Ld->getBasePtr(), Ld->getPointerInfo(), MVT::v2i32, in ReplaceNodeResults() 3656 Ld->getOriginalAlign(), Ld->getMemOperand()->getFlags(), in ReplaceNodeResults() 3657 Ld->getAAInfo()); in ReplaceNodeResults()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | DAGCombiner.cpp | 13352 MaskedLoadSDNode *Ld = dyn_cast<MaskedLoadSDNode>(N0); in tryToFoldExtOfMaskedLoad() local 13353 if (!Ld || Ld->getExtensionType() != ISD::NON_EXTLOAD) in tryToFoldExtOfMaskedLoad() 13357 !TLI.isLoadExtLegalOrCustom(ExtLoadType, VT, Ld->getValueType(0))) in tryToFoldExtOfMaskedLoad() 13363 SDLoc dl(Ld); in tryToFoldExtOfMaskedLoad() 13364 SDValue PassThru = DAG.getNode(ExtOpc, dl, VT, Ld->getPassThru()); in tryToFoldExtOfMaskedLoad() 13366 VT, dl, Ld->getChain(), Ld->getBasePtr(), Ld->getOffset(), Ld->getMask(), in tryToFoldExtOfMaskedLoad() 13367 PassThru, Ld->getMemoryVT(), Ld->getMemOperand(), Ld->getAddressingMode(), in tryToFoldExtOfMaskedLoad() 13368 ExtLoadType, Ld->isExpandingLoad()); in tryToFoldExtOfMaskedLoad() 13369 DAG.ReplaceAllUsesOfValueWith(SDValue(Ld, 1), SDValue(NewLoad.getNode(), 1)); in tryToFoldExtOfMaskedLoad() 14804 if (MaskedLoadSDNode *Ld = dyn_cast<MaskedLoadSDNode>(N0)) { in visitSIGN_EXTEND_INREG() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ThreadSafetyCommon.cpp | 882 til::SExpr *Ld = new (Arena) til::Load(Lp); in enterCFG() local 883 til::SExpr *V = addStatement(Ld, nullptr, Pm); in enterCFG()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonCommonGEP.cpp | 1015 if (LoadInst *Ld = dyn_cast<LoadInst>(R)) { in separateConstantChains() local 1017 if (&Ld->getOperandUse(PtrX) == U) in separateConstantChains()
|