forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:4589dd924dfc into amd-gfx:9a4c659a6ab9
Local branch amd-gfx 9a4c659 Merged master:891759db73f into amd-gfx:64f77d560c5 Remote branch master 4589dd9 [mlir][DialectConversion] Enable deeper integration of type conversions
- Loading branch information
Showing
31 changed files
with
995 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ set(LLVM_TEST_DEPENDS | |
UnitTests | ||
bugpoint | ||
count | ||
extract | ||
llc | ||
lli | ||
lli-child-target | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=avx512f | FileCheck %s | ||
|
||
; The alignment of 16 causes type legalization to split this as 3 loads, | ||
; v16f32, v4f32, and v4f32. This loads 24 elements, but the load is aligned | ||
; to 16 bytes so this i safe. There was an issue with type legalization building | ||
; the proper concat_vectors for this because the two v4f32s don't add up to | ||
; v16f32 and require padding. | ||
|
||
define <23 x float> @load23(<23 x float>* %p) { | ||
; CHECK-LABEL: load23: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: movq %rdi, %rax | ||
; CHECK-NEXT: vmovups 64(%rsi), %ymm0 | ||
; CHECK-NEXT: vmovups (%rsi), %zmm1 | ||
; CHECK-NEXT: vmovaps 64(%rsi), %xmm2 | ||
; CHECK-NEXT: vmovss {{.*#+}} xmm3 = mem[0],zero,zero,zero | ||
; CHECK-NEXT: vmovss %xmm3, 88(%rdi) | ||
; CHECK-NEXT: vmovaps %xmm2, 64(%rdi) | ||
; CHECK-NEXT: vmovaps %zmm1, (%rdi) | ||
; CHECK-NEXT: vextractf128 $1, %ymm0, %xmm0 | ||
; CHECK-NEXT: vmovlps %xmm0, 80(%rdi) | ||
; CHECK-NEXT: vzeroupper | ||
; CHECK-NEXT: retq | ||
%t0 = load <23 x float>, <23 x float>* %p, align 16 | ||
ret <23 x float> %t0 | ||
} | ||
|
||
; Same test as above with minimal alignment just to demonstrate the different | ||
; codegen. | ||
define <23 x float> @load23_align_1(<23 x float>* %p) { | ||
; CHECK-LABEL: load23_align_1: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: movq %rdi, %rax | ||
; CHECK-NEXT: vmovups (%rsi), %zmm0 | ||
; CHECK-NEXT: vmovups 64(%rsi), %xmm1 | ||
; CHECK-NEXT: movq 80(%rsi), %rcx | ||
; CHECK-NEXT: vmovss {{.*#+}} xmm2 = mem[0],zero,zero,zero | ||
; CHECK-NEXT: vmovss %xmm2, 88(%rdi) | ||
; CHECK-NEXT: movq %rcx, 80(%rdi) | ||
; CHECK-NEXT: vmovaps %xmm1, 64(%rdi) | ||
; CHECK-NEXT: vmovaps %zmm0, (%rdi) | ||
; CHECK-NEXT: vzeroupper | ||
; CHECK-NEXT: retq | ||
%t0 = load <23 x float>, <23 x float>* %p, align 1 | ||
ret <23 x float> %t0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
|
||
|
||
aa | ||
; BB-NOT: {{.}} | ||
; BB: {{^}}bb{{$}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
bb | ||
|
||
// CC: // Comments are preserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# AA-NOT: {{.}} | ||
# AA: {{^}}aa{{$}} | ||
#--- aa | ||
aa | ||
; BB-NOT: {{.}} | ||
; BB: {{^}}bb{{$}} | ||
;--- bb | ||
bb | ||
|
||
// CC: // Comments are preserved. | ||
//--- cc | ||
cc | ||
// Comments are preserved. | ||
;--- dup | ||
;--- dup | ||
|
||
# RUN: extract aa %s | diff %S/Inputs/basic-aa.txt - | ||
# RUN: extract bb - < %s | diff %S/Inputs/basic-bb.txt - | ||
# RUN: extract cc %s -o %t | ||
# RUN: FileCheck %s --check-prefix=CC < %t | ||
|
||
# RUN: not %extract aa 2>&1 | FileCheck %s --check-prefix=NO_INPUT | ||
|
||
# NO_INPUT: extract: error: input filename is not specified | ||
|
||
# RUN: not %extract dup %s 2>&1 | FileCheck %s --check-prefix=DUP | ||
|
||
# DUP: extract: error: {{.*}}.test: ';--- dup' occurs more than once | ||
|
||
# RUN: not %extract not_exist %s 2>&1 | FileCheck %s --check-prefix=NOT_EXIST | ||
|
||
# NOT_EXIST: extract: error: {{.*}}.test: ';--- not_exist' was not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RUN: extract --help 2>&1 | FileCheck --implicit-check-not='General Options:' %s | ||
CHECK: OVERVIEW: Split input {{.*}} | ||
CHECK: Generic Options: | ||
CHECK: extract Options: | ||
CHECK: -o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## With --no-leading-lines, don't add leading lines (which is used to preserve line numbers). | ||
|
||
# RUN: extract --no-leading-lines input %s -o %t | ||
# RUN: count 1 < %t | ||
# RUN: FileCheck %s < %t | ||
|
||
# CHECK: input | ||
|
||
#--- input | ||
input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Almost identical to the top-level .clang-tidy, except that {Member,Parameter,Variable}Case use camelBack. | ||
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,readability-identifier-naming' | ||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.FunctionCase | ||
value: camelBack | ||
- key: readability-identifier-naming.MemberCase | ||
value: camelBack | ||
- key: readability-identifier-naming.ParameterCase | ||
value: camelBack | ||
- key: readability-identifier-naming.UnionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.VariableCase | ||
value: camelBack | ||
- key: readability-identifier-naming.IgnoreMainLikeFunctions | ||
value: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(LLVM_LINK_COMPONENTS | ||
Support | ||
) | ||
|
||
add_llvm_tool(extract | ||
extract.cpp | ||
) |
Oops, something went wrong.