llvm.org GIT mirror llvm / ba1514c
Align all scalar numbers to LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR Otherwise, yamlize in YAMLTraits.h might be wrongly defined. This makes some AMDGPU tests fail when LLVM_LINK_LLVM_DYLIB is set. Differential Revision: https://reviews.llvm.org/D30508 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299415 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Hahnfeld 2 years ago
11 changed file(s) with 21 addition(s) and 56 deletion(s). Raw diff Collapse all Expand all
137137 } // End yaml namespace
138138 } // End llvm namespace
139139
140 LLVM_YAML_IS_SEQUENCE_VECTOR(uint64_t)
140 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint64_t)
141141
142142 namespace llvm {
143143 namespace yaml {
160160 } // namespace llvm::DWARFYAML
161161 } // namespace llvm
162162
163 LLVM_YAML_IS_SEQUENCE_VECTOR(uint8_t)
163 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint8_t)
164164 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex64)
165165 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::StringRef)
166166 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex8)
139139
140140 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::LoadCommand)
141141 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::Section)
142 LLVM_YAML_IS_SEQUENCE_VECTOR(int64_t)
142 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int64_t)
143143 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::RebaseOpcode)
144144 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::BindOpcode)
145145 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::ExportEntry)
243243 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Function)
244244 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::LocalDecl)
245245 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation)
246 LLVM_YAML_IS_SEQUENCE_VECTOR(uint32_t)
246 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint32_t)
247247
248248 namespace llvm {
249249 namespace yaml {
501501 LineBase: 251
502502 LineRange: 14
503503 OpcodeBase: 13
504 StandardOpcodeLengths:
505 - 0
506 - 1
507 - 1
508 - 1
509 - 1
510 - 0
511 - 0
512 - 0
513 - 1
514 - 0
515 - 0
516 - 1
504 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
517505 IncludeDirs:
518506 Files:
519507 - Name: hello_world.c
555543 #CHECK: LineBase: 251
556544 #CHECK: LineRange: 14
557545 #CHECK: OpcodeBase: 13
558 #CHECK: StandardOpcodeLengths:
559 #CHECK: - 0
560 #CHECK: - 1
561 #CHECK: - 1
562 #CHECK: - 1
563 #CHECK: - 1
564 #CHECK: - 0
565 #CHECK: - 0
566 #CHECK: - 0
567 #CHECK: - 1
568 #CHECK: - 0
569 #CHECK: - 0
570 #CHECK: - 1
546 #CHECK: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
571547 #CHECK: IncludeDirs:
572548 #CHECK: Files:
573549 #CHECK: - Name: hello_world.c
3131 # CHECK: - Offset:
3232 # CHECK: Opcode: I32_CONST
3333 # CHECK: Value: 3
34 # CHECK: Functions:
35 # CHECK: - 1
34 # CHECK: Functions: [ 1 ]
3635 # CHECK: - Offset:
3736 # CHECK: Opcode: I32_CONST
3837 # CHECK: Value: 5
39 # CHECK: Functions:
40 # CHECK: - 4
38 # CHECK: Functions: [ 4 ]
4139 # CHECK: ...
1212 # CHECK: Version: 0x00000001
1313 # CHECK: Sections:
1414 # CHECK: - Type: FUNCTION
15 # CHECK: FunctionTypes:
16 # CHECK: - 1
17 # CHECK: - 0
15 # CHECK: FunctionTypes: [ 1, 0 ]
1816 # CHECK: ...
33
44 ; SUMMARY: GlobalValueMap:
55 ; SUMMARY-NEXT: 42:
6 ; SUMMARY-NEXT: - TypeTests:
7 ; SUMMARY-NEXT: - 123
6 ; SUMMARY-NEXT: - TypeTests: [ 123 ]
87 ; SUMMARY-NEXT: TypeIdMap:
98 ; SUMMARY-NEXT: typeid1:
109 ; SUMMARY-NEXT: TTRes:
0 ; RUN: opt -wholeprogramdevirt -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -o /dev/null %s
11 ; RUN: FileCheck %s < %t
22
3 ; CHECK: - TypeTests:
4 ; CHECK-NEXT: - 15427464259790519041
5 ; CHECK-NEXT: - 17525413373118030901
3 ; CHECK: - TypeTests: [ 15427464259790519041, 17525413373118030901 ]
64 ; CHECK-NEXT: TypeTestAssumeVCalls:
75
86 @vt1a = constant void (i8*)* @vf1a, !type !0
1818 ; SUMMARY-NEXT: - VFunc:
1919 ; SUMMARY-NEXT: GUID: 123
2020 ; SUMMARY-NEXT: Offset: 4
21 ; SUMMARY-NEXT: Args:
22 ; SUMMARY-NEXT: - 12
23 ; SUMMARY-NEXT: - 24
21 ; SUMMARY-NEXT: Args: [ 12, 24 ]
2422 ; SUMMARY-NEXT: TypeCheckedLoadConstVCalls:
2523 ; SUMMARY-NEXT: - VFunc:
2624 ; SUMMARY-NEXT: GUID: 456
2725 ; SUMMARY-NEXT: Offset: 8
28 ; SUMMARY-NEXT: Args:
29 ; SUMMARY-NEXT: - 24
30 ; SUMMARY-NEXT: - 12
26 ; SUMMARY-NEXT: Args: [ 24, 12 ]
3127 ; SUMMARY-NEXT: TypeIdMap:
3228 ; SUMMARY-NEXT: typeid1:
3329 ; SUMMARY-NEXT: TTRes:
17391739 //
17401740 // Test error handling reading built-in uint8_t type
17411741 //
1742 LLVM_YAML_IS_SEQUENCE_VECTOR(uint8_t)
1742 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint8_t)
17431743 TEST(YAMLIO, TestReadBuiltInTypesUint8Error) {
17441744 std::vector seq;
17451745 Input yin("---\n"
17581758 //
17591759 // Test error handling reading built-in uint16_t type
17601760 //
1761 LLVM_YAML_IS_SEQUENCE_VECTOR(uint16_t)
1761 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint16_t)
17621762 TEST(YAMLIO, TestReadBuiltInTypesUint16Error) {
17631763 std::vector seq;
17641764 Input yin("---\n"
17771777 //
17781778 // Test error handling reading built-in uint32_t type
17791779 //
1780 LLVM_YAML_IS_SEQUENCE_VECTOR(uint32_t)
1780 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint32_t)
17811781 TEST(YAMLIO, TestReadBuiltInTypesUint32Error) {
17821782 std::vector seq;
17831783 Input yin("---\n"
17961796 //
17971797 // Test error handling reading built-in uint64_t type
17981798 //
1799 LLVM_YAML_IS_SEQUENCE_VECTOR(uint64_t)
1799 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint64_t)
18001800 TEST(YAMLIO, TestReadBuiltInTypesUint64Error) {
18011801 std::vector seq;
18021802 Input yin("---\n"
18151815 //
18161816 // Test error handling reading built-in int8_t type
18171817 //
1818 LLVM_YAML_IS_SEQUENCE_VECTOR(int8_t)
1818 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int8_t)
18191819 TEST(YAMLIO, TestReadBuiltInTypesint8OverError) {
18201820 std::vector seq;
18211821 Input yin("---\n"
18531853 //
18541854 // Test error handling reading built-in int16_t type
18551855 //
1856 LLVM_YAML_IS_SEQUENCE_VECTOR(int16_t)
1856 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int16_t)
18571857 TEST(YAMLIO, TestReadBuiltInTypesint16UnderError) {
18581858 std::vector seq;
18591859 Input yin("---\n"
18921892 //
18931893 // Test error handling reading built-in int32_t type
18941894 //
1895 LLVM_YAML_IS_SEQUENCE_VECTOR(int32_t)
1895 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int32_t)
18961896 TEST(YAMLIO, TestReadBuiltInTypesint32UnderError) {
18971897 std::vector seq;
18981898 Input yin("---\n"
19301930 //
19311931 // Test error handling reading built-in int64_t type
19321932 //
1933 LLVM_YAML_IS_SEQUENCE_VECTOR(int64_t)
1933 LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int64_t)
19341934 TEST(YAMLIO, TestReadBuiltInTypesint64UnderError) {
19351935 std::vector seq;
19361936 Input yin("---\n"