/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 | 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 | 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 | 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 | 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() 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 98 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation() [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 …]
|
H A D | RuntimeDyldCOFFX86_64.h | 67 // The target location for the relocation is described by RE.SectionID and 68 // RE.Offset. RE.SectionID can be used to find the SectionEntry. Each 84 // the symbol resides (RE.Addend provides additional information about the 87 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument 88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 89 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation() 91 switch (RE.RelType) { in resolveRelocation() 99 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation() 102 uint64_t Delta = 4 + (RE in resolveRelocation() [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 | fs_test.c | 133 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY() 151 RE(atf_fs_path_init_fmt(&str, "foo")); in ATF_TC_BODY() 152 RE(atf_fs_path_copy(&str2, &str)); in ATF_TC_BODY() 156 RE(atf_fs_path_append_fmt(&str2, "bar")); in ATF_TC_BODY() 191 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY() 231 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY() 271 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY() 272 RE(atf_fs_path_branch_path(&p, &bp)); in ATF_TC_BODY() 310 RE(atf_fs_path_init_fmt(&p, "%s", t->in)); in ATF_TC_BODY() 311 RE(atf_fs_path_leaf_name(&p, &ln)); 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 …]
|
H A D | test_helpers.c | 50 RE(atf_dynstr_init_fmt(&iflag, "-I%s", atf_env_get_with_default( in build_check_c_o() 58 RE(atf_check_build_c_o(path, "test.o", optargs, &success)); in build_check_c_o() 70 RE(atf_fs_path_init_fmt(&path, "%s/%s", in build_check_c_o_srcdir() 99 RE(atf_fs_path_init_fmt(path, "%s/%sprocess_helpers", in get_process_helpers_path() 115 RE(atf_tc_run(data->m_tc, data->m_resname)); in run_h_tc_child() 130 RE(atf_fs_path_init_fmt(&outpath, outname)); in run_h_tc() 131 RE(atf_fs_path_init_fmt(&errpath, errname)); in run_h_tc() 135 RE(atf_process_stream_init_redirect_path(&outb, &outpath)); in run_h_tc() 136 RE(atf_process_stream_init_redirect_path(&errb, &errpath)); in run_h_tc() 137 RE(atf_process_fork(&child, run_h_tc_child, &outb, &errb, &data)); in run_h_tc() [all …]
|
H A D | text_test.c | 145 RE(atf_text_for_each_word("1 2 3", " ", word_count, &cnt)); in ATF_TC_BODY() 146 RE(atf_text_for_each_word("1 2 3", " ", word_acum, acum)); in ATF_TC_BODY() 152 RE(atf_text_for_each_word("1 2 3", ".", word_count, &cnt)); in ATF_TC_BODY() 153 RE(atf_text_for_each_word("1 2 3", ".", word_acum, acum)); in ATF_TC_BODY() 159 RE(atf_text_for_each_word("1 2 3 4 5", " ", word_count, &cnt)); in ATF_TC_BODY() 160 RE(atf_text_for_each_word("1 2 3 4 5", " ", word_acum, acum)); in ATF_TC_BODY() 166 RE(atf_text_for_each_word("1 2.3.4 5", " .", word_count, &cnt)); in ATF_TC_BODY() 167 RE(atf_text_for_each_word("1 2.3.4 5", " .", word_acum, acum)); in ATF_TC_BODY() 337 RE(atf_text_to_bool("true", &b)); ATF_REQUIRE(b); in ATF_TC_BODY() 338 RE(atf_text_to_bool("TRUE", &b)); ATF_REQUIRE(b); in ATF_TC_BODY() [all …]
|
H A D | process_test.c | 127 RE(atf_process_stream_init_capture(&s->m_base.m_sb)); in capture_stream_init() 206 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd)); in connect_stream_init() 242 RE(atf_process_stream_init_inherit(&s->m_base.m_sb)); in inherit_stream_init() 333 RE(atf_process_stream_init_redirect_fd(&s->m_base.m_sb, s->m_fd)); in redirect_fd_stream_init() 368 RE(atf_fs_path_init_fmt(&s->m_path, "stdout")); in redirect_path_stream_init() 371 RE(atf_fs_path_init_fmt(&s->m_path, "stderr")); in redirect_path_stream_init() 378 RE(atf_process_stream_init_redirect_path(&s->m_base.m_sb, &s->m_path)); in redirect_path_stream_init() 424 RE(atf_process_fork(&child, child_print, outfs->m_sb_ptr, in do_fork() 430 RE(atf_process_child_wait(&child, &status)); in do_fork() 452 RE(atf_process_stream_init_capture(&sb)); in ATF_TC_BODY() [all …]
|
H A D | env_test.c | 96 RE(atf_text_format(&oldval, "%s", atf_env_get("PATH"))); in ATF_TC_BODY() 97 RE(atf_env_set("PATH", "foo-bar")); in ATF_TC_BODY() 103 RE(atf_env_set("_UNDEFINED_VARIABLE_", "foo2-bar2")); in ATF_TC_BODY() 116 RE(atf_env_unset("PATH")); in ATF_TC_BODY()
|
H A D | sanity_test.c | 101 RE(atf_process_stream_init_inherit(&outsb)); in do_test() 102 RE(atf_process_stream_init_capture(&errsb)); in do_test() 103 RE(atf_process_fork(&child, do_test_child, &outsb, &errsb, &td)); in do_test() 114 RE(atf_process_child_wait(&child, &status)); in do_test()
|
/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 …]
|
H A D | RuntimeDyldELF.cpp | 1034 void RuntimeDyldELF::resolveRelocation(const RelocationEntry &RE, in resolveRelocation() argument 1036 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 1037 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation() 1038 RE.SymOffset, RE.SectionID); in resolveRelocation() 1089 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation() local 1091 addRelocationForSymbol(RE, Value.SymbolName); in processSimpleRelocation() 1093 addRelocationForSection(RE, Value.SectionID); in processSimpleRelocation() 1162 RelocationEntry RE(SectionID, SourceOffset, RelI->getType(), Value.Addend); in resolveAArch64ShortBranch() local 1164 addRelocationForSymbol(RE, Value.SymbolName); in resolveAArch64ShortBranch() 1166 addRelocationForSection(RE, Value.SectionID); in resolveAArch64ShortBranch() [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-port-test.cc | 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() 428 { const RE invalid(TypeParam("?")); }, in TYPED_TEST() 434 const RE empty(TypeParam("")); in TYPED_TEST() 435 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty)); in TYPED_TEST() 436 EXPECT_FALSE(RE::FullMatch(TypeParam("a"), empty)); in TYPED_TEST() 438 const RE re(TypeParam("a.*z")); in TYPED_TEST() 439 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re)); in TYPED_TEST() 440 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re)); in TYPED_TEST() [all …]
|
/freebsd/contrib/atf/atf-c/ |
H A D | check_test.c | 59 RE(atf_check_exec_array(argv, r)); in do_exec() 79 RE(atf_check_exec_array(argv, r)); in do_exec_with_arg() 112 RE(atf_check_build_c_o("test.c", "test.o", NULL, &success)); in ATF_TC_BODY() 130 RE(atf_check_build_c_o("test.c", "test.o", NULL, &success)); in ATF_TC_BODY() 145 RE(atf_fs_path_init_fmt(&test_p, "test.p")); in ATF_TC_BODY() 153 RE(atf_check_build_cpp("test.c", atf_fs_path_cstring(&test_p), NULL, in ATF_TC_BODY() 174 RE(atf_check_build_cpp("test.c", "test.p", NULL, &success)); in ATF_TC_BODY() 192 RE(atf_check_build_cxx_o("test.cpp", "test.o", NULL, &success)); in ATF_TC_BODY() 210 RE(atf_check_build_cxx_o("test.cpp", "test.o", NULL, &success)); in ATF_TC_BODY() 225 RE(atf_tc_init_pack(tc, tcpack, config)); in init_and_run_h_tc() [all …]
|
H A D | tc_test.c | 65 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY() 71 RE(atf_tc_init(&tc, "test2", ATF_TC_HEAD_NAME(test_var), in ATF_TC_BODY() 99 RE(atf_tc_init_pack(&tc, &tcp1, NULL)); in ATF_TC_BODY() 104 RE(atf_tc_init_pack(&tc, &tcp2, NULL)); in ATF_TC_BODY() 120 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY() 123 RE(atf_tc_set_md_var(&tc, "test-var", "Test value")); in ATF_TC_BODY() 141 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY() 147 RE(atf_tc_init(&tc, "test1", ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
|
H A D | build_test.c | 98 RE(atf_env_set(var, val)); in verbose_set_env() 167 RE(atf_build_c_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() 170 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY() 195 RE(atf_build_cpp(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() 198 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY() 224 RE(atf_build_cxx_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() 227 RE(atf_build_cxx_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY()
|
/freebsd/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-port.h | 980 class GTEST_API_ RE { 982 RE(absl::string_view regex) : regex_(regex) {} // NOLINT in RE() function 983 RE(const char* regex) : RE(absl::string_view(regex)) {} // NOLINT in RE() function 984 RE(const std::string& regex) : RE(absl::string_view(regex)) {} // NOLINT in RE() function 985 RE(const RE& other) : RE(other.pattern()) {} in RE() function 989 static bool FullMatch(absl::string_view str, const RE& re) { in FullMatch() 992 static bool PartialMatch(absl::string_view str, const RE& re) { in PartialMatch() 1006 class GTEST_API_ RE { 1010 RE(const RE& other) { Init(other.pattern()); } in RE() function 1013 RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT in RE() function [all …]
|