Home
last modified time | relevance | path

Searched refs:replace (Results 1 – 25 of 844) sorted by relevance

12345678910>>...34

/llvm-project/libcxx/docs/Helpers/
H A DStyles.rst29 .. |Not Started| replace:: :notstarted:`Not Started`
30 .. |Nothing To Do| replace:: :nothingtodo:`Nothing To Do`
31 .. |In Progress| replace:: :inprogress:`In Progress`
32 .. |Review| replace:: :inreview:`Review`
33 .. |Partial| replace:: :partial:`Partial`
34 .. |Complete| replace:: :complete:`Complete`
/llvm-project/llvm/test/tools/llvm-lipo/
H A Dreplace-invalid-input.test5 # RUN: not llvm-lipo %t-universal.o -replace %t-32.o 2>&1 | FileCheck --check-prefix=MISSING_ARG %s
6 # MISSING_ARG: error: missing argument to -replace option
8 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-32.o 2>&1 | FileCheck --check-prefix=OUTPUT_FI…
9 # OUTPUT_FILE: error: replace expects a single output file to be specified
11 # RUN: not llvm-lipo %t-universal.o %t-universal.o -replace i386 %t-32.o -o %t.o 2>&1 | FileCheck -…
12 # INPUT_ARGS: error: replace expects a single input file
14 # RUN: not llvm-lipo %t-universal.o -replace i386 %t-33.o -o %t.o 2>&1 | FileCheck -DMSG=%errc_ENO…
17 # RUN: not llvm-lipo %t-universal.o -replace i3866 %t-32.o -o %t.o 2>&1 | FileCheck --check-prefix=…
20 # RUN: not llvm-lipo %t-universal.o -replace arm64 %t-32.o -o %t.o 2>&1 | FileCheck --check-prefix=…
23 # RUN: not llvm-lipo %t-universal.o -replace arm64 %t-arm64.o -o %t.o 2>&1 | FileCheck --check-pref…
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/
H A Dreplace_filename.pass.cpp34 path replace; in test_replace_filename_method() local
35 static_assert(noexcept(e.replace_filename(replace)) == false, in test_replace_filename_method()
38 std::is_same<decltype(e.replace_filename(replace)), void>::value, in test_replace_filename_method()
43 const path replace("bar.out"); in test_replace_filename_method() local
47 e.replace_filename(replace); in test_replace_filename_method()
58 path replace; in test_replace_filename_ec_method() local
60 static_assert(noexcept(e.replace_filename(replace, ec)) == false, in test_replace_filename_ec_method()
63 std::is_same<decltype(e.replace_filename(replace, ec)), void>::value, in test_replace_filename_ec_method()
68 const path replace("bar.out"); in test_replace_filename_ec_method() local
73 e.replace_filename(replace, ec); in test_replace_filename_ec_method()
[all …]
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges.replace.pass.cpp37 concept HasReplaceIt = requires(Iter iter, Sent sent) { std::ranges::replace(iter, sent, 0, 0); };
49 concept HasReplaceR = requires(Range range) { std::ranges::replace(range, 0, 0); };
72 …std::same_as<Iter> decltype(auto) ret = std::ranges::replace(Iter(a.data()), Sent(Iter(a.data() + … in test()
81 std::same_as<Iter> decltype(auto) ret = std::ranges::replace(range, d.oldval, d.newval); in test()
117 std::ranges::replace(a, a + 4, 3, S{0}, &S::i); in test()
121 std::ranges::replace(a, 3, S{0}, &S::i); in test()
134 auto ret = std::ranges::replace(std::begin(a), std::end(a), S{1}, S{2}, &S::identity); in test()
139 auto ret = std::ranges::replace(a, S{1}, S{2}, &S::identity); in test()
147 auto ret = std::ranges::replace(std::begin(a), std::end(a), '\0', 2ull); in test()
152 auto ret = std::ranges::replace(a, '\0', 2ull); in test()
[all …]
H A Dpstl.replace.pass.cpp32 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
38 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
43 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
48 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
54 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
60 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 9); in operator ()()
67 std::replace(policy, Iter(std::data(a)), Iter(std::data(a) + std::size(a)), 3, 6); in operator ()()
/llvm-project/mlir/lib/Bindings/Python/
H A DMainModule.cpp46 "replace"_a = false, in PYBIND11_MODULE()
67 [](const nb::type_object &dialectClass, bool replace) -> nb::object { in PYBIND11_MODULE()
70 replace](nb::type_object opClass) -> nb::type_object { in PYBIND11_MODULE()
74 replace); in PYBIND11_MODULE()
81 "dialect_class"_a, nb::kw_only(), "replace"_a = false, in PYBIND11_MODULE()
86 [](MlirTypeID mlirTypeID, bool replace) -> nb::object { in PYBIND11_MODULE()
87 return nb::cpp_function([mlirTypeID, replace]( in PYBIND11_MODULE()
89 PyGlobals::get().registerTypeCaster(mlirTypeID, typeCaster, replace); in PYBIND11_MODULE()
93 "typeid"_a, nb::kw_only(), "replace"_a = false, in PYBIND11_MODULE()
97 [](MlirTypeID mlirTypeID, bool replace) in PYBIND11_MODULE()
71 __anonf91e54d50402(const py::object &dialectClass, bool replace) PYBIND11_MODULE() argument
90 __anonf91e54d50602(MlirTypeID mlirTypeID, bool replace) PYBIND11_MODULE() argument
101 __anonf91e54d50802(MlirTypeID mlirTypeID, bool replace) PYBIND11_MODULE() argument
[all...]
H A DIRModule.cpp74 nb::callable pyFunc, bool replace) { in registerAttributeBuilder()
77 if (found && !replace) { in registerAttributeBuilder()
88 nb::callable typeCaster, bool replace) { in registerTypeCaster()
91 if (found && !replace) in registerValueCaster()
98 nb::callable valueCaster, bool replace) { in registerValueCaster()
101 if (found && !replace) in registerDialectImpl()
120 nb::object pyClass, bool replace) { in registerOperationImpl()
123 if (found && !replace) {
69 registerAttributeBuilder(const std::string & attributeKind,py::function pyFunc,bool replace) registerAttributeBuilder() argument
83 registerTypeCaster(MlirTypeID mlirTypeID,pybind11::function typeCaster,bool replace) registerTypeCaster() argument
93 registerValueCaster(MlirTypeID mlirTypeID,pybind11::function valueCaster,bool replace) registerValueCaster() argument
113 registerOperationImpl(const std::string & operationName,py::object pyClass,bool replace) registerOperationImpl() argument
/llvm-project/polly/lib/Support/
H A DGICHelper.cpp137 static void replace(std::string &str, StringRef find, StringRef replace) { in ISL_C_OBJECT_TO_STRING()
140 str.replace(pos, find.size(), replace); in ISL_C_OBJECT_TO_STRING()
141 pos += replace.size(); in ISL_C_OBJECT_TO_STRING()
146 llvm::replace(str, '.', '_'); in makeIslCompatible()
147 llvm::replace(str, '\"', '_'); in makeIslCompatible()
148 replace(str, StringRef(" "), StringRef("__")); in makeIslCompatible()
149 replace(str, StringRef("=>"), StringRef("TO")); in makeIslCompatible()
150 llvm::replace(st in makeIslCompatible()
[all...]
/llvm-project/mlir/python/mlir/dialects/
H A Dpdl.py25 @_ods_cext.register_operation(_Dialect, replace=True)
42 @_ods_cext.register_operation(_Dialect, replace=True)
58 @_ods_cext.register_operation(_Dialect, replace=True)
74 @_ods_cext.register_operation(_Dialect, replace=True)
108 @_ods_cext.register_operation(_Dialect, replace=True)
133 @_ods_cext.register_operation(_Dialect, replace=True)
154 @_ods_cext.register_operation(_Dialect, replace=True)
171 @_ods_cext.register_operation(_Dialect, replace=True)
204 @_ods_cext.register_operation(_Dialect, replace=True)
215 @_ods_cext.register_operation(_Dialect, replace=True)
/llvm-project/mlir/python/mlir/dialects/transform/
H A D__init__.py24 @_ods_cext.register_operation(_Dialect, replace=True)
37 @_ods_cext.register_operation(_Dialect, replace=True)
54 @_ods_cext.register_operation(_Dialect, replace=True)
80 @_ods_cext.register_operation(_Dialect, replace=True)
98 @_ods_cext.register_operation(_Dialect, replace=True)
117 @_ods_cext.register_operation(_Dialect, replace=True)
169 @_ods_cext.register_operation(_Dialect, replace=True)
203 @_ods_cext.register_operation(_Dialect, replace=True)
H A Dstructured.py32 @_ods_cext.register_operation(_Dialect, replace=True)
69 @_ods_cext.register_operation(_Dialect, replace=True)
78 @_ods_cext.register_operation(_Dialect, replace=True)
143 @_ods_cext.register_operation(_Dialect, replace=True)
214 @_ods_cext.register_operation(_Dialect, replace=True)
223 @_ods_cext.register_operation(_Dialect, replace=True)
245 @_ods_cext.register_operation(_Dialect, replace=True)
306 @_ods_cext.register_operation(_Dialect, replace=True)
352 @_ods_cext.register_operation(_Dialect, replace=True)
412 @_ods_cext.register_operation(_Dialect, replace
[all...]
/llvm-project/lld/test/ELF/lto/
H A Dthinlto-prefix-replace.ll2 ; Check that changing the output path via thinlto-prefix-replace works
9 ; RUN: ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-prefix-replace="%t/oldpath/;%t/n…
14 ; RUN: ld.lld --thinlto-index-only --thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -shared %t/ol…
17 ; Ensure that lld generates error if prefix replace option does not have 'old;new' format.
19 ; RUN: not ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-prefix-replace=abc:def -shar…
20 ; ERR: --plugin-opt=thinlto-prefix-replace= expects 'old;new' format, but got abc:def
H A Dthinlto-object-suffix-replace.ll2 ;; Test to make sure the thinlto-object-suffix-replace option is handled
20 ; RUN: ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-object-suffix-replace=".thinlink…
24 ; RUN: ld.lld --thinlto-index-only --thinlto-object-suffix-replace=".thinlink.bc;.o" \
28 ;; Ensure lld generates error if object suffix replace option does not have 'old;new' format
30 ; RUN: not ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-object-suffix-replace="abc:d…
32 ; ERR1: --plugin-opt=thinlto-object-suffix-replace= expects 'old;new' format, but got abc:def
37 ; RUN: ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-object-suffix-replace=".abc;.o" …
H A Dthinlto-index-file-object-prefix-replace.ll18 ;; Check that this also works with thinlto-prefix-replace.
19 ; RUN: ld.lld --thinlto-index-only=2.txt --thinlto-prefix-replace="old/;new/" -shared old/subdir/1.…
29 ; RUN: ld.lld --thinlto-index-only=3.txt --thinlto-prefix-replace="old/;new/;obj/" -shared old/subd…
38 …error if prefix replace option have 'old;new;obj' format but index file is not set. Ensure that th…
39 ; RUN: not ld.lld --thinlto-prefix-replace="old/;new/;obj/" -shared old/subdir/1.o old/subdir/2.o o…
40 ; ERROR: error: --thinlto-prefix-replace=old_dir;new_dir;obj_dir must be used with --thinlto-index-…
/llvm-project/mlir/test/mlir-pdll/CodeGen/MLIR/
H A Dexpr.pdll23 // CHECK: replace %[[ROOT]] with(%[[RESULTS]] : !pdl.range<value>)
25 Pattern TestCallWithArgsAndReturn => replace root: Op with TestRewrite(op<test.op>);
33 // CHECK: replace %[[ROOT]] with(%[[RESULTS]] : !pdl.range<value>)
35 Pattern TestExternalCall => replace root: Op with TestRewrite(root);
107 // CHECK: replace %[[FIRST]] with %[[SECOND]]
112 replace tuple.0 with tuple.1;
121 // CHECK: replace %[[FIRST]] with %[[SECOND]]
126 replace tuple.first with tuple.second;
145 replace op<>(arg: Value, args: ValueRange) -> (type: Type, types: TypeRange)
/llvm-project/clang/tools/scan-build-py/lib/libscanbuild/resources/
H A Dsorttable.js103 this.className = this.className.replace('sorttable_sorted',
118 this.className = this.className.replace('sorttable_sorted_reverse',
135 cell.className.replace('sorttable_sorted_reverse', '');
136 cell.className = cell.className.replace('sorttable_sorted', '');
228 return node.textContent.replace(/^\s+|\s+$/g, '');
230 return node.innerText.replace(/^\s+|\s+$/g, '');
232 return node.text.replace(/^\s+|\s+$/g, '');
237 return node.value.replace(/^\s+|\s+$/g, '');
240 return node.nodeValue.replace(/^\s+|\s+$/g, '');
248 return innerText.replace(/^\s+|\s+$/g, '');
[all …]
/llvm-project/clang/tools/scan-build-py/libscanbuild/resources/
H A Dsorttable.js98 this.className = this.className.replace('sorttable_sorted',
111 this.className = this.className.replace('sorttable_sorted_reverse',
125 cell.className = cell.className.replace('sorttable_sorted_reverse','');
126 cell.className = cell.className.replace('sorttable_sorted','');
213 return node.textContent.replace(/^\s+|\s+$/g, '');
216 return node.innerText.replace(/^\s+|\s+$/g, '');
219 return node.text.replace(/^\s+|\s+$/g, '');
225 return node.value.replace(/^\s+|\s+$/g, '');
228 return node.nodeValue.replace(/^\s+|\s+$/g, '');
236 return innerText.replace(/^\s+|\s+$/g, '');
[all …]
/llvm-project/clang/test/utils/update_cc_test_checks/
H A Dreplace-value-regex-across-runs.test1 # Test that --replace-value-regex is applied correctly when multiple RUN lines
4 RUN: cp %S/Inputs/replace-value-regex-across-runs.c %t.c
6 RUN: --replace-value-regex '__omp_offloading_[0-9a-z]+_[0-9a-z]+'
7 RUN: diff -u %S/Inputs/replace-value-regex-across-runs.c.expected %t.c
/llvm-project/clang/tools/scan-build/share/scan-build/
H A Dsorttable.js98 this.className = this.className.replace('sorttable_sorted',
111 this.className = this.className.replace('sorttable_sorted_reverse',
125 cell.className = cell.className.replace('sorttable_sorted_reverse','');
126 cell.className = cell.className.replace('sorttable_sorted','');
213 return node.textContent.replace(/^\s+|\s+$/g, '');
216 return node.innerText.replace(/^\s+|\s+$/g, '');
219 return node.text.replace(/^\s+|\s+$/g, '');
225 return node.value.replace(/^\s+|\s+$/g, '');
228 return node.nodeValue.replace(/^\s+|\s+$/g, '');
236 return innerText.replace(/^\s+|\s+$/g, '');
[all …]
/llvm-project/lld/test/MachO/
H A Dthinlto-prefix-replace.ll3 ;; Check that changing the output path via thinlto-prefix-replace works
10 ; RUN: %lld --thinlto-index-only --thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -dylib %t/oldpa…
13 ;; Ensure that lld generates error if prefix replace option does not have 'old;new' format.
15 ; RUN: not %lld --thinlto-index-only --thinlto-prefix-replace=abc:def -dylib %t/oldpath/thinlto_pre…
16 ; ERR: --thinlto-prefix-replace= expects 'old;new' format, but got abc:def
H A Dthinlto-object-suffix-replace.ll2 ;; Test to make sure the thinlto-object-suffix-replace option is handled
20 ; RUN: %lld --thinlto-index-only --thinlto-object-suffix-replace=".thinlink.bc;.o" \
24 ;; Ensure lld generates error if object suffix replace option does not have 'old;new' format
26 ; RUN: not %lld --thinlto-index-only --thinlto-object-suffix-replace="abc:def" -dylib 1.thinlink.bc…
28 ; ERR1: --thinlto-object-suffix-replace= expects 'old;new' format, but got abc:def
33 ; RUN: %lld --thinlto-index-only --thinlto-object-suffix-replace=".abc;.o" -dylib 1.thinlink.bc -o …
/llvm-project/lld/test/COFF/
H A Dthinlto-prefix-replace.ll2 ; Check that changing the output path via thinlto-prefix-replace works
10 ; RUN: -thinlto-prefix-replace:"%t/oldpath/;%t/newpath/" %t/oldpath/t.obj \
14 ; Ensure that lld errors if prefix replace option is not in 'old;new' format.
17 ; RUN: -thinlto-prefix-replace:"abc:def" %t/oldpath/t.obj \
19 ; ERR: -thinlto-prefix-replace: expects 'old;new' format, but got abc:def
H A Dthinlto-object-suffix-replace.ll3 ; Test to make sure the thinlto-object-suffix-replace option is handled
21 ; RUN: -thinlto-object-suffix-replace:".thinlink.bc;.obj" \
25 ; Ensure lld generates error if suffix replace option not in 'old;new' format.
28 ; RUN: -thinlto-object-suffix-replace:"abc:def" %t1.thinlink.bc \
30 ; ERR1: -thinlto-object-suffix-replace: expects 'old;new' format, but got abc:def
36 ; RUN: -thinlto-object-suffix-replace:".abc;.obj" %t1.thinlink.bc -out:%t3.exe
/llvm-project/llvm/test/CodeGen/X86/
H A Dswitch-phi-const.ll52 ; We should replace 1 with %x
58 ; We should replace 5 with %x
64 ; We should replace 13 with %x
70 ; We should replace 42 with %x
76 ; We must not replace any of the PHI arguments!
141 ; We should replace 1 with %x
147 ; We should replace 5 with %x
153 ; We should replace 13 with %x
159 ; We should replace 42 with %x
165 ; We must not replace any of the PHI arguments! (3898 == 0xf00 + 55)
/llvm-project/clang-tools-extra/clang-tidy/llvm/
H A DHeaderGuardCheck.cpp45 Guard = Guard.replace(PosLLVMProject, LLVMProject.size(), "/llvm/"); in getHeaderGuard()
52 std::replace(Guard.begin(), Guard.end(), '/', '_'); in getHeaderGuard()
53 std::replace(Guard.begin(), Guard.end(), '.', '_'); in getHeaderGuard()
54 std::replace(Guard.begin(), Guard.end(), '-', '_'); in getHeaderGuard()

12345678910>>...34