Skip to content

Commit 4360a27

Browse files
committed
address pr comments
1 parent 55e2e87 commit 4360a27

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

llvm/include/llvm/IR/IntrinsicsDirectX.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def int_dx_lerp :
3232
[llvm_anyvector_ty, LLVMScalarOrSameVectorWidth<0, LLVMVectorElementType<0>>,LLVMScalarOrSameVectorWidth<0, LLVMVectorElementType<0>>],
3333
[IntrNoMem, IntrWillReturn] >;
3434

35-
3635
def int_dx_imad : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>]>;
3736
def int_dx_umad : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>]>;
3837
}

llvm/test/CodeGen/DirectX/fmad.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32
1010
target triple = "dxil-pc-shadermodel6.7-library"
1111

1212
; Function Attrs: noinline nounwind optnone
13-
define noundef half @"?test_mad_half@@YA$f16@$f16@00@Z"(half noundef %p0, half noundef %p1, half noundef %p2) #0 {
13+
define noundef half @fmad_half(half noundef %p0, half noundef %p1, half noundef %p2) #0 {
1414
entry:
1515
%p2.addr = alloca half, align 2
1616
%p1.addr = alloca half, align 2
@@ -29,7 +29,7 @@ entry:
2929
declare half @llvm.fmuladd.f16(half, half, half) #2
3030

3131
; Function Attrs: noinline nounwind optnone
32-
define noundef float @"?test_mad_float@@YAMMMM@Z"(float noundef %p0, float noundef %p1, float noundef %p2) #0 {
32+
define noundef float @fmad_float(float noundef %p0, float noundef %p1, float noundef %p2) #0 {
3333
entry:
3434
%p2.addr = alloca float, align 4
3535
%p1.addr = alloca float, align 4
@@ -48,7 +48,7 @@ entry:
4848
declare float @llvm.fmuladd.f32(float, float, float) #2
4949

5050
; Function Attrs: noinline nounwind optnone
51-
define noundef double @"?test_mad_double@@YANNNN@Z"(double noundef %p0, double noundef %p1, double noundef %p2) #0 {
51+
define noundef double @fmad_double(double noundef %p0, double noundef %p1, double noundef %p2) #0 {
5252
entry:
5353
%p2.addr = alloca double, align 8
5454
%p1.addr = alloca double, align 8

llvm/test/CodeGen/DirectX/imad.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
99
target triple = "dxil-pc-shadermodel6.7-library"
1010
; Function Attrs: noinline nounwind optnone
11-
define noundef i16 @"?test_mad_int16_t@@YAFFFF@Z"(i16 noundef %p0, i16 noundef %p1, i16 noundef %p2) #0 {
11+
define noundef i16 @imad_short(i16 noundef %p0, i16 noundef %p1, i16 noundef %p2) #0 {
1212
entry:
1313
%p2.addr = alloca i16, align 2
1414
%p1.addr = alloca i16, align 2
@@ -27,7 +27,7 @@ entry:
2727
declare i16 @llvm.dx.imad.i16(i16, i16, i16) #1
2828

2929
; Function Attrs: noinline nounwind optnone
30-
define noundef i32 @"?test_mad_uint@@YAIIII@Z"(i32 noundef %p0, i32 noundef %p1, i32 noundef %p2) #0 {
30+
define noundef i32 @imad_int(i32 noundef %p0, i32 noundef %p1, i32 noundef %p2) #0 {
3131
entry:
3232
%p2.addr = alloca i32, align 4
3333
%p1.addr = alloca i32, align 4
@@ -46,7 +46,7 @@ entry:
4646
declare i32 @llvm.dx.imad.i32(i32, i32, i32) #1
4747

4848
; Function Attrs: noinline nounwind optnone
49-
define noundef i64 @"?test_mad_uint64_t@@YAKKKK@Z"(i64 noundef %p0, i64 noundef %p1, i64 noundef %p2) #0 {
49+
define noundef i64 @imad_int64(i64 noundef %p0, i64 noundef %p1, i64 noundef %p2) #0 {
5050
entry:
5151
%p2.addr = alloca i64, align 8
5252
%p1.addr = alloca i64, align 8

llvm/test/CodeGen/DirectX/umad.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
99
target triple = "dxil-pc-shadermodel6.7-library"
1010
; Function Attrs: noinline nounwind optnone
11-
define noundef i16 @"?test_mad_uint16_t@@YAGGGG@Z"(i16 noundef %p0, i16 noundef %p1, i16 noundef %p2) #0 {
11+
define noundef i16 @umad_ushort(i16 noundef %p0, i16 noundef %p1, i16 noundef %p2) #0 {
1212
entry:
1313
%p2.addr = alloca i16, align 2
1414
%p1.addr = alloca i16, align 2
@@ -27,7 +27,7 @@ entry:
2727
declare i16 @llvm.dx.umad.i16(i16, i16, i16) #1
2828

2929
; Function Attrs: noinline nounwind optnone
30-
define noundef i32 @"?test_mad_uint@@YAIIII@Z"(i32 noundef %p0, i32 noundef %p1, i32 noundef %p2) #0 {
30+
define noundef i32 @umad_uint(i32 noundef %p0, i32 noundef %p1, i32 noundef %p2) #0 {
3131
entry:
3232
%p2.addr = alloca i32, align 4
3333
%p1.addr = alloca i32, align 4
@@ -46,7 +46,7 @@ entry:
4646
declare i32 @llvm.dx.umad.i32(i32, i32, i32) #1
4747

4848
; Function Attrs: noinline nounwind optnone
49-
define noundef i64 @"?test_mad_uint64_t@@YAKKKK@Z"(i64 noundef %p0, i64 noundef %p1, i64 noundef %p2) #0 {
49+
define noundef i64 @umad_uint64(i64 noundef %p0, i64 noundef %p1, i64 noundef %p2) #0 {
5050
entry:
5151
%p2.addr = alloca i64, align 8
5252
%p1.addr = alloca i64, align 8

0 commit comments

Comments
 (0)