Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate yaml #116058

Draft
wants to merge 1 commit into
base: users/chapuni/yaml/newgen
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-cov/Inputs/branch-c-general.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ int main(int argc, const char *argv[]) {
conditional_operator();
do_fallthrough();
static_func();
extern void __llvm_profile_write_file();
__llvm_profile_write_file();
(void)0;
(void)0;
return 0;
}
3 changes: 1 addition & 2 deletions llvm/test/tools/llvm-cov/Inputs/branch-c-general.proftext
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ main
# Func Hash:
24
# Num Counters:
2
1
# Counter Values:
1
0

simple_loops
# Func Hash:
Expand Down
519 changes: 275 additions & 244 deletions llvm/test/tools/llvm-cov/Inputs/branch-c-general.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ extern "C" { extern void __llvm_profile_write_file(void); }
int main(int argc, char *argv[])
{
func(atoi(argv[1]), atoi(argv[2]));
__llvm_profile_write_file();
(void)0;
return 0;
}
14 changes: 2 additions & 12 deletions llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed.proftext
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
_Z4funcii
# Func Hash:
9495997393973228792
8468630735863722633
# Num Counters:
69
59
# Counter Values:
4
0
Expand Down Expand Up @@ -31,11 +31,6 @@ _Z4funcii
3
3
3
3
3
3
3
3
1
2
0
Expand All @@ -51,12 +46,7 @@ _Z4funcii
3
3
3
3
3
3
3
4
3
1
0
2
Expand Down
247 changes: 131 additions & 116 deletions llvm/test/tools/llvm-cov/Inputs/branch-logical-mixed.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-cov/Inputs/branch-macros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ bool func2(int a, int b) {
return h;
}

extern "C" { extern void __llvm_profile_write_file(void); }

int main(int argc, char *argv[])
{
func(atoi(argv[1]), atoi(argv[2]));
func2(atoi(argv[1]), atoi(argv[2]));
__llvm_profile_write_file();
(void)0;
return 0;
}
4 changes: 2 additions & 2 deletions llvm/test/tools/llvm-cov/Inputs/branch-macros.proftext
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_Z4funcii
# Func Hash:
2263559805428111017
456046650042366162
# Num Counters:
19
# Counter Values:
Expand All @@ -26,7 +26,7 @@ _Z4funcii

_Z5func2ii
# Func Hash:
5552544297182115648
14151920320560143107
# Num Counters:
8
# Counter Values:
Expand Down
131 changes: 73 additions & 58 deletions llvm/test/tools/llvm-cov/Inputs/branch-macros.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
--- !ELF
FileHeader:
Class: ELFCLASS32
Class: ELFCLASS64
Data: ELFDATA2LSB
OSABI: ELFOSABI_GNU
Type: ET_REL
Machine: EM_ARM
Flags: [ EF_ARM_EABI_VER5 ]
Machine: EM_X86_64
SectionHeaderStringTable: .strtab
Sections:
- Name: '__llvm_covfun (1)'
- Name: __llvm_covfun
Type: SHT_PROGBITS
Flags: [ SHF_GNU_RETAIN ]
AddressAlign: 0x8
CovFun:
- FuncName: _Z4funcii
Signature: 0x1F69C7A6726516A9
FilenamesRef: 0x6606FE403140CB5C
Signature: 0x654340310C838D2
FilenamesRef: 0x5D8FCE3E3196E693
Filenames:
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
Expressions:
- [ { Ref: 0 }, { Ref: 17 } ]
- [ { Ref: 17 }, { Ref: 18 } ]
Expand All @@ -56,11 +57,16 @@ Sections:
- { File: 0, dLoc: [ 16, 25, 17, 2 ], Ref: 0 }
- { File: 0, dLoc: [ 1, 12, 0, 17 ], Expansion: 1 }
- { File: 0, dLoc: [ 0, 21, 0, 26 ], Expansion: 2 }
- { File: 0, dLoc: [ 2, 12, 0, 17 ], Expansion: 3 }
- { File: 0, dLoc: [ 2, 12, 0, 18 ], Expansion: 4 }
- { File: 0, dLoc: [ 2, 12, 0, 18 ], Expansion: 5 }
- { File: 0, dLoc: [ 2, 12, 0, 18 ], Expansion: 6 }
- { File: 0, dLoc: [ 2, 10, 0, 11 ], Ref: 0 }
- { File: 0, dLoc: [ 1, 1, 0, 92 ], Skip: { } }
- { File: 0, dLoc: [ 1, 12, 0, 17 ], Expansion: 3 }
- { File: 0, dLoc: [ 1, 1, 0, 98 ], Skip: { } }
- { File: 0, dLoc: [ 1, 12, 0, 18 ], Expansion: 4 }
- { File: 0, dLoc: [ 1, 1, 0, 104 ], Skip: { } }
- { File: 0, dLoc: [ 1, 12, 0, 18 ], Expansion: 5 }
- { File: 0, dLoc: [ 1, 1, 0, 110 ], Skip: { } }
- { File: 0, dLoc: [ 1, 12, 0, 18 ], Expansion: 6 }
- { File: 0, dLoc: [ 1, 1, 0, 116 ], Skip: { } }
- { File: 0, dLoc: [ 1, 10, 0, 11 ], Ref: 0 }
- { File: 0, dLoc: [ 0, 10, 0, 16 ], Ref: 0 }
- { File: 0, dLoc: [ 0, 10, 0, 21 ], Ref: 0 }
- { File: 0, dLoc: [ 0, 10, 0, 26 ], Ref: 0 }
Expand All @@ -73,6 +79,7 @@ Sections:
- { File: 0, dLoc: [ 0, 25, 0, 26 ], Branch: { True: { Ref: 14 }, False: { Sub: 3 } } }
- { File: 0, dLoc: [ 0, 30, 0, 31 ], Ref: 11 }
- { File: 0, dLoc: [ 0, 30, 0, 31 ], Branch: { True: { Ref: 12 }, False: { Sub: 4 } } }
- { File: 0, dLoc: [ 1, 1, 4, 85 ], Skip: { } }
- { File: 1, dLoc: [ 5, 15, 0, 23 ], Ref: 0 }
- { File: 1, dLoc: [ 0, 15, 0, 23 ], Ref: 0 }
- { File: 1, dLoc: [ 0, 15, 0, 23 ], Branch: { True: { Ref: 1 }, False: { Sub: 5 } } }
Expand Down Expand Up @@ -116,27 +123,28 @@ Sections:
- { File: 19, dLoc: [ 0, 15, 0, 23 ], Branch: { True: { Ref: 9 }, False: { Sub: 13 } } }
- { File: 20, dLoc: [ 6, 15, 0, 23 ], Ref: 9 }
- { File: 20, dLoc: [ 0, 15, 0, 23 ], Branch: { True: { Ref: 10 }, False: { Sub: 14 } } }
- Name: __llvm_covfun
- Name: '__llvm_covfun (1)'
Type: SHT_PROGBITS
Flags: [ SHF_GNU_RETAIN ]
AddressAlign: 0x8
CovFun:
- FuncName: _Z5func2ii
Signature: 0x4D0E999EA1293740
FilenamesRef: 0x6606FE403140CB5C
Signature: 0xC465B88D2C9E9B03
FilenamesRef: 0x5D8FCE3E3196E693
Filenames:
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- '/tmp/branch-macros.cpp'
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
- branch-macros.cpp
Expressions:
- [ { Ref: 1 }, { Ref: 2 } ]
- [ { Ref: 1 }, { Ref: 5 } ]
Expand All @@ -148,6 +156,7 @@ Sections:
- { File: 0, dLoc: [ 36, 26, 7, 2 ], Ref: 0 }
- { File: 0, dLoc: [ 1, 14, 0, 20 ], Expansion: 1 }
- { File: 0, dLoc: [ 0, 24, 0, 29 ], Expansion: 2 }
- { File: 0, dLoc: [ 1, 1, 3, 96 ], Skip: { } }
- { File: 1, dLoc: [ 11, 16, 0, 22 ], Expansion: 3 }
- { File: 2, dLoc: [ 8, 15, 0, 38 ], Ref: 1 }
- { File: 2, dLoc: [ 0, 15, 0, 38 ], Branch: { True: { Sub: 0 }, False: { Ref: 2 } } }
Expand Down Expand Up @@ -177,26 +186,29 @@ Sections:
- { File: 12, dLoc: [ 0, 15, 0, 23 ], Branch: { True: { Ref: 4 }, False: { Sub: 5 } } }
- Name: '__llvm_covfun (2)'
Type: SHT_PROGBITS
Flags: [ SHF_GNU_RETAIN ]
AddressAlign: 0x8
CovFun:
- FuncName: main
Signature: 0x18
FilenamesRef: 0x6606FE403140CB5C
FilenamesRef: 0x5D8FCE3E3196E693
Filenames:
- '/tmp/branch-macros.cpp'
- branch-macros.cpp
Expressions: []
Records:
- { File: 0, dLoc: [ 47, 1, 5, 2 ], Ref: 0 }
- Name: __llvm_covmap
Type: SHT_PROGBITS
Flags: [ SHF_GNU_RETAIN ]
AddressAlign: 0x8
CovMap:
- Version: 3
FnBlobHash: 0x6606FE403140CB5C
- Version: 6
FnBlobHash: 0x5D8FCE3E3196E693
Filenames:
- '/tmp/branch-macros.cpp'
- branch-macros.cpp
- Name: __llvm_prf_names
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_GNU_RETAIN ]
AddressAlign: 0x1
PrfNames:
- Names:
Expand All @@ -206,27 +218,30 @@ Sections:
- Type: SectionHeaderTable
Sections:
- Name: .strtab
- Name: '__llvm_covfun (1)'
- Name: __llvm_covfun
- Name: '__llvm_covfun (1)'
- Name: '__llvm_covfun (2)'
- Name: __llvm_covmap
- Name: __llvm_prf_names
- Name: .symtab
Symbols:
- Name: __llvm_covmap
Type: STT_SECTION
Section: __llvm_covmap
- Name: __llvm_prf_names
Type: STT_SECTION
Section: __llvm_prf_names
- Name: __covrec_956373C63F981DB0u
- Name: __covrec_B30B5C302CEDA0F0u
Type: STT_OBJECT
Section: __llvm_covfun
Binding: STB_WEAK
Size: 0xE4
Size: 0x1E2
Other: [ STV_HIDDEN ]
- Name: __covrec_B30B5C302CEDA0F0u
- Name: __covrec_956373C63F981DB0u
Type: STT_OBJECT
Section: '__llvm_covfun (1)'
Binding: STB_WEAK
Size: 0x1C4
Size: 0xE9
Other: [ STV_HIDDEN ]
- Name: __covrec_DB956436E78DD5FAu
Type: STT_OBJECT
Expand Down
14 changes: 7 additions & 7 deletions llvm/test/tools/llvm-cov/Inputs/branch-showBranchPercentage.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int main(int argc, char *argv[])
int i = 0;
if (argc < 3) // CHECK: Branch ([[@LINE]]:7): [True: 16.67%, False: 83.33%]
{
__llvm_profile_write_file();
(void)0;
return 0;
}

Expand All @@ -38,21 +38,21 @@ int main(int argc, char *argv[])

switch (a)
{
case 0: // CHECK: Branch ([[@LINE]]:5): [True: 20.00%, False: 80.00%]
case 0: // CHECK: Branch ([[@LINE]]:5): [True: 100.00%, Folded]
printf("case0\n");
case 2: // CHECK: Branch ([[@LINE]]:5): [True: 20.00%, False: 80.00%]
case 2: // CHECK: Branch ([[@LINE]]:5): [True: 100.00%, Folded]
printf("case2\n");
case 3: // CHECK: Branch ([[@LINE]]:5): [True: 0.00%, False: 100.00%]
case 3: // CHECK: Branch ([[@LINE]]:5): [True: 0.00%, Folded]
printf("case3\n");
default: break; // CHECK: Branch ([[@LINE]]:5): [True: 60.00%, False: 40.00%]
default: break; // CHECK: Branch ([[@LINE]]:5): [True: 100.00%, Folded]
}

i = 0;
do {
printf("loop\n");
} while (i++ < 10); // CHECK: Branch ([[@LINE]]:12): [True: 90.91%, False: 9.09%]

__llvm_profile_write_file();
(void)b;

return b;
return 0;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main
# Func Hash:
3890582504168513655
947882199001105187
# Num Counters:
21
# Counter Values:
Expand Down
Loading