-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[DXIL] Model DXIL Class specification of DXIL Ops in DXIL.td #87803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c04e28e
5e2ebea
3289bb7
709d689
7e9a1d1
41e9bd0
192f342
0b838b8
560d94f
ad4f097
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
; RUN: opt -S -dxil-intrinsic-expansion < %s | FileCheck %s --check-prefixes=CHECK,EXPCHECK | ||
; RUN: opt -S -dxil-op-lower < %s | FileCheck %s --check-prefixes=CHECK,DOPCHECK | ||
; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s --check-prefixes=CHECK,DOPCHECK | ||
damyanp marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to add all of these triples to the tests? The current implementation doesn't key off of shader model or dxil versions at all. |
||
|
||
; Make sure dxil operation function calls for abs are generated for int16_t/int/int64_t. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
; RUN: not opt -S -dxil-op-lower %s 2>&1 | FileCheck %s | ||
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library %s 2>&1 | FileCheck %s --check-prefix=SM6_0_DOUBLE | ||
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s --check-prefix=SM6_3_DOUBLE | ||
|
||
; DXIL operation sin does not support double overload type | ||
; CHECK: LLVM ERROR: Invalid Overload | ||
; Double is not valid in any Shader Model version | ||
; SM6_0_DOUBLE: LLVM ERROR: Invalid Overload | ||
; SM6_3_DOUBLE: LLVM ERROR: Invalid Overload | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change seems unnecessary. |
||
define noundef double @sin_double(double noundef %a) #0 { | ||
entry: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment just repeats what the code does, which isn't useful. Better to word it at a higher level like "We use the return type as the overload type unless a specific parameter is specified" or something