Home
last modified time | relevance | path

Searched refs:NameRef (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinkerDeclContext.cpp
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DMemoryBuffer.cpp80 StringRef NameRef = Alloc.Name.toStringRef(NameBuf); in operator new() local
89 static_cast<char *>(std::malloc(N + sizeof(size_t) + NameRef.size() + 1)); in operator new()
92 *reinterpret_cast<size_t *>(Mem + N) = NameRef.size(); in operator new()
93 CopyStringRef(Mem + N + sizeof(size_t), NameRef); in operator new()
168 StringRef NameRef = Filename.toStringRef(NameBuf); in getFileOrSTDIN() local
170 if (NameRef == "-") in getFileOrSTDIN()
320 StringRef NameRef = BufferName.toStringRef(NameBuf); in getNewUninitMemBuffer() local
322 size_t StringLen = sizeof(MemBuffer) + sizeof(size_t) + NameRef.size() + 1; in getNewUninitMemBuffer()
338 *reinterpret_cast<size_t *>(Mem + sizeof(MemBuffer)) = NameRef.size(); in getNewUninitMemBuffer()
339 CopyStringRef(Mem + sizeof(MemBuffer) + sizeof(size_t), NameRef); in getNewUninitMemBuffer()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingMerge.c37 (NumVnodes << 10) + (NumData > 0 ? FirstD->NameRef : 0) + Version + in lprofGetLoadModuleSignature()
91 if (SrcData->NameRef != DstData->NameRef || in __llvm_profile_check_compatibility()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCContext.cpp215 StringRef NameRef = Name.toStringRef(NameSV); in getOrCreateSymbol() local
217 assert(!NameRef.empty() && "Normal symbols cannot be unnamed!"); in getOrCreateSymbol()
219 MCSymbolTableEntry &Entry = getSymbolTableEntry(NameRef); in getOrCreateSymbol()
221 bool IsRenamable = NameRef.starts_with(MAI->getPrivateGlobalPrefix()); in getOrCreateSymbol()
229 Entry.second.Symbol = createRenamableSymbol(NameRef, false, IsTemporary); in getOrCreateSymbol()
415 StringRef NameRef = Name.toStringRef(NameSV); in lookupSymbol() local
416 return Symbols.lookup(NameRef).Symbol; in lookupSymbol()
H A DXCOFFObjectWriter.cpp858 ArrayRef<char> NameRef(Name, XCOFF::NameSize); in writeSymbolName() local
859 W.write(NameRef); in writeSymbolName()
913 ArrayRef<char> NameRef(Name, XCOFF::AuxFileEntNameSize); in writeAuxFileSymName() local
914 W.write(NameRef); in writeAuxFileSymName()
1079 ArrayRef<char> NameRef(Sec->Name, XCOFF::NameSize); in writeSectionHeader() local
1080 W.write(NameRef); in writeSectionHeader()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp332 StringRef NameRef = NeedNewName ? NewName.toStringRef(NameData) : ""; in setNameImpl() local
333 assert(!NameRef.contains(0) && "Null bytes are not allowed in names"); in setNameImpl()
336 if (getName() == NameRef) in setNameImpl()
351 if (!NameRef.empty()) { in setNameImpl()
355 setValueName(ValueName::create(NameRef, Allocator)); in setNameImpl()
368 if (NameRef.empty()) in setNameImpl()
374 setValueName(ST->createValueName(NameRef, this)); in setNameImpl()
H A DModule.cpp264 StringRef NameRef = Name.toStringRef(NameData); in getNamedMetadata() local
265 return NamedMDSymTab.lookup(NameRef); in getNamedMetadata()
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOModule.cpp465 StringRef NameRef = Iter->first(); in addDefinedSymbol() local
466 info.name = NameRef; in addDefinedSymbol()
467 assert(NameRef.data()[NameRef.size()] == '\0'); in addDefinedSymbol()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfCorrelator.cpp257 void InstrProfCorrelatorImpl<IntPtrT>::addDataProbe(uint64_t NameRef, in addDataProbe() argument
266 maybeSwap<uint64_t>(NameRef), in addDataProbe()
467 this->addDataProbe(I->NameRef, I->FuncHash, CounterOffset, in correlateProfileDataImpl()
H A DInstrProfReader.cpp483 for (auto &[TimestampValue, NameRef] : TemporalProfTimestamps) in getTemporalProfTraces()
484 Trace.FunctionNameRefs.push_back(NameRef); in getTemporalProfTraces()
548 Symtab.mapAddress(FPtr, swap(I->NameRef)); in createSymtab()
676 Record.Name = getName(Data->NameRef); in readName()
726 swap(Data->NameRef)); in readRawCounts()
1438 const uint64_t NameRef = in readHeader() local
1440 Trace.FunctionNameRefs.push_back(NameRef); in readHeader()
H A DInstrProfWriter.cpp960 for (auto &NameRef : Trace.FunctionNameRefs) in writeImpl() local
961 OS.write(NameRef); in writeImpl()
1165 for (auto &NameRef : Trace.FunctionNameRefs) in writeTextTemporalProfTraceData() local
1166 OS << Symtab.getFuncOrVarName(NameRef) << ","; in writeTextTemporalProfTraceData()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetMachineC.cpp76 StringRef NameRef = Name; in LLVMGetTargetFromName() local
78 [&](const Target &T) { return T.getName() == NameRef; }); in LLVMGetTargetFromName()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h1154 return support::endian::byte_swap<uint64_t, Endian>(Record->NameRef); in getFuncNameRef()
1162 uint64_t NameRef = getFuncNameRef<FuncRecordTy, Endian>(Record); in getFuncNameViaRef() local
1163 FuncName = ProfileNames.getFuncOrVarName(NameRef); in getFuncNameViaRef()
1213 IntPtrT NameRef = getFuncNameRef<Endian>(); in getFuncName() local
1215 FuncName = ProfileNames.getFuncName(NameRef, NameS); in getFuncName()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfdump/
H A Dllvm-dwarfdump.cpp398 const StringSet<> &Names, DWARFDie Die, StringRef NameRef, raw_ostream &OS, in filterByName() argument
403 (IgnoreCase && !UseRegex) ? NameRef.lower() : NameRef.str(); in filterByName()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProfReader.h460 StringRef getName(uint64_t NameRef) const { in getName() argument
461 return Symtab->getFuncOrVarName(swap(NameRef)); in getName()
H A DInstrProfData.inc74 INSTR_PROF_DATA(const uint64_t, llvm::Type::getInt64Ty(Ctx), NameRef, \
262 COVMAP_FUNC_RECORD(const int64_t, llvm::Type::getInt64Ty(Ctx), NameRef, \
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWindowsResource.cpp535 ArrayRef<UTF16> NameRef, std::vector<std::vector<UTF16>> &StringTable) { in addNameChild() argument
537 convertUTF16LEToUTF8String(NameRef, NameString); in addNameChild()
542 StringTable.push_back(NameRef); in addNameChild()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DWindowsResource.h216 TreeNode &addNameChild(ArrayRef<UTF16> NameRef,
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DXCOFFEmitter.cpp92 ArrayRef<char> NameRef(Name, XCOFF::NameSize); in writeName() local
93 W.write(NameRef); in writeName()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMappingReader.cpp614 NameRefType NameRef = CFR->template getFuncNameRef<Endian>(); in insertFunctionRecordIfNeeded() local
616 FunctionRecords.insert(std::make_pair(NameRef, Records.size())); in insertFunctionRecordIfNeeded()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp1399 StringRef NameRef = Name.toStringRef(Buffer); in EmitAndRegisterVariableArrayDimensions() local
1400 auto &Ident = getContext().Idents.getOwn(NameRef); in EmitAndRegisterVariableArrayDimensions()
1403 CreateDefaultAlignTempAlloca(VlaSize.NumElts->getType(), NameRef); in EmitAndRegisterVariableArrayDimensions()
/freebsd/contrib/llvm-project/compiler-rt/include/profile/
H A DInstrProfData.inc74 INSTR_PROF_DATA(const uint64_t, llvm::Type::getInt64Ty(Ctx), NameRef, \
262 COVMAP_FUNC_RECORD(const int64_t, llvm::Type::getInt64Ty(Ctx), NameRef, \
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp2989 for (auto &NameRef : Traces[i].FunctionNameRefs) in showInstrProfile() local
2990 OS << " " << Reader->getSymtab().getFuncOrVarName(NameRef) << "\n"; in showInstrProfile()