diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-07 10:40:31 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-07 10:40:31 +0000 |
| commit | a8a83d150f489733353b3bff0891248f59a0794c (patch) | |
| tree | aa7c9a64cb3f5d7982b775f2e082c07ebfe74b49 /llvm/test/CodeGen/X86/vec_minmax_uint.ll | |
| parent | 62ef18562b5494567c601be41761cf8449960ad4 (diff) | |
| download | bcm5719-llvm-a8a83d150f489733353b3bff0891248f59a0794c.tar.gz bcm5719-llvm-a8a83d150f489733353b3bff0891248f59a0794c.zip | |
[CodeGen] Use MachineOperand::print in the MIRPrinter for MO_Register.
Work towards the unification of MIR and debug output by refactoring the
interfaces.
For MachineOperand::print, keep a simple version that can be easily called
from `dump()`, and a more complex one which will be called from both the
MIRPrinter and MachineInstr::print.
Add extra checks inside MachineOperand for detached operands (operands
with getParent() == nullptr).
https://reviews.llvm.org/D40836
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/kill: ([^ ]+) ([^ ]+)<def> ([^ ]+)/kill: \1 def \2 \3/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/kill: ([^ ]+) ([^ ]+) ([^ ]+)<def>/kill: \1 \2 def \3/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/kill: def ([^ ]+) ([^ ]+) ([^ ]+)<def>/kill: def \1 \2 def \3/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/<def>//g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<kill>/killed \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<imp-use,kill>/implicit killed \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<dead>/dead \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<def[ ]*,[ ]*dead>/dead \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<imp-def[ ]*,[ ]*dead>/implicit-def dead \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<imp-def>/implicit-def \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<imp-use>/implicit \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<internal>/internal \1/g'
* find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" -o -name "*.s" \) -type f -print0 | xargs -0 sed -i '' -E 's/([^ ]+)<undef>/undef \1/g'
llvm-svn: 320022
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_minmax_uint.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/vec_minmax_uint.ll | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/llvm/test/CodeGen/X86/vec_minmax_uint.ll b/llvm/test/CodeGen/X86/vec_minmax_uint.ll index cf764a2f346..294d10c1cee 100644 --- a/llvm/test/CodeGen/X86/vec_minmax_uint.ll +++ b/llvm/test/CodeGen/X86/vec_minmax_uint.ll @@ -82,10 +82,10 @@ define <2 x i64> @max_gt_v2i64(<2 x i64> %a, <2 x i64> %b) { ; ; AVX512-LABEL: max_gt_v2i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %xmm1<def> %xmm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %xmm1 killed %xmm1 def %zmm1 +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 def %zmm0 ; AVX512-NEXT: vpmaxuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 killed %zmm0 ; AVX512-NEXT: vzeroupper ; AVX512-NEXT: retq %1 = icmp ugt <2 x i64> %a, %b @@ -208,10 +208,10 @@ define <4 x i64> @max_gt_v4i64(<4 x i64> %a, <4 x i64> %b) { ; ; AVX512-LABEL: max_gt_v4i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %ymm1<def> %ymm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %ymm1 killed %ymm1 def %zmm1 +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 def %zmm0 ; AVX512-NEXT: vpmaxuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 killed %zmm0 ; AVX512-NEXT: retq %1 = icmp ugt <4 x i64> %a, %b %2 = select <4 x i1> %1, <4 x i64> %a, <4 x i64> %b @@ -526,10 +526,10 @@ define <2 x i64> @max_ge_v2i64(<2 x i64> %a, <2 x i64> %b) { ; ; AVX512-LABEL: max_ge_v2i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %xmm1<def> %xmm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %xmm1 killed %xmm1 def %zmm1 +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 def %zmm0 ; AVX512-NEXT: vpmaxuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 killed %zmm0 ; AVX512-NEXT: vzeroupper ; AVX512-NEXT: retq %1 = icmp uge <2 x i64> %a, %b @@ -669,10 +669,10 @@ define <4 x i64> @max_ge_v4i64(<4 x i64> %a, <4 x i64> %b) { ; ; AVX512-LABEL: max_ge_v4i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %ymm1<def> %ymm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %ymm1 killed %ymm1 def %zmm1 +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 def %zmm0 ; AVX512-NEXT: vpmaxuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 killed %zmm0 ; AVX512-NEXT: retq %1 = icmp uge <4 x i64> %a, %b %2 = select <4 x i1> %1, <4 x i64> %a, <4 x i64> %b @@ -980,10 +980,10 @@ define <2 x i64> @min_lt_v2i64(<2 x i64> %a, <2 x i64> %b) { ; ; AVX512-LABEL: min_lt_v2i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %xmm1<def> %xmm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %xmm1 killed %xmm1 def %zmm1 +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 def %zmm0 ; AVX512-NEXT: vpminuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 killed %zmm0 ; AVX512-NEXT: vzeroupper ; AVX512-NEXT: retq %1 = icmp ult <2 x i64> %a, %b @@ -1106,10 +1106,10 @@ define <4 x i64> @min_lt_v4i64(<4 x i64> %a, <4 x i64> %b) { ; ; AVX512-LABEL: min_lt_v4i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %ymm1<def> %ymm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %ymm1 killed %ymm1 def %zmm1 +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 def %zmm0 ; AVX512-NEXT: vpminuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 killed %zmm0 ; AVX512-NEXT: retq %1 = icmp ult <4 x i64> %a, %b %2 = select <4 x i1> %1, <4 x i64> %a, <4 x i64> %b @@ -1423,10 +1423,10 @@ define <2 x i64> @min_le_v2i64(<2 x i64> %a, <2 x i64> %b) { ; ; AVX512-LABEL: min_le_v2i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %xmm1<def> %xmm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %xmm1 killed %xmm1 def %zmm1 +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 def %zmm0 ; AVX512-NEXT: vpminuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %xmm0<def> %xmm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %xmm0 killed %xmm0 killed %zmm0 ; AVX512-NEXT: vzeroupper ; AVX512-NEXT: retq %1 = icmp ule <2 x i64> %a, %b @@ -1566,10 +1566,10 @@ define <4 x i64> @min_le_v4i64(<4 x i64> %a, <4 x i64> %b) { ; ; AVX512-LABEL: min_le_v4i64: ; AVX512: # %bb.0: -; AVX512-NEXT: # kill: %ymm1<def> %ymm1<kill> %zmm1<def> -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<def> +; AVX512-NEXT: # kill: def %ymm1 killed %ymm1 def %zmm1 +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 def %zmm0 ; AVX512-NEXT: vpminuq %zmm1, %zmm0, %zmm0 -; AVX512-NEXT: # kill: %ymm0<def> %ymm0<kill> %zmm0<kill> +; AVX512-NEXT: # kill: def %ymm0 killed %ymm0 killed %zmm0 ; AVX512-NEXT: retq %1 = icmp ule <4 x i64> %a, %b %2 = select <4 x i1> %1, <4 x i64> %a, <4 x i64> %b |

