Skip to content

Commit 93ae0c5

Browse files
committed
address pr comment
1 parent 710cef1 commit 93ae0c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17996,7 +17996,7 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
1799617996
"Dot product requires vectors to be of the same size.");
1799717997

1799817998
return Builder.CreateIntrinsic(
17999-
/*ReturnType*/ T0->getScalarType(), Intrinsic::dx_dot,
17999+
/*ReturnType=*/T0->getScalarType(), Intrinsic::dx_dot,
1800018000
ArrayRef<Value *>{Op0, Op1}, nullptr, "dx.dot");
1800118001
} break;
1800218002
case Builtin::BI__builtin_hlsl_lerp: {
@@ -18033,23 +18033,23 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
1803318033
XVecTy->getElementType() == SVecTy->getElementType() &&
1803418034
"Lerp requires float vectors to be of the same type.");
1803518035
return Builder.CreateIntrinsic(
18036-
/*ReturnType*/ Xty, Intrinsic::dx_lerp, ArrayRef<Value *>{X, Y, S},
18036+
/*ReturnType=*/Xty, Intrinsic::dx_lerp, ArrayRef<Value *>{X, Y, S},
1803718037
nullptr, "dx.lerp");
1803818038
}
1803918039
case Builtin::BI__builtin_hlsl_elementwise_frac: {
1804018040
Value *Op0 = EmitScalarExpr(E->getArg(0));
1804118041
if (!E->getArg(0)->getType()->hasFloatingRepresentation())
1804218042
llvm_unreachable("frac operand must have a float representation");
1804318043
return Builder.CreateIntrinsic(
18044-
/*ReturnType*/ Op0->getType(), Intrinsic::dx_frac,
18044+
/*ReturnType=*/Op0->getType(), Intrinsic::dx_frac,
1804518045
ArrayRef<Value *>{Op0}, nullptr, "dx.frac");
1804618046
}
1804718047
case Builtin::BI__builtin_hlsl_elementwise_rcp: {
1804818048
Value *Op0 = EmitScalarExpr(E->getArg(0));
1804918049
if (!E->getArg(0)->getType()->hasFloatingRepresentation())
1805018050
llvm_unreachable("rcp operand must have a float representation");
1805118051
return Builder.CreateIntrinsic(
18052-
/*ReturnType*/ Op0->getType(), Intrinsic::dx_rcp,
18052+
/*ReturnType=*/Op0->getType(), Intrinsic::dx_rcp,
1805318053
ArrayRef<Value *>{Op0}, nullptr, "dx.rcp");
1805418054
}
1805518055
}

0 commit comments

Comments
 (0)