Home
last modified time | relevance | path

Searched refs:Rel (Results 1 – 25 of 141) sorted by relevance

123456

/external/llvm-project/clang-tools-extra/clangd/unittests/
DFindTargetTests.cpp66 using Rel = DeclRelation; typedef in clang::clangd::__anon925c2fef0111::TargetDeclTest
195 EXPECT_DECLS("DeclRefExpr", {"using foo::f", Rel::Alias}, {"int f(int)"}); in TEST_F()
205 EXPECT_DECLS("UsingDecl", {"using foo::f", Rel::Alias}, {"int f(int)"}, in TEST_F()
217 EXPECT_DECLS("MemberExpr", {"using X::foo", Rel::Alias}, {"int foo()"}); in TEST_F()
229 EXPECT_DECLS("UnresolvedUsingValueDecl", {"using Base<T>::waldo", Rel::Alias}, in TEST_F()
285 EXPECT_DECLS("NestedNameSpecifierLoc", {"namespace b = a", Rel::Alias}, in TEST_F()
286 {"namespace a", Rel::Underlying}); in TEST_F()
301 EXPECT_DECLS("TypedefTypeLoc", {"typedef S X", Rel::Alias}, in TEST_F()
302 {"struct S", Rel::Underlying}); in TEST_F()
308 EXPECT_DECLS("TypedefTypeLoc", {"typedef ns::S X", Rel::Alias}, in TEST_F()
[all …]
DQualityTests.cpp395 SymbolRelevanceSignals Rel; in TEST() local
397 Rel.merge(FooSym); in TEST()
398 EXPECT_FALSE(Rel.IsInstanceMember); in TEST()
400 Rel.merge(BarSym); in TEST()
401 EXPECT_TRUE(Rel.IsInstanceMember); in TEST()
403 Rel.IsInstanceMember = false; in TEST()
405 Rel.merge(TplSym); in TEST()
406 EXPECT_TRUE(Rel.IsInstanceMember); in TEST()
413 Rel.IsInstanceMember = false; in TEST()
414 Rel.merge(CodeCompletionResult(Foo, /*Priority=*/0)); in TEST()
[all …]
/external/llvm/include/llvm/Object/
DELFObjectFile.h63 virtual ErrorOr<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
239 void moveRelocationNext(DataRefImpl &Rel) const override;
240 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
241 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
242 uint64_t getRelocationType(DataRefImpl Rel) const override;
243 void getRelocationTypeName(DataRefImpl Rel,
251 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
252 return *EF.getSection(Rel.d.a); in getRelSection()
310 const Elf_Rel *getRel(DataRefImpl Rel) const;
330 ErrorOr<int64_t> getRelocationAddend(DataRefImpl Rel) const override;
[all …]
DMachO.h234 void moveRelocationNext(DataRefImpl &Rel) const override;
235 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
236 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
237 section_iterator getRelocationSection(DataRefImpl Rel) const;
238 uint64_t getRelocationType(DataRefImpl Rel) const override;
239 void getRelocationTypeName(DataRefImpl Rel,
241 uint8_t getRelocationLength(DataRefImpl Rel) const;
246 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
384 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
385 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
/external/llvm-project/llvm/tools/llvm-objdump/
DWasmDump.cpp34 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef); in getWasmRelocationValueString() local
41 Fmt << Rel.Index; in getWasmRelocationValueString()
49 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
DELFDump.cpp60 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local
61 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
123 const RelocationRef &Rel, in getELFRelocationValueString() argument
126 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString()
128 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString()
130 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString()
132 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
DXCOFFDump.cpp23 const RelocationRef &Rel, in getXCOFFRelocationValueString() argument
25 symbol_iterator SymI = Rel.getSymbol(); in getXCOFFRelocationValueString()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELFObjectFile.h66 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
238 using Elf_Rel = typename ELFT::Rel;
294 void moveRelocationNext(DataRefImpl &Rel) const override;
295 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
296 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
297 uint64_t getRelocationType(DataRefImpl Rel) const override;
298 void getRelocationTypeName(DataRefImpl Rel,
307 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
308 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection()
399 const Elf_Rel *getRel(DataRefImpl Rel) const;
[all …]
DMachO.h334 void moveRelocationNext(DataRefImpl &Rel) const override;
335 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
336 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
337 section_iterator getRelocationSection(DataRefImpl Rel) const;
338 uint64_t getRelocationType(DataRefImpl Rel) const override;
339 void getRelocationTypeName(DataRefImpl Rel,
341 uint8_t getRelocationLength(DataRefImpl Rel) const;
347 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
543 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
544 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
DXCOFFObjectFile.h280 void moveRelocationNext(DataRefImpl &Rel) const override;
281 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
282 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
283 uint64_t getRelocationType(DataRefImpl Rel) const override;
284 void getRelocationTypeName(DataRefImpl Rel,
/external/llvm-project/llvm/include/llvm/Object/
DELFObjectFile.h72 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
241 using Elf_Rel = typename ELFT::Rel;
308 void moveRelocationNext(DataRefImpl &Rel) const override;
309 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
310 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
311 uint64_t getRelocationType(DataRefImpl Rel) const override;
312 void getRelocationTypeName(DataRefImpl Rel,
408 const Elf_Rel *getRel(DataRefImpl Rel) const;
419 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
420 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection()
[all …]
DMachO.h335 void moveRelocationNext(DataRefImpl &Rel) const override;
336 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
337 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
338 section_iterator getRelocationSection(DataRefImpl Rel) const;
339 uint64_t getRelocationType(DataRefImpl Rel) const override;
340 void getRelocationTypeName(DataRefImpl Rel,
342 uint8_t getRelocationLength(DataRefImpl Rel) const;
348 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
544 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
545 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
/external/libchrome/soong/
Dbindings_generator.go104 if !strings.HasSuffix(in.Rel(), ".mojom") {
105 ctx.PropertyErrorf("srcs", "Source is not a .mojom file: %s", in.Rel())
109 out := android.PathForModuleGen(ctx, in.Rel())
170 if !strings.HasSuffix(in.Rel(), ".mojom") {
171 ctx.PropertyErrorf("srcs", "Source is not a .mojom file: %s", in.Rel())
175 srcRoot := strings.TrimSuffix(in.String(), in.Rel())
177 relStem := strings.TrimSuffix(in.Rel(), ".mojom")
324 if !strings.HasSuffix(in.Rel(), ".mojom") {
325 ctx.PropertyErrorf("srcs", "Source is not a .mojom file: %s", in.Rel())
328 relStem := strings.TrimSuffix(in.Rel(), ".mojom")
[all …]
/external/clang/lib/Index/
DIndexingContext.cpp310 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument
313 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence()
316 It->Roles |= Rel.Roles; in handleDeclOccurrence()
318 FinalRelations.push_back(Rel); in handleDeclOccurrence()
320 Roles |= Rel.Roles; in handleDeclOccurrence()
326 for (auto &Rel : Relations) { in handleDeclOccurrence() local
327 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence()
328 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/external/llvm-project/clang/lib/Index/
DIndexingContext.cpp352 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local
353 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode()
422 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument
424 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence()
427 It->Roles |= Rel.Roles; in handleDeclOccurrence()
429 FinalRelations.push_back(Rel); in handleDeclOccurrence()
431 Roles |= Rel.Roles; in handleDeclOccurrence()
448 for (auto &Rel : Relations) { in handleDeclOccurrence() local
449 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence()
450 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DDex.h52 for (auto &&Rel : Relations) in Dex()
53 this->Relations[std::make_pair(Rel.Subject, in Dex()
54 static_cast<uint8_t>(Rel.Predicate))] in Dex()
55 .push_back(Rel.Object); in Dex()
/external/llvm-project/llvm/lib/Object/
DELF.cpp291 std::vector<typename ELFT::Rel>
323 Elf_Rel Rel; in decode_relrs() local
324 Rel.r_info = 0; in decode_relrs()
325 Rel.setType(getRelativeRelocationType(), false); in decode_relrs()
343 Rel.r_offset = Entry; in decode_relrs()
344 Relocs.push_back(Rel); in decode_relrs()
355 Rel.r_offset = Offset; in decode_relrs()
356 Relocs.push_back(Rel); in decode_relrs()
DXCOFFObjectFile.cpp347 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
348 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext()
351 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset()
354 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset()
370 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
373 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationSymbol()
384 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
387 return viewAs<XCOFFRelocation32>(Rel.p)->Type; in getRelocationType()
391 DataRefImpl Rel, SmallVectorImpl<char> &Result) const { in getRelocationTypeName() argument
394 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationTypeName()
/external/llvm-project/clang-tools-extra/clangd/
DFindTarget.cpp329 using Rel = DeclRelation; typedef
370 add(TND->getUnderlyingType(), Flags | Rel::Underlying); in add()
371 Flags |= Rel::Alias; // continue with the alias. in add()
376 Flags |= Rel::Alias; // continue with the alias. in add()
378 add(NAD->getUnderlyingDecl(), Flags | Rel::Underlying); in add()
379 Flags |= Rel::Alias; // continue with the alias in add()
388 Flags |= Rel::Alias; // continue with the alias in add()
392 report(USD->getUsingDecl(), Flags | Rel::Alias); in add()
416 add(Pat, Flags | Rel::TemplatePattern); in add()
418 Flags |= Rel::TemplateInstantiation; in add()
[all …]
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp490 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local
498 ErrorOr<const Elf_Shdr *> SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
526 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
620 const RelocationRef &Rel, in getRelocationValueString() argument
623 return getRelocationValueString(ELF32LE, Rel, Result); in getRelocationValueString()
625 return getRelocationValueString(ELF64LE, Rel, Result); in getRelocationValueString()
627 return getRelocationValueString(ELF32BE, Rel, Result); in getRelocationValueString()
629 return getRelocationValueString(ELF64BE, Rel, Result); in getRelocationValueString()
633 const RelocationRef &Rel, in getRelocationValueString() argument
635 symbol_iterator SymI = Rel.getSymbol(); in getRelocationValueString()
[all …]
/external/llvm/tools/obj2yaml/
Dcoff2yaml.cpp122 COFFYAML::Relocation Rel; in dumpSections() local
132 Rel.SymbolName = *SymbolNameOrErr; in dumpSections()
133 Rel.VirtualAddress = reloc->VirtualAddress; in dumpSections()
134 Rel.Type = reloc->Type; in dumpSections()
135 Relocations.push_back(Rel); in dumpSections()
/external/llvm-project/llvm/tools/obj2yaml/
Dcoff2yaml.cpp198 COFFYAML::Relocation Rel; in dumpSections() local
209 Rel.SymbolName = *SymbolNameOrErr; in dumpSections()
211 Rel.SymbolTableIndex = reloc->SymbolTableIndex; in dumpSections()
212 Rel.VirtualAddress = reloc->VirtualAddress; in dumpSections()
213 Rel.Type = reloc->Type; in dumpSections()
214 Relocations.push_back(Rel); in dumpSections()
/external/swiftshader/third_party/subzero/src/
DIceELFSection.h381 Elf32_Rel Rel; in writeData() local
382 Rel.r_offset = Fixup.position(); in writeData()
383 Rel.setSymbolAndType(Symbol->getNumber(), Fixup.kind()); in writeData()
384 Str.writeAddrOrOffset<IsELF64>(Rel.r_offset); in writeData()
385 Str.writeELFWord<IsELF64>(Rel.r_info); in writeData()
/external/llvm-project/llvm/lib/ObjectYAML/
DCOFFYAML.cpp410 COFFYAML::Relocation &Rel) { in mapping() argument
411 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
412 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
413 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
418 IO, Rel.Type); in mapping()
422 IO, Rel.Type); in mapping()
426 IO, Rel.Type); in mapping()
430 IO, Rel.Type); in mapping()
433 IO.mapRequired("Type", Rel.Type); in mapping()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DCOFFYAML.cpp410 COFFYAML::Relocation &Rel) { in mapping() argument
411 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
412 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
413 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
418 IO, Rel.Type); in mapping()
422 IO, Rel.Type); in mapping()
426 IO, Rel.Type); in mapping()
430 IO, Rel.Type); in mapping()
433 IO.mapRequired("Type", Rel.Type); in mapping()

123456