mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
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 llvm-svn: 299415
This commit is contained in:
parent
ecf34cdebf
commit
e84d473fc3
@ -138,7 +138,7 @@ struct FunctionSummaryYaml {
|
|||||||
} // End yaml namespace
|
} // End yaml namespace
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint64_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint64_t)
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
namespace yaml {
|
namespace yaml {
|
||||||
|
@ -161,7 +161,7 @@ struct Data {
|
|||||||
} // namespace llvm::DWARFYAML
|
} // namespace llvm::DWARFYAML
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint8_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint8_t)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex64)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex64)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::StringRef)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::StringRef)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex8)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::yaml::Hex8)
|
||||||
|
@ -140,7 +140,7 @@ struct UniversalBinary {
|
|||||||
|
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::LoadCommand)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::LoadCommand)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::Section)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::Section)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(int64_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int64_t)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::RebaseOpcode)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::RebaseOpcode)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::BindOpcode)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::BindOpcode)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::ExportEntry)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::MachOYAML::ExportEntry)
|
||||||
|
@ -244,7 +244,7 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Global)
|
|||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Function)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Function)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::LocalDecl)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::LocalDecl)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation)
|
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::Relocation)
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint32_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint32_t)
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
namespace yaml {
|
namespace yaml {
|
||||||
|
@ -502,19 +502,7 @@ DWARF:
|
|||||||
LineBase: 251
|
LineBase: 251
|
||||||
LineRange: 14
|
LineRange: 14
|
||||||
OpcodeBase: 13
|
OpcodeBase: 13
|
||||||
StandardOpcodeLengths:
|
StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
- 1
|
|
||||||
- 1
|
|
||||||
- 1
|
|
||||||
- 0
|
|
||||||
- 0
|
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
- 0
|
|
||||||
- 0
|
|
||||||
- 1
|
|
||||||
IncludeDirs:
|
IncludeDirs:
|
||||||
Files:
|
Files:
|
||||||
- Name: hello_world.c
|
- Name: hello_world.c
|
||||||
@ -556,19 +544,7 @@ DWARF:
|
|||||||
#CHECK: LineBase: 251
|
#CHECK: LineBase: 251
|
||||||
#CHECK: LineRange: 14
|
#CHECK: LineRange: 14
|
||||||
#CHECK: OpcodeBase: 13
|
#CHECK: OpcodeBase: 13
|
||||||
#CHECK: StandardOpcodeLengths:
|
#CHECK: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 0
|
|
||||||
#CHECK: - 1
|
|
||||||
#CHECK: IncludeDirs:
|
#CHECK: IncludeDirs:
|
||||||
#CHECK: Files:
|
#CHECK: Files:
|
||||||
#CHECK: - Name: hello_world.c
|
#CHECK: - Name: hello_world.c
|
||||||
|
@ -32,11 +32,9 @@ Sections:
|
|||||||
# CHECK: - Offset:
|
# CHECK: - Offset:
|
||||||
# CHECK: Opcode: I32_CONST
|
# CHECK: Opcode: I32_CONST
|
||||||
# CHECK: Value: 3
|
# CHECK: Value: 3
|
||||||
# CHECK: Functions:
|
# CHECK: Functions: [ 1 ]
|
||||||
# CHECK: - 1
|
|
||||||
# CHECK: - Offset:
|
# CHECK: - Offset:
|
||||||
# CHECK: Opcode: I32_CONST
|
# CHECK: Opcode: I32_CONST
|
||||||
# CHECK: Value: 5
|
# CHECK: Value: 5
|
||||||
# CHECK: Functions:
|
# CHECK: Functions: [ 4 ]
|
||||||
# CHECK: - 4
|
|
||||||
# CHECK: ...
|
# CHECK: ...
|
||||||
|
@ -13,7 +13,5 @@ Sections:
|
|||||||
# CHECK: Version: 0x00000001
|
# CHECK: Version: 0x00000001
|
||||||
# CHECK: Sections:
|
# CHECK: Sections:
|
||||||
# CHECK: - Type: FUNCTION
|
# CHECK: - Type: FUNCTION
|
||||||
# CHECK: FunctionTypes:
|
# CHECK: FunctionTypes: [ 1, 0 ]
|
||||||
# CHECK: - 1
|
|
||||||
# CHECK: - 0
|
|
||||||
# CHECK: ...
|
# CHECK: ...
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
; SUMMARY: GlobalValueMap:
|
; SUMMARY: GlobalValueMap:
|
||||||
; SUMMARY-NEXT: 42:
|
; SUMMARY-NEXT: 42:
|
||||||
; SUMMARY-NEXT: - TypeTests:
|
; SUMMARY-NEXT: - TypeTests: [ 123 ]
|
||||||
; SUMMARY-NEXT: - 123
|
|
||||||
; SUMMARY-NEXT: TypeIdMap:
|
; SUMMARY-NEXT: TypeIdMap:
|
||||||
; SUMMARY-NEXT: typeid1:
|
; SUMMARY-NEXT: typeid1:
|
||||||
; SUMMARY-NEXT: TTRes:
|
; SUMMARY-NEXT: TTRes:
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
; RUN: opt -wholeprogramdevirt -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -o /dev/null %s
|
; RUN: opt -wholeprogramdevirt -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -o /dev/null %s
|
||||||
; RUN: FileCheck %s < %t
|
; RUN: FileCheck %s < %t
|
||||||
|
|
||||||
; CHECK: - TypeTests:
|
; CHECK: - TypeTests: [ 15427464259790519041, 17525413373118030901 ]
|
||||||
; CHECK-NEXT: - 15427464259790519041
|
|
||||||
; CHECK-NEXT: - 17525413373118030901
|
|
||||||
; CHECK-NEXT: TypeTestAssumeVCalls:
|
; CHECK-NEXT: TypeTestAssumeVCalls:
|
||||||
|
|
||||||
@vt1a = constant void (i8*)* @vf1a, !type !0
|
@vt1a = constant void (i8*)* @vf1a, !type !0
|
||||||
|
@ -19,16 +19,12 @@
|
|||||||
; SUMMARY-NEXT: - VFunc:
|
; SUMMARY-NEXT: - VFunc:
|
||||||
; SUMMARY-NEXT: GUID: 123
|
; SUMMARY-NEXT: GUID: 123
|
||||||
; SUMMARY-NEXT: Offset: 4
|
; SUMMARY-NEXT: Offset: 4
|
||||||
; SUMMARY-NEXT: Args:
|
; SUMMARY-NEXT: Args: [ 12, 24 ]
|
||||||
; SUMMARY-NEXT: - 12
|
|
||||||
; SUMMARY-NEXT: - 24
|
|
||||||
; SUMMARY-NEXT: TypeCheckedLoadConstVCalls:
|
; SUMMARY-NEXT: TypeCheckedLoadConstVCalls:
|
||||||
; SUMMARY-NEXT: - VFunc:
|
; SUMMARY-NEXT: - VFunc:
|
||||||
; SUMMARY-NEXT: GUID: 456
|
; SUMMARY-NEXT: GUID: 456
|
||||||
; SUMMARY-NEXT: Offset: 8
|
; SUMMARY-NEXT: Offset: 8
|
||||||
; SUMMARY-NEXT: Args:
|
; SUMMARY-NEXT: Args: [ 24, 12 ]
|
||||||
; SUMMARY-NEXT: - 24
|
|
||||||
; SUMMARY-NEXT: - 12
|
|
||||||
; SUMMARY-NEXT: TypeIdMap:
|
; SUMMARY-NEXT: TypeIdMap:
|
||||||
; SUMMARY-NEXT: typeid1:
|
; SUMMARY-NEXT: typeid1:
|
||||||
; SUMMARY-NEXT: TTRes:
|
; SUMMARY-NEXT: TTRes:
|
||||||
|
@ -1740,7 +1740,7 @@ TEST(YAMLIO, TestFlagsReadError) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in uint8_t type
|
// Test error handling reading built-in uint8_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint8_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint8_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesUint8Error) {
|
TEST(YAMLIO, TestReadBuiltInTypesUint8Error) {
|
||||||
std::vector<uint8_t> seq;
|
std::vector<uint8_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1759,7 +1759,7 @@ TEST(YAMLIO, TestReadBuiltInTypesUint8Error) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in uint16_t type
|
// Test error handling reading built-in uint16_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint16_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint16_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesUint16Error) {
|
TEST(YAMLIO, TestReadBuiltInTypesUint16Error) {
|
||||||
std::vector<uint16_t> seq;
|
std::vector<uint16_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1778,7 +1778,7 @@ TEST(YAMLIO, TestReadBuiltInTypesUint16Error) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in uint32_t type
|
// Test error handling reading built-in uint32_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint32_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint32_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesUint32Error) {
|
TEST(YAMLIO, TestReadBuiltInTypesUint32Error) {
|
||||||
std::vector<uint32_t> seq;
|
std::vector<uint32_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1797,7 +1797,7 @@ TEST(YAMLIO, TestReadBuiltInTypesUint32Error) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in uint64_t type
|
// Test error handling reading built-in uint64_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(uint64_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(uint64_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesUint64Error) {
|
TEST(YAMLIO, TestReadBuiltInTypesUint64Error) {
|
||||||
std::vector<uint64_t> seq;
|
std::vector<uint64_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1816,7 +1816,7 @@ TEST(YAMLIO, TestReadBuiltInTypesUint64Error) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in int8_t type
|
// Test error handling reading built-in int8_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(int8_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int8_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesint8OverError) {
|
TEST(YAMLIO, TestReadBuiltInTypesint8OverError) {
|
||||||
std::vector<int8_t> seq;
|
std::vector<int8_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1854,7 +1854,7 @@ TEST(YAMLIO, TestReadBuiltInTypesint8UnderError) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in int16_t type
|
// Test error handling reading built-in int16_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(int16_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int16_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesint16UnderError) {
|
TEST(YAMLIO, TestReadBuiltInTypesint16UnderError) {
|
||||||
std::vector<int16_t> seq;
|
std::vector<int16_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1893,7 +1893,7 @@ TEST(YAMLIO, TestReadBuiltInTypesint16OverError) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in int32_t type
|
// Test error handling reading built-in int32_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(int32_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int32_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesint32UnderError) {
|
TEST(YAMLIO, TestReadBuiltInTypesint32UnderError) {
|
||||||
std::vector<int32_t> seq;
|
std::vector<int32_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
@ -1931,7 +1931,7 @@ TEST(YAMLIO, TestReadBuiltInTypesint32OverError) {
|
|||||||
//
|
//
|
||||||
// Test error handling reading built-in int64_t type
|
// Test error handling reading built-in int64_t type
|
||||||
//
|
//
|
||||||
LLVM_YAML_IS_SEQUENCE_VECTOR(int64_t)
|
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(int64_t)
|
||||||
TEST(YAMLIO, TestReadBuiltInTypesint64UnderError) {
|
TEST(YAMLIO, TestReadBuiltInTypesint64UnderError) {
|
||||||
std::vector<int64_t> seq;
|
std::vector<int64_t> seq;
|
||||||
Input yin("---\n"
|
Input yin("---\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user