/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | DXILResource.cpp | 69 ResourceInfo RI(ResourceClass::SRV, Kind, Symbol, Name, Binding, UniqueID); in SRV() local 70 assert(RI.isTyped() && !(RI.isStruct() || RI.isMultiSample()) && in SRV() 72 RI.Typed.ElementTy = ElementTy; in SRV() 73 RI.Typed.ElementCount = ElementCount; in SRV() 74 return RI; in SRV() 80 ResourceInfo RI(ResourceClass::SRV, ResourceKind::RawBuffer, Symbol, Name, in RawBuffer() local 82 return RI; in RawBuffer() 89 ResourceInfo RI(ResourceClass::SRV, ResourceKind::StructuredBuffer, Symbol, in StructuredBuffer() local 91 RI.Struct.Stride = Stride; in StructuredBuffer() 92 RI.Struct.Alignment = Alignment; in StructuredBuffer() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | MachO_arm64.cpp | 57 getRelocationKind(const MachO::relocation_info &RI) { in getRelocationKind() argument 58 switch (RI.r_type) { in getRelocationKind() 60 if (!RI.r_pcrel) { in getRelocationKind() 61 if (RI.r_length == 3) in getRelocationKind() 62 return RI.r_extern ? MachOPointer64 : MachOPointer64Anon; in getRelocationKind() 63 else if (RI.r_length == 2) in getRelocationKind() 71 if (!RI.r_pcrel && RI.r_extern) { in getRelocationKind() 72 if (RI.r_length == 2) in getRelocationKind() 74 else if (RI.r_length == 3) in getRelocationKind() 79 if (RI.r_pcrel && RI.r_extern && RI.r_length == 2) in getRelocationKind() [all …]
|
H A D | MachO_x86_64.cpp | 56 getRelocKind(const MachO::relocation_info &RI) { in getRelocKind() argument 57 switch (RI.r_type) { in getRelocKind() 59 if (!RI.r_pcrel) { in getRelocKind() 60 if (RI.r_length == 3) in getRelocKind() 61 return RI.r_extern ? MachOPointer64 : MachOPointer64Anon; in getRelocKind() 62 else if (RI.r_extern && RI.r_length == 2) in getRelocKind() 67 if (RI.r_pcrel && RI.r_length == 2) in getRelocKind() 68 return RI.r_extern ? MachOPCRel32 : MachOPCRel32Anon; in getRelocKind() 71 if (RI.r_pcrel && RI.r_extern && RI.r_length == 2) in getRelocKind() 75 if (RI.r_pcrel && RI.r_extern && RI.r_length == 2) in getRelocKind() [all …]
|
H A D | MachOLinkGraphBuilder.h | 172 MachO::relocation_info RI; in getRelocationInfo() local 173 RI.r_address = ARI.r_word0; in getRelocationInfo() 174 RI.r_symbolnum = ARI.r_word1 & 0xffffff; in getRelocationInfo() 175 RI.r_pcrel = (ARI.r_word1 >> 24) & 1; in getRelocationInfo() 176 RI.r_length = (ARI.r_word1 >> 25) & 3; in getRelocationInfo() 177 RI.r_extern = (ARI.r_word1 >> 27) & 1; in getRelocationInfo() 178 RI.r_type = (ARI.r_word1 >> 28); in getRelocationInfo() 179 return RI; in getRelocationInfo()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-diff/lib/ |
H A D | DifferenceEngine.cpp | 305 BasicBlock::const_iterator RI = R->begin(); in diff() local 308 assert(LI != LE && RI != R->end()); in diff() 309 const Instruction *LeftI = &*LI, *RightI = &*RI; in diff() 328 ++RI; in diff() 334 for (LI = L->begin(), RI = R->begin(); LI != LE; ++LI, ++RI) in diff() 335 unify(&*LI, &*RI); in diff() 340 BasicBlock::const_iterator RI); 390 const PHINode &RI = cast<PHINode>(*R); in diff() local 393 if (LI.getType() != RI.getType()) { in diff() 394 if (!LI.getType()->isPointerTy() || !RI.getType()->isPointerTy()) { in diff() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineRegionInfo.h | 64 MachineRegionInfo *RI, MachineDominatorTree *DT, 86 MachineRegionInfo RI; 94 MachineRegionInfo &getRegionInfo() { return RI; } 96 const MachineRegionInfo &getRegionInfo() const { return RI; } 142 static NodeRef getEntryNode(MachineRegionInfo *RI) { 144 RI->getTopLevelRegion()); 147 static nodes_iterator nodes_begin(MachineRegionInfo *RI) { 148 return nodes_iterator::begin(getEntryNode(RI)); 151 static nodes_iterator nodes_end(MachineRegionInfo *RI) { 152 return nodes_iterator::end(getEntryNode(RI)); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | ControlHeightReduction.cpp | 148 CHRScope(RegInfo RI) : BranchInsertPoint(nullptr) { in CHRScope() argument 149 assert(RI.R && "Null RegionIn"); in CHRScope() 150 RegInfos.push_back(RI); in CHRScope() 201 for (RegInfo &RI : RegInfos) in addSub() 202 if (RI.R == SubIn->getParentRegion()) { in addSub() 218 RegInfos, [&Boundary](const RegInfo &RI) { return Boundary == RI.R; }); in split() argument 223 for (const RegInfo &RI : TailRegInfos) in split() local 224 TailRegionSet.insert(RI.R); in split() 235 [&Parent](const RegInfo &RI) { return Parent == RI.R; }) && in split() argument 250 for (const RegInfo &RI : RegInfos) in contains() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | DwarfEHPrepare.cpp | 69 Value *GetExceptionObject(ResumeInst *RI); 93 Value *DwarfEHPrepare::GetExceptionObject(ResumeInst *RI) { in GetExceptionObject() argument 94 Value *V = RI->getOperand(0); in GetExceptionObject() 114 ExnObj = ExtractValueInst::Create(RI->getOperand(0), 0, "exn.obj", in GetExceptionObject() 115 RI->getIterator()); in GetExceptionObject() 117 RI->eraseFromParent(); in GetExceptionObject() 138 for (auto *RI : Resumes) { in pruneUnreachableResumes() local 140 if (isPotentiallyReachable(LP, RI, nullptr, &DTU->getDomTree())) { in pruneUnreachableResumes() 157 ResumeInst *RI = Resumes[I]; in pruneUnreachableResumes() local 159 Resumes[ResumesLeft++] = RI; in pruneUnreachableResumes() [all …]
|
H A D | MachineRegionInfo.cpp | 38 MachineRegionInfo* RI, in MachineRegion() argument 40 RegionBase<RegionTraits<MachineFunction>>(Entry, Exit, RI, DT, Parent) {} in MachineRegion() 92 RI.recalculate(F, DT, PDT, DF); in runOnMachineFunction() 94 LLVM_DEBUG(RI.dump()); in runOnMachineFunction() 100 RI.releaseMemory(); in releaseMemory() 108 RI.verifyAnalysis(); in verifyAnalysis() 120 RI.print(OS); in print() 125 RI.dump(); in dump()
|
H A D | GCRootLowering.cpp | 304 for (GCFunctionInfo::roots_iterator RI = FI->roots_begin(); in FindStackOffsets() local 305 RI != FI->roots_end();) { in FindStackOffsets() 307 if (MF.getFrameInfo().isDeadObjectIndex(RI->Num)) { in FindStackOffsets() 308 RI = FI->removeStackRoot(RI); in FindStackOffsets() 312 auto FrameOffset = TFI->getFrameIndexReference(MF, RI->Num, FrameReg); in FindStackOffsets() 315 RI->StackOffset = FrameOffset.getFixed(); in FindStackOffsets() 316 ++RI; in FindStackOffsets()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiDelaySlotFiller.cpp | 106 MachineBasicBlock::reverse_instr_iterator RI = ++I.getReverse(); in runOnMachineBasicBlock() local 107 assert(RI->getOpcode() == Lanai::LDW_RI && RI->getOperand(0).isReg() && in runOnMachineBasicBlock() 108 RI->getOperand(0).getReg() == Lanai::FP && in runOnMachineBasicBlock() 109 RI->getOperand(1).isReg() && in runOnMachineBasicBlock() 110 RI->getOperand(1).getReg() == Lanai::FP && in runOnMachineBasicBlock() 111 RI->getOperand(2).isImm() && RI->getOperand(2).getImm() == -8); in runOnMachineBasicBlock() 112 ++RI; in runOnMachineBasicBlock() 113 assert(RI->getOpcode() == Lanai::ADD_I_LO && in runOnMachineBasicBlock() 114 RI->getOperand(0).isReg() && in runOnMachineBasicBlock() 115 RI->getOperand(0).getReg() == Lanai::SP && in runOnMachineBasicBlock() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | RegionPrinter.cpp | 107 for (const auto &RI : R) in printRegionCluster() 108 printRegionCluster(*RI, GW, depth + 1); in printRegionCluster() local 110 const RegionInfo &RI = *static_cast<const RegionInfo*>(R.getRegionInfo()); in printRegionCluster() 113 if (RI.getRegionFor(BB) == &R) in printRegionCluster() 115 << static_cast<const void*>(RI.getTopLevelRegion()->getBBNode(BB)) in printRegionCluster() 219 static void viewRegionInfo(RegionInfo *RI, bool ShortNames) { 220 assert(RI && "Argument must be non-null"); in viewRegionInfo() argument 222 llvm::Function *F = RI->getTopLevelRegion()->getEntry()->getParent(); in viewRegionInfo() 223 std::string GraphName = DOTGraphTraits<RegionInfo *>::getGraphName(RI); in viewRegionInfo() 225 llvm::ViewGraph(RI, "re in viewRegionInfo() 111 const RegionInfo &RI = *static_cast<const RegionInfo*>(R.getRegionInfo()); printRegionCluster() local 245 viewRegion(RegionInfo * RI) viewRegion() argument 251 viewRegionOnly(RegionInfo * RI) viewRegionOnly() argument [all...] |
H A D | RegionInfo.cpp | 63 RegionInfo* RI, in Region() argument 65 RegionBase<RegionTraits<Function>>(Entry, Exit, RI, DT, Parent) { in Region() 131 RI.recalculate(F, DT, PDT, DF); in runOnFunction() 136 RI.releaseMemory(); in releaseMemory() 140 RI.verifyAnalysis(); in verifyAnalysis() 151 RI.print(OS); in print() 156 RI.dump(); in dump() 189 RegionInfo RI; in run() local 194 RI.recalculate(F, DT, PDT, DF); in run() 195 return RI; in run()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCInstrDesc.cpp | 21 const MCRegisterInfo &RI) const { in mayAffectControlFlow() 24 unsigned PC = RI.getProgramCounter(); in mayAffectControlFlow() 27 if (hasDefOfPhysReg(MI, PC, RI)) in mayAffectControlFlow() 41 const MCRegisterInfo &RI) const { in hasDefOfPhysReg() 44 RI.isSubRegisterEq(Reg, MI.getOperand(i).getReg())) in hasDefOfPhysReg() 49 RI.isSubRegisterEq(Reg, MI.getOperand(i).getReg())) in hasDefOfPhysReg() 51 return hasImplicitDefOfPhysReg(Reg, &RI); in hasDefOfPhysReg()
|
H A D | MCRegisterInfo.cpp | 31 MCRegUnitIterator RI; member in __anon1f4922b00111::MCRegAliasIteratorImpl 40 for (RI = MCRegUnitIterator(Reg, MCRI); RI.isValid(); ++RI) { in MCRegAliasIteratorImpl() 41 for (RRI = MCRegUnitRootIterator(*RI, MCRI); RRI.isValid(); ++RRI) { in MCRegAliasIteratorImpl() 50 bool isValid() const { return RI.isValid(); } in isValid() 69 ++RI; in advance() 70 if (RI.isValid()) { in advance() 71 RRI = MCRegUnitRootIterator(*RI, MCRI); in advance()
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | Object.h | 184 void LLVMDisposeRelocationIterator(LLVMRelocationIteratorRef RI); 186 LLVMRelocationIteratorRef RI); 187 void LLVMMoveToNextRelocation(LLVMRelocationIteratorRef RI); 196 uint64_t LLVMGetRelocationOffset(LLVMRelocationIteratorRef RI); 197 LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI); 198 uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI); 201 const char *LLVMGetRelocationTypeName(LLVMRelocationIteratorRef RI); 202 const char *LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCChecker.cpp | 71 HexagonMCInstrInfo::isPredReg(RI, R)) { in initReg() 82 for (MCRegAliasIterator SRI(R, &RI, RI.subregs(R).empty()); SRI.isValid(); in initReg() 84 if (RI.subregs(*SRI).empty()) in initReg() 126 else if (HexagonMCInstrInfo::isPredReg(RI, R) && in init() 148 for (MCRegAliasIterator SRI(R, &RI, RI.subregs(R).empty()); SRI.isValid(); in init() 150 if (!RI.subregs(*SRI).empty()) in init() 170 HexagonMCInstrInfo::isPredReg(RI, *SRI)) in init() 192 if (HexagonMCInstrInfo::isPredReg(RI, P)) in init() 200 : Context(Context), MCB(mcb), RI(ri), MCII(MCII), STI(STI), in HexagonMCChecker() 208 : Context(Other.Context), MCB(Other.MCB), RI(Other.RI), MCII(Other.MCII), in HexagonMCChecker() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURewriteOutArguments.cpp | 217 if (ReturnInst *RI = dyn_cast<ReturnInst>(&BB.back())) in runOnFunction() 218 Returns.push_back(RI); in runOnFunction() local 254 for (ReturnInst *RI : Returns) { in runOnFunction() 255 BasicBlock *BB = RI->getParent(); in runOnFunction() 258 MemoryLocation::getBeforeOrAfter(OutArg), true, BB->end(), BB, RI); in runOnFunction() 265 ReplaceableStores.emplace_back(RI, SI); in runOnFunction() 340 ReturnInst *RI = Replacement.first; in runOnFunction() 341 IRBuilder<> B(RI); in runOnFunction() 342 B.SetCurrentDebugLocation(RI->getDebugLoc()); in runOnFunction() 347 Value *RetVal = RI in runOnFunction() 339 ReturnInst *RI = Replacement.first; runOnFunction() local [all...] |
H A D | SIInstrInfo.cpp | 65 RI(ST), ST(ST) { in SIInstrInfo() 201 RI.isSGPRClass(MRI.getRegClass(Op.getReg()))) { in isSafeToSink() 642 const SIRegisterInfo &RI = TII.getRegisterInfo(); in indirectCopyToAGPR() local 652 if (!Def->modifiesRegister(SrcReg, &RI)) in indirectCopyToAGPR() 667 if (I->modifiesRegister(DefOp.getReg(), &RI)) in indirectCopyToAGPR() 696 unsigned MaxVGPRs = RI.getRegPressureLimit(&AMDGPU::VGPR_32RegClass, in indirectCopyToAGPR() 713 if (!Tmp2 || RI.getHWRegIndex(Tmp2) >= MaxVGPRs) in indirectCopyToAGPR() 746 const SIRegisterInfo &RI = TII.getRegisterInfo(); in expandSGPRCopy() local 747 ArrayRef<int16_t> BaseIndices = RI.getRegSplitParts(RC, 4); in expandSGPRCopy() 753 Register DestSubReg = RI.getSubReg(DestReg, SubIdx); in expandSGPRCopy() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | RegionIterator.h | 332 static NodeRef getEntryNode(RegionInfo *RI) { 333 return GraphTraits<FlatIt<Region*>>::getEntryNode(RI->getTopLevelRegion()); 336 static nodes_iterator nodes_begin(RegionInfo* RI) { 337 return nodes_iterator::begin(getEntryNode(RI)); 340 static nodes_iterator nodes_end(RegionInfo *RI) { 341 return nodes_iterator::end(getEntryNode(RI)); 351 static NodeRef getEntryNode(RegionInfoPass *RI) { 352 return GraphTraits<RegionInfo*>::getEntryNode(&RI->getRegionInfo()); 355 static nodes_iterator nodes_begin(RegionInfoPass* RI) { 356 return GraphTraits<RegionInfo*>::nodes_begin(&RI->getRegionInfo()); [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | X86EVEX2VEXTablesEmitter.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonAsmPrinter.cpp | 69 const MCRegisterInfo *RI) { in getHexagonRegisterPair() argument 71 unsigned Pair = *RI->superregs(Reg).begin(); in getHexagonRegisterPair() 269 const MCRegisterInfo *RI = OutStreamer->getContext().getRegisterInfo(); in HexagonProcessInstruction() local 379 unsigned Reg = RI->getEncodingValue(Rt.getReg()); in HexagonProcessInstruction() 384 Rt.setReg(getHexagonRegisterPair(Rt.getReg(), RI)); in HexagonProcessInstruction() 390 unsigned Reg = RI->getEncodingValue(Rt.getReg()); in HexagonProcessInstruction() 395 Rt.setReg(getHexagonRegisterPair(Rt.getReg(), RI)); in HexagonProcessInstruction() 402 unsigned Reg = RI->getEncodingValue(Rt.getReg()); in HexagonProcessInstruction() 407 Rt.setReg(getHexagonRegisterPair(Rt.getReg(), RI)); in HexagonProcessInstruction() 414 unsigned Reg = RI->getEncodingValue(Rs.getReg()); in HexagonProcessInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | simple_ilist.h | 280 iterator RI = RHS.begin(), RE = RHS.end(); in merge() 282 if (comp(*RI, *LI)) { in merge() 284 iterator RunStart = RI++; in merge() 285 RI = std::find_if(RI, RE, [&](reference RV) { return !comp(RV, *LI); }); in merge() 286 splice(LI, RHS, RunStart, RI); in merge() 287 if (RI == RE) 293 splice(LE, RHS, RI, RE); in sort() 272 iterator RI = RHS.begin(), RE = RHS.end(); merge() local
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | Object.cpp | 330 uint64_t LLVMGetRelocationOffset(LLVMRelocationIteratorRef RI) { in LLVMGetRelocationOffset() argument 331 return (*unwrap(RI))->getOffset(); in LLVMGetRelocationOffset() 334 LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI) { in LLVMGetRelocationSymbol() argument 335 symbol_iterator ret = (*unwrap(RI))->getSymbol(); in LLVMGetRelocationSymbol() 339 uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI) { in LLVMGetRelocationType() argument 340 return (*unwrap(RI))->getType(); in LLVMGetRelocationType() 344 const char *LLVMGetRelocationTypeName(LLVMRelocationIteratorRef RI) { in LLVMGetRelocationTypeName() argument 346 (*unwrap(RI))->getTypeName(ret); in LLVMGetRelocationTypeName() 353 const char *LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI) { in LLVMGetRelocationValueString() argument
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldMachO.h | 66 const relocation_iterator &RI) const { in getRelocationEntry() argument 70 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationEntry() 74 uint64_t Offset = RI->getOffset(); in getRelocationEntry() 99 const relocation_iterator &RI, 105 const relocation_iterator &RI,
|