| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | MarkupTests.cpp | 19 std::string escape(llvm::StringRef Text) { in escape() function 71 EXPECT_THAT(escape("- foo"), escaped('-')); in TEST() 72 EXPECT_THAT(escape("* foo"), escaped('*')); in TEST() 73 EXPECT_THAT(escape("+ foo"), escaped('+')); in TEST() 74 EXPECT_THAT(escape("+"), escaped('+')); in TEST() 76 EXPECT_THAT(escape("a+ foo"), escapedNone()); in TEST() 77 EXPECT_THAT(escape("1. foo"), escaped('.')); in TEST() 81 EXPECT_EQ(escape("*foo*"), R"(\*foo\*)"); in TEST() 83 EXPECT_THAT(escape("*foo"), escaped('*')); in TEST() 84 EXPECT_THAT(escape("foo *"), escapedNone()); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | temp_arg_string_printing.cpp | 38 new ASCII<"escape\0">; in narrow() 39 // CHECK{LITERAL}: ASCII<{"escape\r\n"}> in narrow() 40 new ASCII<"escape\r\n">; in narrow() 41 // CHECK{LITERAL}: ASCII<{"escape\\\t\f\v"}> in narrow() 42 new ASCII<"escape\\\t\f\v">; in narrow() 43 // CHECK{LITERAL}: ASCII<{"escape\a\bc"}> in narrow() 44 new ASCII<"escape\a\b\c">; in narrow() 92 new ASCII<u8"escape\0">; in utf8() 94 new ASCII<u8"escape\r\n">; in utf8() 122 new ASCII<U"escape\0">; [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.nonmem/ |
| H A D | quoted.pass.cpp | 69 void round_trip_e ( const char *p, char escape ) { in round_trip_e() argument 73 ss << std::quoted(sv, '"', escape ); in round_trip_e() 75 ss >> std::quoted(s, '"', escape ); in round_trip_e() 81 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument 83 ss << std::quoted(p, delim, escape); in quote() 93 ss >> std::quoted(s, delim, escape); in unquote() 134 void round_trip_e ( const wchar_t *p, wchar_t escape ) { in round_trip_e() argument 138 ss << std::quoted(sv, wchar_t('"'), escape ); in round_trip_e() 140 ss >> std::quoted(s, wchar_t('"'), escape ); in round_trip_e() 149 ss << std::quoted(sv, delim, escape); in quote() [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Bufferization/ |
| H A D | invalid.mlir | 30 // expected-error @+1{{'bufferization.escape' is expected to be a bool array attribute}} 31 %0 = bufferization.alloc_tensor(%sz) {bufferization.escape = 5} : tensor<?xf32> 38 // expected-error @+1{{'bufferization.escape' has wrong number of elements, expected 1, got 2}} 39 %0 = bufferization.alloc_tensor(%sz) {bufferization.escape = [true, false]} : tensor<?xf32> 46 // expected-error @+1{{'bufferization.escape' only valid for allocation results}} 47 …%0 = tensor.extract_slice %t0[0][5][1] {bufferization.escape = [true]} : tensor<?xf32> to tensor<5… 54 // expected-error @+1{{'bufferization.escape' only valid on bufferizable ops}} 55 %0 = memref.cast %m0 {bufferization.escape = [true]} : memref<?xf32> to memref<10xf32> 64 // expected-error @+1{{sparse tensor allocation should not escape function}} 76 // expected-error @+1{{sparse tensor allocation should not escape function}}
|
| /llvm-project-15.0.7/mlir/test/Dialect/Bufferization/Transforms/ |
| H A D | tensor-copy-insertion.mlir | 12 …// CHECK: %[[copy:.*]] = bufferization.alloc_tensor() copy(%[[t]]) {bufferization.escape = [false]… 13 …// CHECK-FUNC: bufferization.alloc_tensor() copy(%{{.*}}) {bufferization.escape = [true]} : tensor… 14 …// CHECK-NO-DEALLOC: bufferization.alloc_tensor() copy(%{{.*}}) {bufferization.escape = [true]} : … 27 // CHECK: bufferization.alloc_tensor() {bufferization.escape = [false]} : tensor<5xf32> 28 // CHECK-FUNC: bufferization.alloc_tensor() {bufferization.escape = [true]} : tensor<5xf32> 29 // CHECK-NO-DEALLOC: bufferization.alloc_tensor() {bufferization.escape = [true]} : tensor<5xf32> 41 // CHECK: bufferization.alloc_tensor() {bufferization.escape = [false]} : tensor<5xf32> 43 …// CHECK: bufferization.alloc_tensor() {bufferization.escape = [false], memory_space = 0 : ui64} :… 45 // CHECK-NO-DEALLOC: bufferization.alloc_tensor() {bufferization.escape = [true]} : tensor<5xf32> 46 …// CHECK-NO-DEALLOC: bufferization.alloc_tensor() {bufferization.escape = [true], memory_space = 0… [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/SparseTensor/ |
| H A D | one_shot_bufferize_tensor_copy_insertion.mlir | 12 // CHECK: bufferization.alloc_tensor() {bufferization.escape = [false]} 13 // CHECK-FUNC: bufferization.alloc_tensor() {bufferization.escape = [true]} 23 // CHECK: sparse_tensor.new {{.*}} {bufferization.escape = [false]} 24 // CHECK-FUNC: sparse_tensor.new {{.*}} {bufferization.escape = [true]} 32 // CHECK: %[[alloc:.*]] = bufferization.alloc_tensor() {bufferization.escape = [false]} 33 // CHECK-FUNC: %[[alloc:.*]] = bufferization.alloc_tensor() {bufferization.escape = [false]} 38 // CHECK: sparse_tensor.convert %[[loaded]] {bufferization.escape = [false]} 39 // CHECK-FUNC: sparse_tensor.convert %[[loaded]] {bufferization.escape = [true]} 61 …// CHECK: %[[alloc:.*]] = bufferization.alloc_tensor() copy(%[[argb]]) {bufferization.escape = [fa… 63 …// CHECK-FUNC: %[[alloc:.*]] = bufferization.alloc_tensor() copy(%[[argb]]) {bufferization.escape …
|
| /llvm-project-15.0.7/mlir/test/Dialect/SCF/ |
| H A D | one-shot-bufferize-tensor-copy-insertion.mlir | 10 …// CHECK: %[[A_copy:.*]] = bufferization.alloc_tensor() copy(%[[A]]) {bufferization.escape = [fals… 11 …// CHECK: %[[B_copy:.*]] = bufferization.alloc_tensor() copy(%[[B]]) {bufferization.escape = [fals… 31 …// CHECK: %[[A_copy:.*]] = bufferization.alloc_tensor() copy(%[[A]]) {bufferization.escape = [fals… 32 …// CHECK: %[[B_copy:.*]] = bufferization.alloc_tensor() copy(%[[B]]) {bufferization.escape = [fals… 54 …// CHECK: %[[A_copy:.*]] = bufferization.alloc_tensor() copy(%[[A]]) {bufferization.escape = [fals… 55 …// CHECK: %[[B_copy:.*]] = bufferization.alloc_tensor() copy(%[[B]]) {bufferization.escape = [fals… 85 …// CHECK: %[[A_copy:.*]] = bufferization.alloc_tensor() copy(%[[A]]) {bufferization.escape = [fals… 86 …// CHECK: %[[B_copy:.*]] = bufferization.alloc_tensor() copy(%[[B]]) {bufferization.escape = [fals… 93 …// CHECK-DAG: %[[yield0:.*]] = bufferization.alloc_tensor() copy(%[[w1]]) {bufferization.escape = … 94 …// CHECK-DAG: %[[yield1:.*]] = bufferization.alloc_tensor() copy(%[[w0]]) {bufferization.escape = … [all …]
|
| /llvm-project-15.0.7/polly/test/ScopInfo/ |
| H A D | reduction_escaping_intermediate_2.ll | 3 ; void f(int N, int * restrict sums, int * restrict escape) { 8 ; escape[N-j] = escape[i] + sums[i-1]; 18 ; CHECK: escape 22 ; CHECK: escape 25 define void @f(i32 %N, i32* noalias %sums, i32* noalias %escape) { 47 %arrayidx4 = getelementptr inbounds i32, i32* %escape, i32 %i.0 55 %arrayidx9 = getelementptr inbounds i32, i32* %escape, i32 %add8
|
| H A D | reduction_escaping_intermediate.ll | 3 ; void f(int N, int * restrict sums, int * restrict escape) { 8 ; escape[N - i + j] = sums[i]; 18 ; CHECK: escape 21 define void @f(i32 %N, i32* noalias %sums, i32* noalias %escape) { 45 %arrayidx6 = getelementptr inbounds i32, i32* %escape, i32 %add5
|
| /llvm-project-15.0.7/llvm/test/Transforms/GVN/ |
| H A D | nonescaping.ll | 10 declare void @escape(i8*) 15 ; CHECK-NEXT: call void @escape(i8* [[OBJ]]) 22 call void @escape(i8* %obj) 29 ; CHECK-NEXT: call void @escape(i8* [[OBJ]]) 36 call void @escape(i8* %obj) 43 ; CHECK-NEXT: call void @escape(i8* [[OBJ]]) 50 call void @escape(i8* %obj)
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | stmtexpr-init.c | 3 void escape(const void *); 9 escape(x); in T1() 35 escape(A); in T2() 36 escape(&X); in T2()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/ |
| H A D | invoke_unwind_lifetime.ll | 7 declare void @escape(i32*) 20 ; CHECK-NEXT: call void @escape(i32* [[I0]]) 24 ; CHECK-NEXT: call void @escape(i32* [[I2]]) 28 ; CHECK-NEXT: call void @escape(i32* [[I4]]) 32 ; CHECK-NEXT: call void @escape(i32* [[I6]]) 45 call void @escape(i32* %i0) 50 call void @escape(i32* %i2) 55 call void @escape(i32* %i4) 60 call void @escape(i32* %i6)
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | no-escape.m | 1 // RUN: %check_clang_tidy %s bugprone-no-escape %t -- -- -Wno-int-conversion 2 // RUN: %check_clang_tidy %s -assume-filename=bugprone-no-escape.c bugprone-no-escape %t -- -- -fbl… 15 … 'p' with attribute 'noescape' is captured by an asynchronously-executed block [bugprone-no-escape] 21 … 'p' with attribute 'noescape' is captured by an asynchronously-executed block [bugprone-no-escape]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | live-debug-vars-dse.mir | 4 # void escape(int *); 7 # escape(&x); 11 # escape(&x); 18 # CHECK: callq escape 23 # CHECK: callq escape 38 declare void @escape(i32*) 46 call void @escape(i32* %x.addr), !dbg !15 51 call void @escape(i32* %x.addr), !dbg !19 135 …CALL64pcrel32 @escape, csr_win64, implicit $rsp, implicit $ssp, implicit $rcx, implicit-def $rsp, … 143 …CALL64pcrel32 @escape, csr_win64, implicit $rsp, implicit $ssp, implicit $rcx, implicit-def $rsp, …
|
| H A D | dbg-addr-dse.ll | 12 ; void escape(int *); 15 ; escape(&x); 19 ; escape(&x); 29 declare void @escape(i32*) 39 call void @escape(i32* %x.addr), !dbg !19 44 call void @escape(i32* %x.addr), !dbg !24 51 ; ASM: callq escape 56 ; ASM: callq escape
|
| H A D | live-debug-vars-intervals.mir | 6 # void escape(int *); 9 # escape(&x); 13 # escape(&x); 47 declare void @escape(i32*) 54 call void @escape(i32* %x.addr), !dbg !12 59 call void @escape(i32* %x.addr), !dbg !12 68 call void @escape(i32* %x.addr) 73 call void @escape(i32* %x.addr) 115 …CALL64pcrel32 @escape, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit-def $rsp, imp… 143 …CALL64pcrel32 @escape, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit-def $rsp, imp… [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/PowerPC/ |
| H A D | aix-vector-attr-aligned.c | 13 int escape(vector int*); 17 return escape(&l32); in local32() 22 return escape(&l8); in local8()
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llgdb-tests/ |
| H A D | asan-deque.cpp | 19 static void __attribute__((noinline, optnone)) escape(log_t &log) { in escape() function 28 escape(log); in main() 33 escape(log); in main()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | long-double-abi-align.ll | 63 ; LINUX-NEXT: calll escape@PLT 66 ; LINUX-NEXT: calll escape@PLT 69 ; LINUX-NEXT: calll escape@PLT 95 call void @escape(ptr nonnull %4) 96 call void @escape(ptr nonnull %5) 97 call void @escape(ptr nonnull %6) 101 declare void @escape(ptr)
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter-tests/ |
| H A D | asan-deque.cpp | 27 static void __attribute__((noinline, optnone)) escape(deq_t &deq) { in escape() function 36 escape(deq); // DexLabel('first') in main() 40 escape(deq); // DexLabel('second') in main()
|
| /llvm-project-15.0.7/mlir/python/mlir/dialects/ |
| H A D | _bufferization_ops_ext.py | 22 escape: BoolAttr, 29 if escape: 30 attributes["escape"] = escape
|
| /llvm-project-15.0.7/llvm/test/CodeGen/MIR/Generic/ |
| H A D | cfi-escape.mir | 3 # Check that we don't print a trailing comma for CFI escape indices, and that 10 CFI_INSTRUCTION escape 0x61, 0x62, 0x63 11 ; CHECK: CFI_INSTRUCTION escape 0x61, 0x62, 0x63{{$}}
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageViewHTML.cpp | 26 std::string escape(StringRef Str, const CoverageViewOptions &Opts) { in escape() function 270 << escape(PathToStyle, Opts) << "'>"; in emitPrelude() 327 std::string LinkText = escape(LinkTextStr, Opts); in buildLinkToFile() 329 escape(getOutputPath(SF, "html", /*InToplevel=*/false), Opts); in buildLinkToFile() 417 OSRef << tag(ProjectTitleTag, escape(Opts.ProjectTitle, Opts)); in createIndexFile() 420 OSRef << tag(CreatedTimeTag, escape(Opts.CreatedTimeStr, Opts)); in createIndexFile() 462 OSRef << tag("h5", escape(Opts.getLLVMVersionString(), Opts)); in createIndexFile() 530 Snippets[I] = escape(Snippets[I], getOptions()); in renderLine() 732 escape("Unexecuted instantiation: " + ISV.FunctionName.str(), in renderInstantiationView() 744 OS << tag(ReportTitleTag, escape(Title, getOptions())); in renderTitle() [all …]
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/lib/libscanbuild/ |
| H A D | report.py | 465 return escape('bt_' + smash('bug_category') + '_' + smash('bug_type')) 502 encode_value(bug, 'bug_file', lambda x: escape(chop(prefix, x))) 503 encode_value(bug, 'bug_category', escape) 504 encode_value(bug, 'bug_type', escape) 505 encode_value(bug, 'report_file', lambda x: escape(chop(output_dir, x))) 515 encode_value(crash, 'source', lambda x: escape(chop(prefix, x))) 516 encode_value(crash, 'problem', escape) 517 encode_value(crash, 'file', lambda x: escape(chop(output_dir, x))) 518 encode_value(crash, 'info', lambda x: escape(chop(output_dir, x))) 519 encode_value(crash, 'stderr', lambda x: escape(chop(output_dir, x))) [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
| H A D | quoted.pass.cpp | 77 void round_trip_e ( const CharT *p, char escape ) { in round_trip_e() argument 79 CharT e(escape); in round_trip_e() 89 std::basic_string<CharT, Traits> quote ( const CharT *p, char delim='"', char escape='\\' ) { in quote() argument 92 CharT e(escape); in quote() 100 std::basic_string<CharT, Traits> unquote ( const CharT *p, char delim='"', char escape='\\' ) { in unquote() argument 105 CharT e(escape); in unquote()
|