| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULowerKernelAttributes.cpp | 86 static void annotateGridSizeLoadWithRangeMD(LoadInst *Load, in annotateGridSizeLoadWithRangeMD() argument 91 if (!Load->getType()->isIntegerTy(32)) in annotateGridSizeLoadWithRangeMD() 95 MDBuilder MDB(Load->getContext()); in annotateGridSizeLoadWithRangeMD() 97 Load->setMetadata(LLVMContext::MD_range, Range); in annotateGridSizeLoadWithRangeMD() 131 auto *Load = dyn_cast<LoadInst>(U); // Load from ImplicitArgPtr/DispatchPtr? in processUse() local 133 if (!Load && !BCI) { in processUse() 136 Load = dyn_cast<LoadInst>(*U->user_begin()); // Load from GEP? in processUse() 143 Load = dyn_cast<LoadInst>(*BCI->user_begin()); // Load from BCI? in processUse() 146 if (!Load || !Load->isSimple()) in processUse() 149 unsigned LoadSize = DL.getTypeStoreSize(Load->getType()); in processUse() [all …]
|
| H A D | AMDGPULowerKernelArguments.cpp | 172 LoadInst *Load = in lowerKernelArguments() local 174 Load->setMetadata(LLVMContext::MD_invariant_load, MDNode::get(Ctx, {})); in lowerKernelArguments() 179 Load->setMetadata(LLVMContext::MD_noundef, MDNode::get(Ctx, {})); in lowerKernelArguments() 184 Load->setMetadata(LLVMContext::MD_range, in lowerKernelArguments() 190 Load->setMetadata(LLVMContext::MD_nonnull, MDNode::get(Ctx, {})); in lowerKernelArguments() 194 Load->setMetadata( in lowerKernelArguments() 203 Load->setMetadata( in lowerKernelArguments() 211 Load->setMetadata( in lowerKernelArguments() 222 Load : Builder.CreateLShr(Load, OffsetDiff * 8); in lowerKernelArguments() 230 Value *Shuf = Builder.CreateShuffleVector(Load, ArrayRef<int>{0, 1, 2}, in lowerKernelArguments() [all …]
|
| H A D | AMDGPUPreloadKernelArguments.cpp | 199 auto *Load = dyn_cast<LoadInst>(U); // Load from ImplicitArgPtr? in tryAllocHiddenArgPreloadSGPRs() local 200 if (!Load) { in tryAllocHiddenArgPreloadSGPRs() 204 Load = dyn_cast<LoadInst>(*U->user_begin()); // Load from GEP? in tryAllocHiddenArgPreloadSGPRs() 207 if (!Load || !Load->isSimple()) in tryAllocHiddenArgPreloadSGPRs() 212 Type *LoadTy = Load->getType(); in tryAllocHiddenArgPreloadSGPRs() 217 ImplicitArgLoads.push_back(std::make_pair(Load, Offset)); in tryAllocHiddenArgPreloadSGPRs() 232 ImplicitArgLoads, [&](const std::pair<LoadInst *, unsigned> &Load) { in tryAllocHiddenArgPreloadSGPRs() argument 233 unsigned LoadSize = DL.getTypeStoreSize(Load.first->getType()); in tryAllocHiddenArgPreloadSGPRs() 234 unsigned LoadOffset = Load.second; in tryAllocHiddenArgPreloadSGPRs()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopLoadElimination.cpp | 83 LoadInst *Load; member 86 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate() 87 : Load(Load), Store(Store) {} in StoreToLoadForwardingCandidate() 94 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() 96 Type *LoadType = getLoadStoreType(Load); in isDependenceDistanceOfOne() 97 auto &DL = Load->getDataLayout(); in isDependenceDistanceOfOne() 135 Value *getLoadPtr() const { return Load->getPointerOperand(); } in getLoadPtr() 141 OS.indent(2) << *Cand.Load << "\n"; in operator <<() 161 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional() argument 162 return Load->getParent() != L->getHeader(); in isLoadConditional() [all …]
|
| H A D | GVN.cpp | 234 static AvailableValue getLoad(LoadInst *Load, unsigned Offset = 0) { in getLoad() 236 Res.Val = Load; in getLoad() 288 Value *MaterializeAdjustedValue(LoadInst *Load, Instruction *InsertPt) const; 323 Value *MaterializeAdjustedValue(LoadInst *Load) const { in MaterializeAdjustedValue() 324 return AV.MaterializeAdjustedValue(Load, BB->getTerminator()); in MaterializeAdjustedValue() 723 case Instruction::Load: in lookupOrAdd() 1105 ConstructSSAForLoadSet(LoadInst *Load, in ConstructSSAForLoadSet() argument 1112 Load->getParent())) { in ConstructSSAForLoadSet() 1115 return ValuesPerBlock[0].MaterializeAdjustedValue(Load); in ConstructSSAForLoadSet() 1121 SSAUpdate.Initialize(Load->getType(), Load->getName()); in ConstructSSAForLoadSet() [all …]
|
| H A D | ScalarizeMaskedMemIntrin.cpp | 188 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() local 189 VResult = Builder.CreateInsertElement(VResult, Load, Idx); in scalarizeMaskedLoad() 209 LoadInst *Load = Builder.CreateAlignedLoad(VecType, Ptr, AlignVal, in scalarizeMaskedLoad() local 211 Load->copyMetadata(*CI); in scalarizeMaskedLoad() 216 Phi->addIncoming(Load, CondBlock); in scalarizeMaskedLoad() 269 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() local 270 Value *NewVResult = Builder.CreateInsertElement(VResult, Load, Idx); in scalarizeMaskedLoad() 500 LoadInst *Load = in scalarizeMaskedGather() local 503 Builder.CreateInsertElement(VResult, Load, Idx, "Res" + Twine(Idx)); in scalarizeMaskedGather() 555 LoadInst *Load = in scalarizeMaskedGather() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | MachOObjectFile.cpp | 287 const MachOObjectFile &Obj, const MachOObjectFile::LoadCommandInfo &Load, in parseSegmentLoadCommand() argument 292 if (Load.C.cmdsize < SegmentLoadSize) in parseSegmentLoadCommand() 295 if (auto SegOrErr = getStructOrErr<Segment>(Obj, Load.Ptr)) { in parseSegmentLoadCommand() 300 S.nsects * SectionSize > Load.C.cmdsize - SegmentLoadSize) in parseSegmentLoadCommand() 305 const char *Sec = getSectionPtr(Obj, Load, J); in parseSegmentLoadCommand() 411 const MachOObjectFile::LoadCommandInfo &Load, in checkSymtabCommand() argument 415 if (Load.C.cmdsize < sizeof(MachO::symtab_command)) in checkSymtabCommand() 420 auto SymtabOrErr = getStructOrErr<MachO::symtab_command>(Obj, Load.Ptr); in checkSymtabCommand() 464 *SymtabLoadCmd = Load.Ptr; in checkSymtabCommand() 469 const MachOObjectFile::LoadCommandInfo &Load, in checkDysymtabCommand() argument [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan.cpp | 498 CheckAddressSized<ErrorAction::Abort, AccessType::Load>(p, sz); in __hwasan_loadN() 501 CheckAddress<ErrorAction::Abort, AccessType::Load, 0>(p); in __hwasan_load1() 504 CheckAddress<ErrorAction::Abort, AccessType::Load, 1>(p); in __hwasan_load2() 507 CheckAddress<ErrorAction::Abort, AccessType::Load, 2>(p); in __hwasan_load4() 510 CheckAddress<ErrorAction::Abort, AccessType::Load, 3>(p); in __hwasan_load8() 513 CheckAddress<ErrorAction::Abort, AccessType::Load, 4>(p); in __hwasan_load16() 517 CheckAddressSized<ErrorAction::Recover, AccessType::Load>(p, sz); in __hwasan_loadN_noabort() 520 CheckAddress<ErrorAction::Recover, AccessType::Load, 0>(p); in __hwasan_load1_noabort() 523 CheckAddress<ErrorAction::Recover, AccessType::Load, 1>(p); in __hwasan_load2_noabort() 526 CheckAddress<ErrorAction::Recover, AccessType::Load, 2>(p); in __hwasan_load4_noabort() [all …]
|
| H A D | hwasan_memintrinsics.cpp | 33 CheckAddressSized<ErrorAction::Recover, AccessType::Load>( in __hwasan_memcpy() 41 CheckAddressSized<ErrorAction::Recover, AccessType::Load>( in __hwasan_memmove() 60 CheckAddressSized<ErrorAction::Recover, AccessType::Load>( in __hwasan_memcpy_match_all() 71 CheckAddressSized<ErrorAction::Recover, AccessType::Load>( in __hwasan_memmove_match_all()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedAccessPass.cpp | 104 bool lowerInterleavedLoad(Instruction *Load, 267 Instruction *Load, SmallSetVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedLoad() argument 268 if (isa<ScalableVectorType>(Load->getType())) in lowerInterleavedLoad() 271 if (auto *LI = dyn_cast<LoadInst>(Load)) { in lowerInterleavedLoad() 274 } else if (auto *VPLoad = dyn_cast<VPIntrinsic>(Load)) { in lowerInterleavedLoad() 294 for (auto *User : Load->users()) { in lowerInterleavedLoad() 323 cast<FixedVectorType>(Load->getType())->getNumElements(); in lowerInterleavedLoad() 356 if (cast<Instruction>(Shuffle->getOperand(0))->getOperand(0) == Load) in lowerInterleavedLoad() 358 if (cast<Instruction>(Shuffle->getOperand(0))->getOperand(1) == Load) in lowerInterleavedLoad() 368 replaceBinOpShuffles(BinOpShuffles.getArrayRef(), Shuffles, Load); in lowerInterleavedLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | RelLookupTableConverter.cpp | 42 LoadInst *Load = dyn_cast<LoadInst>(GEP->use_begin()->getUser()); in shouldConvertToRelLookupTable() local 43 if (!Load || !Load->hasOneUse() || in shouldConvertToRelLookupTable() 44 Load->getType() != GEP->getResultElementType()) in shouldConvertToRelLookupTable() 154 LoadInst *Load = cast<LoadInst>(GEP->use_begin()->getUser()); in convertToRelLookupTable() local 174 Builder.SetInsertPoint(Load); in convertToRelLookupTable() 184 Load->replaceAllUsesWith(Result); in convertToRelLookupTable() 186 Load->eraseFromParent(); in convertToRelLookupTable()
|
| /freebsd/share/examples/bootforth/ |
| H A D | loader.rc | 6 \ Load configuration file words 12 \ Load the screen manipulation words 17 \ Load frame support 21 \ Load our little menu
|
| H A D | boot.4th | 4 \ Load the screen manipulation words 11 \ Load frame support 15 \ Load our little menu
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCContract.cpp | 206 static StoreInst *findSafeStoreForStoreStrongContraction(LoadInst *Load, in findSafeStoreForStoreStrongContraction() argument 214 MemoryLocation Loc = MemoryLocation::get(Load); in findSafeStoreForStoreStrongContraction() 218 for (auto I = std::next(BasicBlock::iterator(Load)), in findSafeStoreForStoreStrongContraction() 219 E = Load->getParent()->end(); in findSafeStoreForStoreStrongContraction() 245 if (!CanUse(Inst, Load, PA, Class)) { in findSafeStoreForStoreStrongContraction() 351 auto *Load = dyn_cast<LoadInst>(GetArgRCIdentityRoot(Release)); in tryToContractReleaseIntoStoreStrong() local 352 if (!Load || !Load->isSimple()) in tryToContractReleaseIntoStoreStrong() 357 if (Load->getParent() != BB) in tryToContractReleaseIntoStoreStrong() 363 findSafeStoreForStoreStrongContraction(Load, Release, PA, AA); in tryToContractReleaseIntoStoreStrong() 389 << " Load: " << *Load << "\n"); in tryToContractReleaseIntoStoreStrong() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILLegalizePass.cpp | 92 if (auto *Load = dyn_cast<LoadInst>(&I); in fixI8UseChain() local 93 Load && I.getType()->isIntegerTy(8)) { in fixI8UseChain() 105 ReplacedValues[Load] = NewLoad; in fixI8UseChain() 106 ToRemove.push_back(Load); in fixI8UseChain() 110 if (auto *Load = dyn_cast<LoadInst>(&I); in fixI8UseChain() local 111 Load && isa<ConstantExpr>(Load->getPointerOperand())) { in fixI8UseChain() 112 auto *CE = dyn_cast<ConstantExpr>(Load->getPointerOperand()); in fixI8UseChain() 119 Type *ElementType = Load->getType(); in fixI8UseChain() 122 uint32_t ElemSize = Load->getDataLayout().getTypeAllocSize(ElementType); in fixI8UseChain() 143 ReplacedValues[Load] = NewLoad; in fixI8UseChain() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 422 VPIntrinsic *Load, Value *Mask, in lowerInterleavedVPLoad() argument 426 assert(Load->getIntrinsicID() == Intrinsic::vp_load && in lowerInterleavedVPLoad() 433 auto &DL = Load->getModule()->getDataLayout(); in lowerInterleavedVPLoad() 434 Align Alignment = Load->getParamAlign(0).value_or( in lowerInterleavedVPLoad() 438 Load->getArgOperand(0)->getType()->getPointerAddressSpace(), DL)) in lowerInterleavedVPLoad() 441 IRBuilder<> Builder(Load); in lowerInterleavedVPLoad() 443 Value *WideEVL = Load->getVectorLengthParam(); in lowerInterleavedVPLoad() 446 if (!isMultipleOfN(WideEVL, Load->getDataLayout(), Factor)) in lowerInterleavedVPLoad() 449 auto *PtrTy = Load->getArgOperand(0)->getType(); in lowerInterleavedVPLoad() 450 auto *XLenTy = Type::getIntNTy(Load->getContext(), Subtarget.getXLen()); in lowerInterleavedVPLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FatLTOCleanup.cpp | 82 Instruction *Load; in cleanUpTypeCheckedLoad() local 84 Load = in cleanUpTypeCheckedLoad() 89 Load = IRB.CreateLoad(PtrTy, PtrAdd, "vfunc"); in cleanUpTypeCheckedLoad() 94 Replacement = IRB.CreateInsertValue(Replacement, Load, {0}); in cleanUpTypeCheckedLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SVEIntrinsicOpts.cpp | 372 auto *Load = dyn_cast<LoadInst>(IntrI->getOperand(1)); in optimizePredicateLoad() local 373 if (!Load || !Load->isSimple()) in optimizePredicateLoad() 377 if (Load->getType() != FixedPredType) in optimizePredicateLoad() 381 Builder.SetInsertPoint(Load); in optimizePredicateLoad() 383 auto *LoadPred = Builder.CreateLoad(PredType, Load->getPointerOperand()); in optimizePredicateLoad() 389 if (Load->use_empty()) in optimizePredicateLoad() 390 Load->eraseFromParent(); in optimizePredicateLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFPreserveStaticOffset.cpp | 223 LoadInst *Load) { in makeGEPAndLoad() argument 225 fillCommonArgs(M->getContext(), Args, GEP, Load); in makeGEPAndLoad() 227 {Load->getType()}, Args); in makeGEPAndLoad() 229 Call->applyMergedLocation(mergeDebugLocs(GEP.Members), Load->getDebugLoc()); in makeGEPAndLoad() 231 if (Load->isUnordered()) { in makeGEPAndLoad() 238 Call->setAAMetadata(Load->getAAMetadata()); in makeGEPAndLoad() 304 auto *Load = new LoadInst(ReturnType, GEP, "", in reconstructLoad() local 307 reconstructCommon(Call, GEP, Load, 0); in reconstructLoad() 308 return std::pair{GEP, Load}; in reconstructLoad() 418 if (auto *Load = dyn_cast<LoadInst>(LoadOrStoreTemplate)) { in tryToReplaceWithGEPBuiltin() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueLatticeUtils.cpp | 37 if (auto *Load = dyn_cast<LoadInst>(U)) in canTrackGlobalVariableInterprocedurally() local 38 return !Load->isVolatile() && Load->getType() == GV->getValueType(); in canTrackGlobalVariableInterprocedurally()
|
| H A D | Loads.cpp | 537 Value *llvm::FindAvailableLoadedValue(LoadInst *Load, BasicBlock *ScanBB, in FindAvailableLoadedValue() argument 543 if (!Load->isUnordered()) in FindAvailableLoadedValue() 546 MemoryLocation Loc = MemoryLocation::get(Load); in FindAvailableLoadedValue() 547 return findAvailablePtrLoadStore(Loc, Load->getType(), Load->isAtomic(), in FindAvailableLoadedValue() 750 Value *llvm::FindAvailableLoadedValue(LoadInst *Load, BatchAAResults &AA, in FindAvailableLoadedValue() argument 753 const DataLayout &DL = Load->getDataLayout(); in FindAvailableLoadedValue() 754 Value *StrippedPtr = Load->getPointerOperand()->stripPointerCasts(); in FindAvailableLoadedValue() 755 BasicBlock *ScanBB = Load->getParent(); in FindAvailableLoadedValue() 756 Type *AccessTy = Load->getType(); in FindAvailableLoadedValue() 757 bool AtLeastAtomic = Load->isAtomic(); in FindAvailableLoadedValue() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | MachODumper.cpp | 814 for (const auto &Load : Obj->load_commands()) { in printMachODataInCode() 815 if (Load.C.cmd == MachO::LC_DATA_IN_CODE) { in printMachODataInCode() 816 MachO::linkedit_data_command LLC = Obj->getLinkeditDataLoadCommand(Load); in printMachODataInCode() 836 for (const auto &Load : Obj->load_commands()) { in printMachOVersionMin() 838 switch (Load.C.cmd) { in printMachOVersionMin() 860 if (Load.C.cmd == MachO::LC_BUILD_VERSION) { in printMachOVersionMin() 861 MachO::build_version_command BVC = Obj->getBuildVersionLoadCommand(Load); in printMachOVersionMin() 874 MachO::version_min_command VMC = Obj->getVersionMinLoadCommand(Load); in printMachOVersionMin() 899 for (const auto &Load : Obj->load_commands()) { in printMachODysymtab() 900 if (Load in printMachODysymtab() 812 for (const auto &Load : Obj->load_commands()) { printMachODataInCode() local 834 for (const auto &Load : Obj->load_commands()) { printMachOVersionMin() local 897 for (const auto &Load : Obj->load_commands()) { printMachODysymtab() local 924 for (const auto &Load : Obj->load_commands()) { printMachOSegment() local 945 for (const auto &Load : Obj->load_commands()) { printMachOIndirectSymbols() local 961 for (const auto &Load : Obj->load_commands()) { printMachOLinkerOptions() local [all...] |
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 426 Instruction *Load = tryCreateIncrementingGatScat(I, Ptr, Builder); in lowerGather() local 427 if (!Load) in lowerGather() 428 Load = tryCreateMaskedGatherOffset(I, Ptr, Root, Builder); in lowerGather() 429 if (!Load) in lowerGather() 430 Load = tryCreateMaskedGatherBase(I, Ptr, Builder); in lowerGather() 431 if (!Load) in lowerGather() 437 Load = SelectInst::Create(Mask, Load, PassThru); in lowerGather() 438 Builder.Insert(Load); in lowerGather() 441 Root->replaceAllUsesWith(Load); in lowerGather() 449 << *Load << "\n"); in lowerGather() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelDAGToDAG.cpp | 332 bool canUseBlockOperation(StoreSDNode *Store, LoadSDNode *Load) const; 1032 else if (auto *Load = dyn_cast<LoadSDNode>(RISBG.Input)) { in tryRISBGZero() local 1033 if (Load->getMemoryVT() == MVT::i32 && in tryRISBGZero() 1034 (Load->getExtensionType() == ISD::EXTLOAD || in tryRISBGZero() 1035 Load->getExtensionType() == ISD::ZEXTLOAD) && in tryRISBGZero() 1126 if (auto *Load = dyn_cast<LoadSDNode>(Op0.getNode())) in tryRxSBG() local 1127 if (Load->getMemoryVT() == MVT::i8) in tryRxSBG() 1257 auto *Load = dyn_cast<LoadSDNode>(N->getOperand(1)); in tryGather() local 1258 if (!Load || !Load->hasNUsesOfValue(1, 0)) in tryGather() 1260 if (Load->getMemoryVT().getSizeInBits() != in tryGather() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | P9InstrResources.td | 29 // - Four Load/Store Queues. P9_LS_* 710 // 6 Cycle Load uses a single slice. 716 // 5 Cycle Load uses a single slice. 735 // 4 Cycle Load uses a single slice. 773 // Cracked Load Instructions. 774 // Load instructions that can be done in parallel. 786 // Cracked Load Instruction. 787 // Requires Load and ALU pieces totaling 6 cycles. The Load and ALU 796 // Requires Load and ALU pieces totaling 6 cycles. The Load and ALU 814 // Cracked Load instruction. [all …]
|