Home
last modified time | relevance | path

Searched full:identical (Results 1 – 25 of 1071) sorted by relevance

12345678910>>...43

/llvm-project/clang-tools-extra/test/clang-apply-replacements/
H A Didentical.cpp1 // RUN: mkdir -p %T/Inputs/identical
2 // RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/identical/identical.cpp > %T/Inputs/identical/identical.c…
3 // RUN: sed "s#\$(path)#%/T/Inputs/identical#" %S/Inputs/identical/file1.yaml > %T/Inputs/identical
4 // RUN: sed "s#\$(path)#%/T/Inputs/identical#" %S/Inputs/identical/file2.yaml > %T/Inputs/identical
5 // RUN: clang-apply-replacements %T/Inputs/identical
6 // RUN: FileCheck -input-file=%T/Inputs/identical/identical.cpp %S/Inputs/identical/identical.cpp
H A Didentical-in-TU.cpp1 // RUN: mkdir -p %T/Inputs/identical-in-TU
3 … RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/identical-in-TU/identical-in-TU.cpp > %T/Inputs/identical-…
4 // RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file1.yaml > %T/Inpu…
5 // RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file2.yaml > %T/Inpu…
6 // RUN: clang-apply-replacements %T/Inputs/identical-in-TU
7 // RUN: FileCheck -input-file=%T/Inputs/identical-in-TU/identical-in-TU.cpp %S/Inputs/identical-in-…
9 // Similar to identical test but each yaml file contains the same fix twice.
/llvm-project/clang/test/Analysis/
H A Didentical-expressions.cpp
/llvm-project/lld/test/ELF/
H A Dicf-safe.s19 # CHECK-NEXT: removing identical section {{.*}}:(.rodata.h4)
21 # CHECK-NEXT: removing identical section {{.*}}:(.text.f4)
23 # CHECK-NEXT: removing identical section {{.*}}:(.rodata.g4)
25 # CHECK-NEXT: removing identical section {{.*}}:(.rodata.l4)
27 # CHECK-NEXT: removing identical section {{.*}}:(.text)
34 # ALL-NEXT: removing identical section {{.*}}:(.rodata.h4)
36 # ALL-NEXT: removing identical section {{.*}}:(.text.f4)
38 # ALL-NEXT: removing identical section {{.*}}:(.text.f2)
39 # ALL-NEXT: removing identical section {{.*}}:(.text.non_addrsig1)
40 # ALL-NEXT: removing identical section {{.*}}:(.text.non_addrsig2)
[all …]
H A Dicf-preemptible.s13 # EXE-NEXT: removing identical section {{.*}}:(.text.g2)
14 # EXE-NEXT: removing identical section {{.*}}:(.text.g3)
16 # EXE-NEXT: removing identical section {{.*}}:(.text.f2)
18 # EXE-NEXT: removing identical section {{.*}}:(.text.h2)
19 # EXE-NEXT: removing identical section {{.*}}:(.text.h3)
25 # DSO-NEXT: removing identical section {{.*}}:(.text.g3)
27 # DSO-NEXT: removing identical section {{.*}}:(.text.f2)
H A Dicf-keep-unique.s9 // CHECK-NEXT: removing identical section {{.*}}:(.text.f2)
10 // CHECK-NEXT: removing identical section {{.*}}:(.text.f3)
11 // CHECK-NEXT: removing identical section {{.*}}:(.text.f4)
12 // CHECK-NEXT: removing identical section {{.*}}:(.text.f5)
18 // CHECK-KEEP-NEXT: removing identical section {{.*}}:(.text.f3)
19 // CHECK-KEEP-NEXT: removing identical section {{.*}}:(.text.f5)
H A Dprint-icf.s11 # CHECK-NEXT: removing identical section {{.*}}:(.text.f3)
12 # CHECK-NEXT: removing identical section {{.*}}:(.text.f5)
13 # CHECK-NEXT: removing identical section {{.*}}:(.text.f6)
15 # CHECK-NEXT: removing identical section {{.*}}:(.text.f4)
16 # CHECK-NEXT: removing identical section {{.*}}:(.text.f7)
H A Dicf-ineligible.s10 # CHECK: removing identical section {{.*}}:(.text.f2)
11 # CHECK: removing identical section {{.*}}:(.text.f3)
13 # CHECK: removing identical section {{.*}}:(.text.f5)
H A Dicf-i386.s8 # CHECK: removing identical section {{.*}}:(.text.f2)
9 # CHECK-NOT: removing identical section {{.*}}:(.text.f3)
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dbranch-clone.cpp5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic1()
16 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic2()
29 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic3()
80 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic8()
95 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic9()
127 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic11()
151 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: if with identical then and else branches [bugprone-bran… in test_basic12()
159 // Empty compound statement is not identical to null statement. in test_basic13()
201 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: if with identical then and else branches [bugprone-bran… in test_macro1()
214 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: if with identical then and else branches [bugprone-bran… in test_macro2()
[all …]
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp
/llvm-project/flang/test/Semantics/
H A Dlabel11.f905 ! the optional program-stmt is used. If included, it shall be identical to the
8 ! identical to the module-name specified in the module-stmt.
10 ! identical to the one in the submodule-stmt.
12 ! identical to the function-name specified in the function-stmt.
16 ! identical to the function-name specified in the function-stmt.
18 ! identical to the one in the submodule-stmt.
20 ! identical to the module-name specified in the module-stmt
/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/
H A Dfile2.yaml2 MainSourceFile: identical-in-TU.cpp
4 - DiagnosticName: test-identical-insertion
7 FilePath: $(path)/identical-in-TU.cpp
10 - FilePath: $(path)/identical-in-TU.cpp
14 - FilePath: $(path)/identical-in-TU.cpp
/llvm-project/bolt/lib/Passes/
H A DIdenticalCodeFolding.cpp49 ICF("icf", cl::desc("fold functions with identical code"), in equalJumpTables()
52 "Enable identical code folding"), in equalJumpTables()
54 "Enable identical code folding"), in equalJumpTables()
56 "Enable identical code folding"), in equalJumpTables()
59 "Disable identical code folding (default)"), in equalJumpTables()
61 "Disable identical code folding (default)"), in equalJumpTables()
63 "safe", "Enable safe identical code folding")), in equalJumpTables()
126 /// identical CFG. in isInstrEquivalentWith()
179 /// Returns true if this function has identical code and CFG with in isIdenticalWith()
183 /// potentially identical bu in isIdenticalWith()
[all...]
/llvm-project/llvm/test/MC/ARM/
H A Dthumb2-ldrd.s11 @ CHECK: error: destination operands can't be identical
12 @ CHECK: error: destination operands can't be identical
13 @ CHECK: error: destination operands can't be identical
14 @ CHECK: error: destination operands can't be identical
15 @ CHECK-NOT: error: destination operands can't be identical
H A Ddiagnostics.s449 @ CHECK-ERRORS: error: source register and base register can't be identical
452 @ CHECK-ERRORS: error: source register and base register can't be identical
592 @ CHECK-ERRORS: error: source register and base register can't be identical
595 @ CHECK-ERRORS: error: source register and base register can't be identical
598 @ CHECK-ERRORS: error: source register and base register can't be identical
601 @ CHECK-ERRORS: error: source register and base register can't be identical
604 @ CHECK-ERRORS: error: source register and base register can't be identical
607 @ CHECK-ERRORS: error: source register and base register can't be identical
610 @ CHECK-ERRORS: error: source register and base register can't be identical
613 @ CHECK-ERRORS: error: source register and base register can't be identical
[all …]
H A Dmve-sqrshr-uqrshl-earlyclobber.s4 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Rda register and Rm register can't be identical
6 @ CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Rda register and Rm register can't be identical
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dbranch-clone.rst7 repeated branches in ``switch`` statements and identical true and false
21 ``then`` and ``else`` branches are identical and the code is equivalent the
40 identical inner and outer ``if`` statements if code is between the ``if``
46 if (x == 1) { // warns, if with identical inner if
77 Here the check reports that the ``'a'`` and ``'A'`` branches are identical
78 (and that the ``'b'`` and ``'B'`` branches are also identical), but does not
79 report that the ``default:`` branch is also identical to the first two branches.
110 Note: This check also reports situations where branches become identical only
/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/identical/
H A Dfile2.yaml2 MainSourceFile: identical.cpp
4 - DiagnosticName: test-identical-insertion
7 FilePath: $(path)/identical.cpp
10 - FilePath: $(path)/identical.cpp
H A Dfile1.yaml2 MainSourceFile: identical.cpp
4 - DiagnosticName: test-identical-insertion
7 FilePath: $(path)/identical.cpp
10 - FilePath: $(path)/identical.cpp
/llvm-project/lld/test/ELF/linkerscript/
H A Dicf-output-sections.s10 # ICF1-NEXT: removing identical section {{.*}}.o:(.text.foo1)
11 # ICF1-NEXT: removing identical section {{.*}}.o:(.text.bar0)
12 # ICF1-NEXT: removing identical section {{.*}}.o:(.text.bar1)
24 # ICF2-NEXT: removing identical section {{.*}}.o:(.text.foo1)
26 # ICF2-NEXT: removing identical section {{.*}}.o:(.text.bar1)
37 # ICF3-NEXT: removing identical section {{.*}}.o:(.text.foo1)
/llvm-project/llvm/test/tools/llvm-remarkutil/size-diff/
H A Djson-add-remove-func.test1 RUN: llvm-remarkutil size-diff %p/Inputs/1-func-1-instr-1-stack.yaml %p/Inputs/2-identical-func-1-i…
2 RUN: llvm-remarkutil size-diff %p/Inputs/2-identical-func-1-instr-1-stack.yaml %p/Inputs/1-func-1-i…
4 ; The "two-identical-one-instr-funcs" file contains a single-instruction
9 ; ADD-NEXT: "B":{{.*}}2-identical-func-1-instr-1-stack.yaml
34 ; REMOVE: "A":{{.*}}2-identical-func-1-instr-1-stack.yaml
H A Dadd-remove-func.test1 RUN: llvm-remarkutil size-diff %p/Inputs/1-func-1-instr-1-stack.yaml %p/Inputs/2-identical-func-1-i…
2 RUN: llvm-remarkutil size-diff %p/Inputs/2-identical-func-1-instr-1-stack.yaml %p/Inputs/1-func-1-i…
4 ; The "two-identical-one-instr-funcs" file contains a single-instruction
/llvm-project/lld/ELF/
H A DICF.cpp9 // ICF is short for Identical Code Folding. This is a size optimization to
14 // In ICF, two sections are considered identical if they have the same
33 // terminates are considered identical. Here are details:
69 // [1] Safe ICF: Pointer Safe and Unwinding aware Identical Code Folding
143 // it breaks the invariance that all possibly-identical sections must be
271 // considered different. This is because even if the sections are identical in constantEq()
346 // The two sections must be identical. in variableEq()
464 // Two text sections may have identical content and relocations but different in run()
470 // If two .gcc_except_table have identical semantics (usually identical in run()
[all...]
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DBranchCloneCheck.cpp110 /// Determines whether two statement trees are identical regarding in check()
114 /// effects are never considered identical. in check()
115 /// Limitations: (t + u) and (u + t) are not considered identical. in check()
116 /// t*(u + t) and t*u + t*t are not considered identical. in check()
125 // identical statements. in check()
134 // are identical. in check()
139 // the expressions are identical. in check()
143 // If all children of two expressions are identical, return true. in check()
327 diag(IS->getBeginLoc(), "if with identical then and else branches");
399 "conditional operator with identical tru
[all...]

12345678910>>...43