diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-30 20:56:57 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-30 20:56:57 +0000 |
commit | d0c0c134478e4b70c9764dc197253d147b8a991a (patch) | |
tree | 1a47a9137f92780c05c1977e0671a5fd3ffee134 /llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll | |
parent | d2dd79bf849a73f59a2281beb6f472d95db19694 (diff) | |
download | bcm5719-llvm-d0c0c134478e4b70c9764dc197253d147b8a991a.tar.gz bcm5719-llvm-d0c0c134478e4b70c9764dc197253d147b8a991a.zip |
Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
This is a short-term fix for PR33650 aimed to get the modules build bots green again.
Remove all the places where we use the LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR
macros to try to locally specialize a global template for a global type. That's
not how C++ works.
Instead, we now centrally define how to format vectors of fundamental types and
of string (std::string and StringRef). We use flow formatting for the former
cases, since that's the obvious right thing to do; in the latter case, it's
less clear what the right choice is, but flow formatting is really bad for some
cases (due to very long strings), so we pick block formatting. (Many of the
cases that were using flow formatting for strings are improved by this change.)
Other than the flow -> block formatting change for some vectors of strings,
this should result in no functionality change.
Differential Revision: https://reviews.llvm.org/D34907
Corresponding updates to clang, clang-tools-extra, and lld to follow.
llvm-svn: 306878
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll b/llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll index a68ddabd956..37fd08242fb 100644 --- a/llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll +++ b/llvm/test/CodeGen/AMDGPU/code-object-metadata-from-llvm-ir-full.ll @@ -16,7 +16,9 @@ ; CHECK: --- ; CHECK: Version: [ 1, 0 ] -; CHECK: Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] +; CHECK: Printf: +; CHECK: - '1:1:4:%d\n' +; CHECK: - '2:1:8:%g\n' ; CHECK: Kernels: ; CHECK: - Name: test_char @@ -1253,8 +1255,8 @@ define amdgpu_kernel void @test_pointee_align(i64 addrspace(1)* %a, ; NOTES-NEXT: Owner Data size Description ; NOTES-NEXT: AMD 0x00000008 Unknown note type: (0x00000001) ; NOTES-NEXT: AMD 0x0000001b Unknown note type: (0x00000003) -; GFX700: AMD 0x00008b06 Unknown note type: (0x0000000a) -; GFX800: AMD 0x00008e6a Unknown note type: (0x0000000a) -; GFX900: AMD 0x00008b06 Unknown note type: (0x0000000a) +; GFX700: AMD 0x00008b0a Unknown note type: (0x0000000a) +; GFX800: AMD 0x00008e6e Unknown note type: (0x0000000a) +; GFX900: AMD 0x00008b0a Unknown note type: (0x0000000a) ; PARSER: AMDGPU Code Object Metadata Parser Test: PASS |