Home
last modified time | relevance | path

Searched refs:rel (Results 1 – 25 of 256) sorted by relevance

1234567891011

/llvm-project-15.0.7/lld/wasm/
H A DInputChunks.cpp117 LLVM_DEBUG(dbgs() << " addend=" << rel.Addend << " index=" << rel.Index in relocate()
124 switch (rel.Type) { in relocate()
185 if (relocTypeHasAddend(rel.Type)) in writeRelocations()
216 switch (rel.Type) { in writeCompressedReloc()
236 switch (rel.Type) { in getRelocWidthPadded()
291 getRelocWidth(rel, file->calcNewValue(rel, tombstone, this)); in calculateSize()
292 lastRelocEnd = rel.Offset + getRelocWidthPadded(rel); in calculateSize()
331 lastRelocEnd = secStart + rel.Offset + getRelocWidthPadded(rel); in writeCompressed()
384 << " addend=" << rel.Addend << " index=" << rel.Index in generateRelocationCode()
399 bool is64 = relocIs64(rel.Type); in generateRelocationCode()
[all …]
/llvm-project-15.0.7/clang/test/Index/Core/
H A Dindex-source.m5 // CHECK: [[@LINE-1]]:12 | class/ObjC | Base | [[BASE_USR:.*]] | _OBJC_CLASS_$_Base | Decl | rel: 0
17 // CHECK: [[@LINE+6]]:6 | function/C | goo | c:@F@goo | _goo | Def | rel: 0
21 // LOCAL: [[@LINE+2]]:16 | param(local)/C | b | [[b_USR:c:.*]] | _b | Def,RelChild | rel: 1
28 // LOCAL: [[@LINE+2]]:11 | param(local)/C | b | [[b_USR]] | _b | Ref,Read,RelCont | rel: 1
93 // CHECK: [[@LINE+1]]:6 | enum/C | MyEnum | c:@E@MyEnum | <no-cgname> | Def | rel: 0
100 // CHECK: [[@LINE+1]]:1 | enum/C | <no-name> | c:@Ea@One | <no-cgname> | Def | rel: 0
112 // CHECK: [[@LINE+3]]:12 | function/C | setjmp | c:@F@setjmp | _setjmp | Decl | rel: 0
124 // CHECK: [[@LINE-1]]:12 | class/ObjC | I2 | [[I2_USR:.*]] | {{.*}} | Decl | rel: 0
212 // CHECK: [[@LINE+1]]:17 | class/ObjC | I3 | c:objc(cs)I3 | <no-cgname> | Def | rel: 0
376 // CHECK: [[@LINE-1]]:1 | struct/C | AStruct | {{.*}} | {{.*}} | Ref,RelCont | rel: 1
[all …]
H A Dindex-subkinds.m3 …+1]]:12 | class/ObjC | XCTestCase | c:objc(cs)XCTestCase | _OBJC_CLASS_$_XCTestCase | Decl | rel: 0
7 …2 | class(test)/ObjC | MyTestCase | c:objc(cs)MyTestCase | _OBJC_CLASS_$_MyTestCase | Decl | rel: 0
10 … [[@LINE+1]]:17 | class(test)/ObjC | MyTestCase | c:objc(cs)MyTestCase | <no-cgname> | Def | rel: 0
20 … class(test)/ObjC | SubTestCase | c:objc(cs)SubTestCase | _OBJC_CLASS_$_SubTestCase | Decl | rel: 0
23 …[@LINE+1]]:17 | class(test)/ObjC | SubTestCase | c:objc(cs)SubTestCase | <no-cgname> | Def | rel: 0
29 …)/ObjC | MyTestCase | c:objc(cs)MyTestCase | _OBJC_CLASS_$_MyTestCase | Ref,RelExt,RelCont | rel: 1
31 …[@LINE+1]]:23 | extension(test)/ObjC | cat | c:objc(cy)MyTestCase@cat | <no-cgname> | Decl | rel: 0
34 …ss(test)/ObjC | MyTestCase | c:objc(cs)MyTestCase | _OBJC_CLASS_$_MyTestCase | Ref,RelCont | rel: 1
35 …[[@LINE+1]]:28 | extension(test)/ObjC | cat | c:objc(cy)MyTestCase@cat | <no-cgname> | Def | rel: 0
46 … instance-property(IB)/ObjC | prop | c:objc(cs)IBCls(py)prop | <no-cgname> | Decl,RelChild | rel: 1
[all …]
/llvm-project-15.0.7/lld/ELF/Arch/
H A DAVR.cpp96 switch (rel.type) { in relocate()
98 checkUInt(loc, val, 8, rel); in relocate()
108 checkAlignment(loc, val, 2, rel); in relocate()
113 checkUInt(loc, val, 32, rel); in relocate()
118 checkUInt(loc, val, 8, rel); in relocate()
148 checkAlignment(loc, val, 2, rel); in relocate()
174 checkUInt(loc, val, 5, rel); in relocate()
178 checkUInt(loc, val, 6, rel); in relocate()
184 checkInt(loc, val, 7, rel); in relocate()
198 checkInt(loc, val, 6, rel); in relocate()
[all …]
H A DARM.cpp470 if (rel.sym->isFunc()) in encodeLdrGroup()
479 checkUInt(loc, imm, 12, rel); in encodeLdrGroup()
488 if (rel.sym->isFunc()) in encodeLdrsGroup()
497 checkUInt(loc, imm, 8, rel); in encodeLdrsGroup()
503 switch (rel.type) { in relocate()
539 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
594 if (!rel.sym->isFunc() && !rel.sym->isInPlt() && isBlx == bit0Thumb) in relocate()
595 stateChangeWarning(loc, rel.type, *rel.sym); in relocate()
596 if (rel.sym->isFunc() || rel.sym->isInPlt() ? !bit0Thumb : isBlx) { in relocate()
724 if (rel.sym->isFunc()) in relocate()
[all …]
H A DAArch64.cpp340 switch (rel.type) { in relocate()
352 checkInt(loc, val, 32, rel); in relocate()
366 checkInt(loc, val, 33, rel); in relocate()
372 checkInt(loc, val, 21, rel); in relocate()
386 checkInt(loc, val, 28, rel); in relocate()
392 checkInt(loc, val, 21, rel); in relocate()
450 checkInt(loc, val, 17, rel); in relocate()
510 checkUInt(loc, val, 32, rel); in relaxTlsGdToLe()
512 switch (rel.type) { in relaxTlsGdToLe()
542 switch (rel.type) { in relaxTlsGdToIe()
[all …]
H A DMSP430.cpp37 void relocate(uint8_t *loc, const Relocation &rel,
62 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument
63 switch (rel.type) { in relocate()
65 checkIntUInt(loc, val, 8, rel); in relocate()
72 checkIntUInt(loc, val, 16, rel); in relocate()
76 checkIntUInt(loc, val, 32, rel); in relocate()
81 checkInt(loc, offset, 10, rel); in relocate()
87 toString(rel.type)); in relocate()
H A DX86.cpp293 switch (rel.type) { in relocate()
298 checkIntUInt(loc, val, 8, rel); in relocate()
302 checkInt(loc, val, 8, rel); in relocate()
306 checkIntUInt(loc, val, 16, rel); in relocate()
320 checkInt(loc, val, 17, rel); in relocate()
344 checkInt(loc, val, 32, rel); in relocate()
358 if (rel.type == R_386_TLS_GD) { in relaxTlsGdToLe()
392 if (rel.type == R_386_TLS_GD) { in relaxTlsGdToIe()
432 if (rel.type == R_386_TLS_IE) { in relaxTlsIeToLe()
448 assert(rel.type == R_386_TLS_GOTIE); in relaxTlsIeToLe()
[all …]
H A DPPC.cpp316 checkIntUInt(loc, val, 16, rel); in relocate()
324 checkInt(loc, val, 16, rel); in relocate()
360 checkInt(loc, val, 16, rel); in relocate()
361 checkAlignment(loc, val, 4, rel); in relocate()
370 checkInt(loc, val, 26, rel); in relocate()
371 checkAlignment(loc, val, 4, rel); in relocate()
404 switch (rel.type) { in relaxTlsGdToIe()
423 switch (rel.type) { in relaxTlsGdToLe()
439 switch (rel.type) { in relaxTlsLdToLe()
454 relocate(loc, rel, val); in relaxTlsLdToLe()
[all …]
H A DSPARCV9.cpp29 void relocate(uint8_t *loc, const Relocation &rel,
87 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument
89 switch (rel.type) { in relocate()
93 checkUInt(loc, val, 32, rel); in relocate()
98 checkInt(loc, val, 32, rel); in relocate()
104 checkInt(loc, val, 32, rel); in relocate()
109 checkUInt(loc, val, 22, rel); in relocate()
120 checkUInt(loc, val >> 10, 22, rel); in relocate()
125 checkInt(loc, val, 21, rel); in relocate()
144 checkUInt(loc, val >> 42, 22, rel); in relocate()
[all …]
H A DPPC64.cpp325 if (rel.addend < 0) in tryRelaxPPC64TocIndirection()
636 switch (rel.type) { in relaxGot()
639 relocate(loc, rel, val); in relaxGot()
662 relocate(loc, rel, val); in relaxGot()
716 switch (rel.type) { in relaxTlsGdToLe()
779 switch (rel.type) { in relaxTlsLdToLe()
820 relocate(loc, rel, val); in relaxTlsLdToLe()
874 switch (rel.type) { in relaxTlsIeToLe()
1205 RelType type = rel.type; in relocate()
1229 checkInt(loc, val, 16, rel); in relocate()
[all …]
H A DX86_64.cpp432 if (rel.type == R_X86_64_TLSGD) { in relaxTlsGdToLe()
473 if (rel.type == R_X86_64_TLSGD) { in relaxTlsGdToIe()
557 if (rel.type == R_X86_64_DTPOFF64) { in relaxTlsLdToLe()
745 switch (rel.type) { in relocate()
747 checkIntUInt(loc, val, 8, rel); in relocate()
751 checkInt(loc, val, 8, rel); in relocate()
755 checkIntUInt(loc, val, 16, rel); in relocate()
759 checkInt(loc, val, 16, rel); in relocate()
763 checkUInt(loc, val, 32, rel); in relocate()
781 checkInt(loc, val, 32, rel); in relocate()
[all …]
H A DMips.cpp571 RelType type = rel.type; in relocate()
629 checkInt(loc, val, 16, rel); in relocate()
643 checkInt(loc, val, 16, rel); in relocate()
655 checkInt(loc, val, 7, rel); in relocate()
699 checkInt(loc, val, 18, rel); in relocate()
704 checkInt(loc, val, 21, rel); in relocate()
709 checkInt(loc, val, 23, rel); in relocate()
714 checkInt(loc, val, 28, rel); in relocate()
722 checkInt(loc, val, 27, rel); in relocate()
726 checkInt(loc, val, 8, rel); in relocate()
[all …]
/llvm-project-15.0.7/mlir/unittests/Analysis/Presburger/
H A DIntegerRelationTest.cpp20 IntegerRelation rel = parsePoly(set); in parseRelationFromSet() local
24 return rel; in parseRelationFromSet()
28 IntegerRelation rel = parseRelationFromSet( in TEST() local
31 IntegerPolyhedron domainSet = rel.getDomainSet(); in TEST()
38 IntegerPolyhedron rangeSet = rel.getRangeSet(); in TEST()
47 IntegerRelation rel = in TEST() local
57 rel.inverse(); in TEST()
59 EXPECT_TRUE(rel.isEqual(inverseRel)); in TEST()
63 IntegerRelation rel = parseRelationFromSet( in TEST() local
76 IntegerRelation copyRel = rel; in TEST()
[all …]
/llvm-project-15.0.7/lld/ELF/
H A DRelocations.cpp102 if (rel.sym && !rel.sym->isSection()) in reportRangeError()
106 if (rel.sym && !rel.sym->isSection()) in reportRangeError()
861 while (rel != static_cast<const RelTy *>(end) && rel->r_offset == offset) in getMipsN32RelType()
1295 const RelTy &rel = *i; in scanOne() local
2087 if (target->inBranchRange(rel.type, src, rel.sym->getVA(rel.addend))) in normalizeExistingThunk()
2092 rel.expr = toPlt(rel.expr); in normalizeExistingThunk()
2147 if (!target->needsThunk(rel.expr, rel.type, isec->file, src, in createThunks()
2148 *rel.sym, rel.addend)) in createThunks()
2168 rel.expr = fromPlt(rel.expr); in createThunks()
2174 rel.addend = -getPCBias(rel.type); in createThunks()
[all …]
H A DThunks.cpp508 return rel.type != R_ARM_THM_JUMP19 && rel.type != R_ARM_THM_JUMP24; in isCompatibleWith()
546 return rel.type != R_ARM_JUMP24 && rel.type != R_ARM_PC24 && rel.type != R_ARM_PLT32; in isCompatibleWith()
646 return rel.type != R_ARM_THM_JUMP19 && rel.type != R_ARM_THM_JUMP24; in isCompatibleWith()
672 return rel.type != R_ARM_THM_JUMP19 && rel.type != R_ARM_THM_JUMP24; in isCompatibleWith()
908 return rel.type == R_PPC64_REL24 || rel.type == R_PPC64_REL14; in isCompatibleWith()
951 return rel.type == R_PPC64_REL24 || rel.type == R_PPC64_REL14; in isCompatibleWith()
1038 return rel.type == R_PPC64_REL24 || rel.type == R_PPC64_REL14; in isCompatibleWith()
1144 assert((rel.type == R_PPC_LOCAL24PC || rel.type == R_PPC_REL24 || in addThunkPPC32()
1176 Symbol &s = *rel.sym; in addThunk()
1177 int64_t a = rel.addend; in addThunk()
[all …]
H A DInputSection.cpp348 for (const RelTy &rel : rels) { in copyRelocations() local
831 for (const RelTy &rel : rels) { in relocateNonAlloc() local
942 assert(rel.expr == R_ABS); in relocateNonAllocForRelocatable()
944 uint64_t targetVA = SignExtend64(rel.sym->getVA(rel.addend), bits); in relocateNonAllocForRelocatable()
979 if (rel.expr == R_NONE) in relocateAlloc()
981 uint64_t offset = rel.offset; in relocateAlloc()
989 SignExtend64(getRelocTargetVA(file, rel.type, rel.addend, addrLoc, in relocateAlloc()
990 *rel.sym, rel.expr), in relocateAlloc()
992 switch (rel.expr) { in relocateAlloc()
1035 if (ppc64noTocRelax.count({rel.sym, rel.addend}) || in relocateAlloc()
[all …]
H A DTarget.h86 virtual void relocate(uint8_t *loc, const Relocation &rel,
159 virtual void relaxGot(uint8_t *loc, const Relocation &rel,
161 virtual void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel,
163 virtual void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel,
165 virtual void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel,
167 virtual void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel,
260 reportRangeError(loc, rel, Twine(v), 0, llvm::maxUIntN(n)); in checkUInt()
265 const Relocation &rel) { in checkIntUInt() argument
269 reportRangeError(loc, rel, Twine((int64_t)v), llvm::minIntN(n), in checkIntUInt()
274 const Relocation &rel) { in checkAlignment() argument
[all …]
H A DMarkLive.cpp58 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool fromFDE);
77 const typename ELFT::Rel &rel) { in getAddend() argument
79 rel.getType(config->isMips64EL)); in getAddend()
84 const typename ELFT::Rela &rel) { in getAddend() argument
85 return rel.r_addend; in getAddend()
92 Symbol &sym = sec.getFile<ELFT>()->getRelocTargetSym(rel); in resolveReloc()
104 offset += getAddend<ELFT>(sec, rel); in resolveReloc()
324 for (const typename ELFT::Rel &rel : rels.rels) in mark() local
325 resolveReloc(sec, rel, false); in mark()
326 for (const typename ELFT::Rela &rel : rels.relas) in mark() local
[all …]
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dtesting.cpp69 const char *rel, const char *ys, std::uint64_t x, std::uint64_t y) { in Compare() argument
70 while (*rel == ' ') { in Compare()
71 ++rel; in Compare()
74 if (*rel == '<') { in Compare()
75 if (rel[1] == '=') { in Compare()
80 } else if (*rel == '>') { in Compare()
81 if (rel[1] == '=') { in Compare()
86 } else if (*rel == '=') { in Compare()
88 } else if (*rel == '!') { in Compare()
97 static_cast<std::uintmax_t>(x), rel, ys, in Compare()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Drename-section-relocsec.test8 # RUN: --rename-section=.rel.tst4.foo=.tst4.ren.foo.rel \
24 # CHECK: Name: .rel.tst1.ren.foo{{ }}
29 - Name: .rel.tst1.foo
41 # CHECK: Name: .rel.tst2.ren.foo{{ }}
44 - Name: .tst2.foo.rel
53 # CHECK: Name: .rel.tst3.foo{{ }}
58 - Name: .rel.tst3.foo
65 # CHECK: Name: .tst4.ren.foo.rel{{ }}
68 - Name: .rel.tst4.foo
76 # CHECK: Name: .tst5.foo.rel{{ }}
[all …]
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dsection-address-align.test5 # RUN: .data.rel.ro; .balign 8; .byte 0; \
12 # WARN: warning: address (0x10004) of section .data.rel.ro is not a multiple of alignment (8)
18 # CHECK-NEXT: .data.rel.ro PROGBITS 0000000000010004 001004 000005 00 WA 0 0 8
24 ## The output .data.rel.ro starts at 0x10004.
25 ## The input .data.rel.ro starts at 0x10008 and ends at 0x10009.
26 ## sh_size(.data.rel.ro) = 0x10009-0x10004 = 0x5.
27 .data.rel.ro ALIGN(4) : { *(.data.rel.ro) }
/llvm-project-15.0.7/lld/COFF/
H A DChunks.cpp378 applyRelocation(buf + rel.VirtualAddress, rel); in writeTo()
405 uint64_t p = rva + rel.VirtualAddress; in applyRelocation()
408 applyRelX64(off, rel.Type, os, s, p); in applyRelocation()
411 applyRelX86(off, rel.Type, os, s, p); in applyRelocation()
414 applyRelARM(off, rel.Type, os, s, p); in applyRelocation()
456 if (rel.VirtualAddress < vaBegin) in writeAndRelocateSubsection()
458 if (rel.VirtualAddress + 1 >= vaEnd) in writeAndRelocateSubsection()
460 applyRelocation(&buf[rel.VirtualAddress - vaBegin], rel); in writeAndRelocateSubsection()
491 if (rel.Type == IMAGE_REL_I386_DIR32) in getBaserelType()
495 if (rel.Type == IMAGE_REL_ARM_ADDR32) in getBaserelType()
[all …]
/llvm-project-15.0.7/lld/test/ELF/
H A Dmips-gp-ext.s10 # RUN: .got : { *(.got) } }" > %t.rel.script
11 # RUN: ld.lld -shared -o %t.rel.so --script %t.rel.script %t.o
12 # RUN: llvm-objdump -s -t %t.rel.so | FileCheck --check-prefix=REL %s
17 # RUN: .got : { *(.got) } }" > %t.rel.script
18 # RUN: ld.lld -shared -o %t.rel.so --script %t.rel.script %t.o
19 # RUN: llvm-objdump -s -t %t.rel.so | FileCheck --check-prefix=REL %s
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h328 static unsigned RelocType32(const ELFRel &rel) { return rel.r_info & 0x0ff; } in RelocType32()
331 static unsigned RelocType64(const ELFRel &rel) { in RelocType64()
332 return rel.r_info & 0xffffffff; in RelocType64()
337 static unsigned RelocSymbol32(const ELFRel &rel) { return rel.r_info >> 8; } in RelocSymbol32()
341 static unsigned RelocSymbol64(const ELFRel &rel) { return rel.r_info >> 32; } in RelocSymbol64()

1234567891011