/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldCOFFThumb.h | 148 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 149 addRelocationForSymbol(RE, TargetName); in processRelocationRef() 162 RelocationEntry RE = in processRelocationRef() 165 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 169 RelocationEntry RE = in processRelocationRef() 172 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 176 RelocationEntry RE = in processRelocationRef() 178 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 182 RelocationEntry RE = in processRelocationRef() 184 addRelocationForSection(RE, TargetSectionI in processRelocationRef() 140 RelocationEntry RE = processRelocationRef() local 147 RelocationEntry RE = processRelocationRef() local 154 RelocationEntry RE = processRelocationRef() local 160 RelocationEntry RE = processRelocationRef() local 166 RelocationEntry RE = processRelocationRef() local 175 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, processRelocationRef() local 186 resolveRelocation(const RelocationEntry & RE,uint64_t Value) resolveRelocation() argument [all...] |
H A D | RuntimeDyldMachOAArch64.h | 34 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument 35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 36 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend() 37 unsigned NumBytes = 1 << RE.Size; in decodeAddend() 40 switch (RE.RelType) { in decodeAddend() 46 << getRelocName(RE.RelType); in decodeAddend() 58 << getRelocName(RE.RelType); in decodeAddend() 76 switch (RE.RelType) { in decodeAddend() 305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef() [all …]
|
H A D | RuntimeDyldMachOX86_64.h | 49 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 50 RE.Addend = memcpyAddend(RE); in processRelocationRef() 52 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() 58 if (!IsExtern && RE.IsPCRel) in processRelocationRef() 59 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef() 71 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef() 72 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef() 73 processGOTRelocation(RE, Value, Stubs); in processRelocationRef() 75 RE.Addend = Value.Offset; in processRelocationRef() 77 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef() [all …]
|
H A D | RuntimeDyldMachOARM.h | 62 Expected<int64_t> decodeAddend(const RelocationEntry &RE) const { in decodeAddend() argument 63 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 64 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in decodeAddend() 66 switch (RE.RelType) { in decodeAddend() 68 return memcpyAddend(RE); in decodeAddend() 159 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 160 if (auto AddendOrErr = decodeAddend(RE)) in processRelocationRef() 161 RE.Addend = *AddendOrErr; in processRelocationRef() 164 RE.IsTargetThumbFunc = TargetIsLocalThumbFunc; in processRelocationRef() 167 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() [all …]
|
H A D | RuntimeDyldCOFFI386.h | 105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 106 addRelocationForSymbol(RE, TargetName); in processRelocationRef() 116 RelocationEntry RE = in processRelocationRef() local 119 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 123 RelocationEntry RE = in processRelocationRef() local 125 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 129 RelocationEntry RE = in processRelocationRef() local 131 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 142 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument 143 const auto Section = Sections[RE in resolveRelocation() [all...] |
H A D | RuntimeDyldMachOI386.h | 66 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 67 RE.Addend = memcpyAddend(RE); in processRelocationRef() 69 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() 79 // if (IsExtern && RE.IsPCRel) { in processRelocationRef() 84 if (RE.IsPCRel) in processRelocationRef() 85 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef() 87 RE.Addend = Value.Offset; in processRelocationRef() 90 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef() 92 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 97 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument [all …]
|
H A D | RuntimeDyldCOFFAArch64.h | 129 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 130 resolveRelocation(RE, Section.getLoadAddressWithOffset(StubOffset)); in generateRelocationStub() 248 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef() 249 addRelocationForSymbol(RE, TargetName); in processRelocationRef() 251 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 252 addRelocationForSection(RE, TargetSectionID); in processRelocationRef() 257 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument 258 const auto Section = Sections[RE.SectionID]; in resolveRelocation() 259 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation() 260 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE in resolveRelocation() [all...] |
H A D | RuntimeDyldELFMips.cpp | 14 void RuntimeDyldELFMips::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument 16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation() 20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 21 RE.SymOffset, RE.SectionID); in resolveRelocation() 23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 24 RE.SymOffset, RE.SectionID); in resolveRelocation() 29 uint64_t RuntimeDyldELFMips::evaluateRelocation(const RelocationEntry &RE, in evaluateRelocation() argument 33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() 34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation() [all …]
|
/freebsd/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 252 static void add_dumpop(struct readelf *re, size_t si, const char *sn, int op, 294 static bool dump_ar(struct readelf *re, int); 295 static void dump_arm_attributes(struct readelf *re, uint8_t *p, uint8_t *pe); 296 static void dump_attributes(struct readelf *re); 298 static void dump_dwarf(struct readelf *re); 299 static void dump_dwarf_abbrev(struct readelf *re); 300 static void dump_dwarf_aranges(struct readelf *re); 301 static void dump_dwarf_block(struct readelf *re, uint8_t *b, 303 static void dump_dwarf_die(struct readelf *re, Dwarf_Die die, int level); 304 static void dump_dwarf_frame(struct readelf *re, int alt); [all …]
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 331 struct safe_ringentry *re = &sc->sc_ring[i]; in safe_attach() local 333 re->re_desc.d_sa = raddr + in safe_attach() 335 re->re_sa.sa_staterec = raddr + in safe_attach() 540 struct safe_ringentry *re = sc->sc_back; in safe_intr() local 544 safe_dump_request(sc, __func__, re); in safe_intr() 554 if (re->re_desc.d_csr != 0) { in safe_intr() 555 if (!SAFE_PE_CSR_IS_DONE(re->re_desc.d_csr)) in safe_intr() 557 if (!SAFE_PE_LEN_IS_DONE(re->re_desc.d_len)) in safe_intr() 560 safe_callback(sc, re); in safe_intr() 594 safe_feed(struct safe_softc *sc, struct safe_ringentry *re) in safe_feed() argument [all …]
|
/freebsd/lib/libc/regex/grot/ |
H A D | Makefile | 34 # Stuff that matters only if you're trying to lint the package. 45 re: $(OBJS) target 67 r: re tests 68 ./re <tests 69 ./re -el <tests 70 ./re -er <tests 72 ra: ./re tests 73 -./re <tests 74 -./re -el <tests 75 -./re -er <tests [all …]
|
/freebsd/lib/libc/locale/ |
H A D | nextwctype.c | 46 _RuneEntry *base, *re; in nextwctype_l() local 67 re = base + (lim >> 1); in nextwctype_l() 68 if (re->__min <= wc && wc <= re->__max) in nextwctype_l() 70 else if (wc > re->__max) { in nextwctype_l() 71 base = re + 1; in nextwctype_l() 79 if (re->__min <= wc && wc <= re->__max) { in nextwctype_l() 80 if (re->__types != NULL) { in nextwctype_l() 81 for (; wc <= re->__max; wc++) in nextwctype_l() 82 if (re->__types[wc - re->__min] & wct) in nextwctype_l() 84 } else if (re->__map & wct) in nextwctype_l() [all …]
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | list_test.c | 53 RE(atf_list_init(&list)); in ATF_TC_BODY() 74 RE(atf_list_init(&list)); in ATF_TC_BODY() 75 RE(atf_list_append(&list, &i1, false)); in ATF_TC_BODY() 76 RE(atf_list_append(&list, &i2, false)); in ATF_TC_BODY() 77 RE(atf_list_append(&list, &i3, false)); in ATF_TC_BODY() 98 RE(atf_list_init(&list)); in ATF_TC_BODY() 99 RE(atf_list_append(&list, &i1, false)); in ATF_TC_BODY() 100 RE(atf_list_append(&list, &i2, false)); in ATF_TC_BODY() 101 RE(atf_list_append(&list, &i3, false)); in ATF_TC_BODY() 116 RE(atf_list_init(&list)); in ATF_TC_BODY() [all …]
|
H A D | dynstr_test.c | 55 RE(atf_dynstr_init(&str)); in ATF_TC_BODY() 68 RE(atf_dynstr_init_ap(str, fmt, ap)); in init_fmt() 112 RE(atf_dynstr_init_fmt(&str, "String 1")); in ATF_TC_BODY() 116 RE(atf_dynstr_init_fmt(&str, "String %d", 2)); in ATF_TC_BODY() 120 RE(atf_dynstr_init_fmt(&str, "%s %d", "String", 3)); in ATF_TC_BODY() 124 RE(atf_dynstr_init_fmt(&str, "%s%s%s%s%s%s%s", "This ", "should ", in ATF_TC_BODY() 144 RE(atf_dynstr_init_raw(&str, src, 0)); in ATF_TC_BODY() 148 RE(atf_dynstr_init_raw(&str, src, 8)); in ATF_TC_BODY() 152 RE(atf_dynstr_init_raw(&str, src + 10, 8)); in ATF_TC_BODY() 156 RE(atf_dynstr_init_raw(&str, "String\0Lost", 11)); in ATF_TC_BODY() [all …]
|
H A D | map_test.c | 53 RE(atf_map_init(&map)); in ATF_TC_BODY() 63 RE(atf_map_init_charpp(&map, NULL)); in ATF_TC_BODY() 74 RE(atf_map_init_charpp(&map, array)); in ATF_TC_BODY() 86 RE(atf_map_init_charpp(&map, array)); in ATF_TC_BODY() 129 RE(atf_map_init(&map)); in ATF_TC_BODY() 130 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY() 131 RE(atf_map_insert(&map, "K2", val2, false)); in ATF_TC_BODY() 167 RE(atf_map_init(&map)); in ATF_TC_BODY() 168 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY() 169 RE(atf_map_insert(&map, "K2", val2, false)); in ATF_TC_BODY() [all …]
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_rx_edma.c | 200 * Re-initialise the FIFO given the current buffer contents. 207 struct ath_rx_edma *re = &sc->sc_rxedma[qtype]; in ath_edma_reinit_fifo() local 215 i = re->m_fifo_head; in ath_edma_reinit_fifo() 216 for (j = 0; j < re->m_fifo_depth; j++) { in ath_edma_reinit_fifo() 217 bf = re->m_fifo[i]; in ath_edma_reinit_fifo() 225 INCR(i, re->m_fifolen); in ath_edma_reinit_fifo() 229 if (i != re->m_fifo_tail) { in ath_edma_reinit_fifo() 233 re->m_fifo_tail); in ath_edma_reinit_fifo() 267 "%s: Re-initing HP FIFO\n", __func__); in ath_edma_startrecv() 270 "%s: Re-initing LP FIFO\n", __func__); in ath_edma_startrecv() [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-port-test.cc | 407 // Defines StringTypes as the list of all string types that class RE 413 // Tests RE's implicit constructors. 415 const RE empty(TypeParam("")); in TYPED_TEST() 418 const RE simple(TypeParam("hello")); in TYPED_TEST() 421 const RE normal(TypeParam(".*(\\w+)")); in TYPED_TEST() 425 // Tests that RE's constructors reject invalid regular expressions. 428 { const RE invalid(TypeParam("?")); }, in TYPED_TEST() 432 // Tests RE::FullMatch(). 434 const RE empty(TypeParam("")); in TYPED_TEST() 435 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty)); in TYPED_TEST() [all …]
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | regex.cppm |
|
/freebsd/contrib/mandoc/ |
H A D | test-rewb-bsd.c | 8 regex_t re; in main() local 10 if (regcomp(&re, "[[:<:]]word[[:>:]]", REG_EXTENDED | REG_NOSUB)) in main() 12 if (regexec(&re, "the word is here", 0, NULL, 0)) in main() 14 if (regexec(&re, "same word", 0, NULL, 0)) in main() 16 if (regexec(&re, "word again", 0, NULL, 0)) in main() 18 if (regexec(&re, "word", 0, NULL, 0)) in main() 20 if (regexec(&re, "wordy", 0, NULL, 0) != REG_NOMATCH) in main() 22 if (regexec(&re, "sword", 0, NULL, 0) != REG_NOMATCH) in main() 24 if (regexec(&re, "reworded", 0, NULL, 0) != REG_NOMATCH) in main()
|
H A D | test-rewb-sysv.c | 8 regex_t re; in main() local 10 if (regcomp(&re, "\\<word\\>", REG_EXTENDED | REG_NOSUB)) in main() 12 if (regexec(&re, "the word is here", 0, NULL, 0)) in main() 14 if (regexec(&re, "same word", 0, NULL, 0)) in main() 16 if (regexec(&re, "word again", 0, NULL, 0)) in main() 18 if (regexec(&re, "word", 0, NULL, 0)) in main() 20 if (regexec(&re, "wordy", 0, NULL, 0) != REG_NOMATCH) in main() 22 if (regexec(&re, "sword", 0, NULL, 0) != REG_NOMATCH) in main() 24 if (regexec(&re, "reworded", 0, NULL, 0) != REG_NOMATCH) in main()
|
/freebsd/contrib/nvi/regex/ |
H A D | regex.3 | 62 These routines implement POSIX 1003.2 regular expressions (``RE''s); 66 compiles an RE written as a string into an internal form, 74 of an RE. 110 so the ``RE'' is a literal string. 146 This flag permits inclusion of NULs in the RE; 164 contains the number of parenthesized subexpressions within the RE 173 matches the compiled RE pointed to by 183 The RE must have been compiled by a previous invocation of 187 so a single compiled RE can be used simultaneously by multiple threads. 229 for a discussion of what is matched in situations where an RE or a [all …]
|
/freebsd/lib/libc/regex/ |
H A D | regex.3 | 65 .Pq Do RE Dc Ns s ; 71 compiles an RE written as a string into an internal form, 79 of an RE. 128 .Dq RE 176 This flag permits inclusion of NULs in the RE; 207 contains the number of parenthesized subexpressions within the RE 220 matches the compiled RE pointed to by 230 The RE must have been compiled by a previous invocation of 234 so a single compiled RE can be used simultaneously by multiple threads. 319 for a discussion of what is matched in situations where an RE or a [all …]
|
/freebsd/contrib/tcsh/ |
H A D | csh-mode.el | 108 (defconst csh-case-default-re 112 (defconst csh-case-item-re "^\\s *\\(case .*\\|default\\):" 115 (defconst csh-end-re "^\\s *end\\b" 118 (defconst csh-endif-re "^\\s *endif\\b" 121 (defconst csh-endsw-re "^\\s *endsw\\b" 124 (defconst csh-else-re "^\\s *\\belse\\(\\b\\|$\\)" 127 (defconst csh-else-if-re "^\\s *\\belse if\\(\\b\\|$\\)" 130 (defconst csh-if-re "^\\s *if\\b.+\\(\\\\\\|\\bthen\\b\\)" 133 (defconst csh-iteration-keywords-re "^[^#\n]*\\s\"*\\b\\(while\\|foreach\\)\\b" 136 (defconst csh-keywords-re [all …]
|
/freebsd/usr.bin/m4/ |
H A D | gnum4.c | 249 exit_regerror(int er, regex_t *re, const char *source) in exit_regerror() argument 254 errlen = regerror(er, re, NULL, 0); in exit_regerror() 257 regerror(er, re, errbuf, errlen); in exit_regerror() 280 add_sub(int n, const char *string, regex_t *re, regmatch_t *pm) in add_sub() argument 282 if (n > (int)re->re_nsub) in add_sub() 297 add_replace(const char *string, regex_t *re, const char *replace, regmatch_t *pm) in add_replace() argument 303 add_sub(0, string, re, pm); in add_replace() 314 add_sub(0, string, re, pm); in add_replace() 321 add_sub(*(++p) - '0', string, re, pm); in add_replace() 330 do_subst(const char *string, regex_t *re, const char *source, in do_subst() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldMachO.cpp | 46 int64_t RuntimeDyldMachO::memcpyAddend(const RelocationEntry &RE) const { in memcpyAddend() 47 unsigned NumBytes = 1 << RE.Size; in memcpyAddend() 48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend() 61 MachO::any_relocation_info RE = in processScatteredVANILLA() local 65 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA() 66 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() 67 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA() 73 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA() 99 const RelocationEntry &RE, ObjSectionToIDMap &ObjSectionToID) { in getRelocationValueRef() argument 120 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef() [all …]
|