-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update translator for new Fast Composite extension
SPV_INTEL_fast_composite extension specification separated some decorations and execution modes from SPV_INTEL_vector_compute
- Loading branch information
1 parent
d593a5d
commit 791d407
Showing
10 changed files
with
67 additions
and
13 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
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,40 @@ | ||
; RUN: llvm-as %s -o %t.bc | ||
; RUN: llvm-spirv %t.bc -o %t.spv | ||
; RUN: llvm-spirv %t.spv -o %t.spt --to-text | ||
; RUN: FileCheck < %t.spt %s --check-prefix=CHECK-SPIRV | ||
; RUN: llvm-spirv %t.spv -o %t.bc -r | ||
; RUN: llvm-dis %t.bc -o %t.ll | ||
; RUN: FileCheck < %t.ll %s --check-prefix=CHECK-LLVM | ||
|
||
target triple = "spir64-unknown-unknown" | ||
|
||
|
||
; CHECK-SPIRV: {{[0-9]+}} EntryPoint {{[0-9]+}} [[FOO_ID:[0-9]+]] "foo" | ||
; CHECK-SPIRV: {{[0-9]+}} EntryPoint {{[0-9]+}} [[BAR_ID:[0-9]+]] "bar" | ||
; CHECK-SPIRV: 3 ExecutionMode [[FOO_ID]] 6088 | ||
; CHECK-SPIRV-NOT: 3 ExecutionMode [[BAR_ID]] 6088 | ||
|
||
; CHECK-LLVM: define spir_kernel void @foo | ||
; CHECK-LLVM-SAME: #[[FOO_ATTR_ID:[0-9]+]] | ||
; CHECK-LLVM: define spir_kernel void @bar | ||
; CHECK-LLVM-SAME: #[[BAR_ATTR_ID:[0-9]+]] | ||
|
||
; CHECK-LLVM: attributes #[[FOO_ATTR_ID]] | ||
; CHECK-LLVM-SAME: "VCFCEntry" | ||
; CHECK-LLVM: attributes #[[BAR_ATTR_ID]] | ||
; CHECK-LLVM-NOT: "VCFCEntry" | ||
|
||
|
||
define spir_kernel void @foo(<4 x i32> %a, <4 x i32> %b) #0 { | ||
entry: | ||
ret void | ||
} | ||
|
||
define spir_kernel void @bar(<4 x i32> %a, <4 x i32> %b) #1 { | ||
entry: | ||
ret void | ||
} | ||
|
||
attributes #0 = { noinline nounwind "VCFCEntry" "VCFloatControl"="0" "VCFunction" } | ||
attributes #1 = { noinline nounwind "VCFloatControl"="48" "VCFunction" } | ||
|