llvm-project/llvm/test/MC/AMDGPU
Richard Smith d0c0c13447 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
2017-06-30 20:56:57 +00:00
..
regression [AMDGPU][MC] Corrected V_*QSAD* instructions to check that dest register is different than any of the src 2017-06-21 14:41:34 +00:00
buffer_wbinv1l_vol_vi.s
code-object-metadata-kernel-args.s Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:56:57 +00:00
code-object-metadata-kernel-attrs.s Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR 2017-06-30 20:56:57 +00:00
code-object-metadata-kernel-code-props.s [AMDGPU] Emit kernel debug properties as code object metadata 2017-03-22 23:10:46 +00:00
code-object-metadata-kernel-debug-props.s [AMDGPU] Emit kernel debug properties as code object metadata 2017-03-22 23:10:46 +00:00
code-object-metadata-unknown-key.s [AMDGPU] Rename Kind to ValueKind in metadata to be consistent 2017-03-24 18:43:15 +00:00
ds-err.s [AMDGPU][MC] New syntax for ds_swizzle_b32 offset 2017-05-31 16:26:47 +00:00
ds.s [AMDGPU][MC] New syntax for ds_swizzle_b32 offset 2017-05-31 16:26:47 +00:00
exp-err.s AMDGPU: Assembler support for exp 2016-12-05 20:42:41 +00:00
exp.s [AMDGPU][MC] Fixed bugs in export instruction 2017-05-19 13:36:09 +00:00
expressions.s [AMDGPU][MC] Fix for Bug 28211 + LIT tests 2017-04-07 13:07:13 +00:00
flat-gfx9.s AMDGPU: Start adding offset fields to flat instructions 2017-06-12 15:55:58 +00:00
flat-global.s AMDGPU: Start adding global_* instructions 2017-06-20 19:54:14 +00:00
flat-scratch.s
flat.s AMDGPU: Start adding offset fields to flat instructions 2017-06-12 15:55:58 +00:00
gfx7_asm_all.s [AMDGPU][mc][tests][NFC] Bulk ISA tests: Massive update. Add Gfx9 dasm tests. 2017-06-19 15:55:02 +00:00
gfx8_asm_all.s [AMDGPU][mc][tests][NFC] Bulk ISA tests: Massive update. Add Gfx9 dasm tests. 2017-06-19 15:55:02 +00:00
gfx9_asm_all.s [AMDGPU][mc][tests][NFC] Bulk ISA tests: Massive update. Add Gfx9 dasm tests. 2017-06-19 15:55:02 +00:00
hsa-exp.s [AMDGPU] Change amd_kernel_code_t's minor version to 1 2017-02-28 17:17:52 +00:00
hsa-text.s
hsa.s [AMDGPU] Do not emit isa info as code object metadata 2017-03-22 23:27:09 +00:00
hsa_code_object_isa_args.s [AMDGPU][mc] Enable absolute expressions in .hsa_code_object_isa directive 2016-12-29 15:41:52 +00:00
labels-branch.s [AMDGPU] Disassembler: print label names in branch instructions 2016-10-06 13:46:08 +00:00
lit.local.cfg
literal16-err.s AMDGPU: Fix handling of 16-bit immediates 2016-12-10 00:39:12 +00:00
literal16.s [AMDGPU][MC] Corrected v_madak/madmk to avoid printing "_e32" in disassembler output 2017-05-10 13:00:28 +00:00
literals.s [AMDGPU][MC] Fix for Bugs 28200, 28202 + LIT tests 2017-03-20 14:50:35 +00:00
literalv216-err.s AMDGPU: Add VOP3P instruction format 2017-02-27 18:49:11 +00:00
literalv216.s AMDGPU: Add VOP3P instruction format 2017-02-27 18:49:11 +00:00
macro-examples.s
max-branch-distance.s
mimg.s
mtbuf.s [AMDGPU] Add intrinsics for tbuffer load and store 2017-06-22 16:29:22 +00:00
mubuf.s [AMDGPU][mc] Add support for buffer_load_dwordx3, buffer_store_dwordx3. 2016-10-07 15:53:16 +00:00
out-of-range-registers.s
reg-syntax-extra.s AMDGPU] Assembler: better support for immediate literals in assembler. 2016-09-09 14:44:04 +00:00
reloc.s [AMDGPU] Add 32-bit lo/hi got and pc relative variant kinds and emit appropriate relocations 2016-10-14 04:21:32 +00:00
smem-err.s AMDGPU: Disallow exec as SMEM instruction operand 2016-11-29 19:39:53 +00:00
smem.s AMDGPU: Allow TBA, TMA, TTMP* registers with SMEM instructions 2016-12-09 17:49:11 +00:00
smrd-err.s AMDGPU: Add definitions for scalar store instructions 2016-10-28 21:55:15 +00:00
smrd.s AMDGPU: Allow TBA, TMA, TTMP* registers with SMEM instructions 2016-12-09 17:49:11 +00:00
sop1-err.s AMDGPU] Assembler: better support for immediate literals in assembler. 2016-09-09 14:44:04 +00:00
sop1.s [AMDGPU][MC] Corrected src0 size for s_cbranch_join 2017-04-12 12:40:19 +00:00
sop2-err.s [AMDGPU][MC] Enabled constants for src operands of s_cbranch_g_fork 2017-04-14 11:52:26 +00:00
sop2.s [AMDGPU][MC] Enabled constants for src operands of s_cbranch_g_fork 2017-04-14 11:52:26 +00:00
sopc-err.s AMDGPU: Add instruction definitions for VGPR indexing 2016-10-12 18:00:51 +00:00
sopc.s AMDGPU: Add instruction definitions for VGPR indexing 2016-10-12 18:00:51 +00:00
sopk-err.s [AMDGPU][MC] Added check for truncation of SOPK imm operand 2017-04-26 15:34:19 +00:00
sopk.s [AMDGPU][MC] Added check for truncation of SOPK imm operand 2017-04-26 15:34:19 +00:00
sopp-err.s [AMDGPU][MC] Corrected error message for s_waitcnt helpers 2017-06-07 16:08:02 +00:00
sopp-gfx9.s AMDGPU: Merge initial gfx9 support 2017-02-18 18:29:53 +00:00
sopp.s [AMDGPU][MC] Added arg checks for vmcnt, expcnt, lgkmcnt helpers 2017-04-26 17:55:50 +00:00
sym_kernel_scope.s [AMDGPU][llvm-mc] Predefined symbols to access register counts (.kernel.{v|s}gpr_count) 2016-12-27 16:00:11 +00:00
sym_option.s AMDGPU : Fix ISA Version Definitions. 2017-06-10 03:53:19 +00:00
trap.s AMDGPU] Assembler: better support for immediate literals in assembler. 2016-09-09 14:44:04 +00:00
vintrp-err.s AMDGPU: Assembler support for vintrp instructions 2016-12-15 20:40:20 +00:00
vintrp.s AMDGPU: Assembler support for vintrp instructions 2016-12-15 20:40:20 +00:00
vop-err.s [AMDGPU][MC] Fix for Bug 30829 + LIT tests 2017-03-03 14:31:06 +00:00
vop1-gfx9-err.s AMDGPU: Add definition for v_swap_b32 2017-02-28 21:09:04 +00:00
vop1-gfx9.s AMDGPU: Add definition for v_swap_b32 2017-02-28 21:09:04 +00:00
vop1.s [AMDGPU][MC] Added support for several VI-specific opcodes (s_wakeup, etc) 2017-04-12 17:10:07 +00:00
vop2-err.s
vop2.s [AMDGPU][MC] Corrected several VI opcodes to avoid printing _e64 2017-05-15 14:28:23 +00:00
vop3-convert.s [AMDGPU][MC] Corrected several VI opcodes to avoid printing _e64 2017-05-15 14:28:23 +00:00
vop3-errs.s [AMDGPU][MC] Corrected V_*QSAD* instructions to check that dest register is different than any of the src 2017-06-21 14:41:34 +00:00
vop3-gfx9.s AMDGPU: Fix min3/max3 combines for f16/i16 2017-05-17 19:25:06 +00:00
vop3-modifiers-err.s [AMDGPU][MC] Fix for Bugs 28200, 28202 + LIT tests 2017-03-20 14:50:35 +00:00
vop3-modifiers.s [AMDGPU][MC] Fix for Bug 28207 + LIT tests 2017-03-27 15:57:17 +00:00
vop3-vop1-nosrc.s
vop3.s [AMDGPU][MC] Corrected V_*QSAD* instructions to check that dest register is different than any of the src 2017-06-21 14:41:34 +00:00
vop3p-err.s [AMDGPU][MC] Fix for Bug 30829 + LIT tests 2017-03-03 14:31:06 +00:00
vop3p.s AMDGPU: Add VOP3P instruction format 2017-02-27 18:49:11 +00:00
vop_dpp.s [AMDGPU] DPP: add support for GFX9 2017-04-27 15:42:38 +00:00
vop_dpp_expr.s [AMDGPU] DPP: add support for GFX9 2017-04-27 15:42:38 +00:00
vop_sdwa.s [AMDGPU][MC][GFX9] Corrected encoding of flat_scratch* for SDWA opcodes 2017-05-26 18:01:29 +00:00
vopc-errs.s
vopc-vi.s AMDGPU: Fix missing 16-bit cmpx instructions 2016-12-22 16:27:14 +00:00
vopc.s