@@ -260,6 +260,9 @@ def Abs : DXILOpMapping<6, unary, int_fabs,
260260def IsInf : DXILOpMapping<9, isSpecialFloat, int_dx_isinf,
261261 "Determines if the specified value is infinite.",
262262 [llvm_i1_ty, llvm_halforfloat_ty]>;
263+ def Cos : DXILOpMapping<12, unary, int_cos,
264+ "Returns cosine(theta) for theta in radians.",
265+ [llvm_halforfloat_ty, LLVMMatchType<0>]>;
263266def Sin : DXILOpMapping<13, unary, int_sin,
264267 "Returns sine(theta) for theta in radians.",
265268 [llvm_halforfloat_ty, LLVMMatchType<0>]>;
@@ -279,6 +282,9 @@ def Round : DXILOpMapping<26, unary, int_round,
279282 "Returns the input rounded to the nearest integer"
280283 "within a floating-point type.",
281284 [llvm_halforfloat_ty, LLVMMatchType<0>]>;
285+ def Floor : DXILOpMapping<27, unary, int_floor,
286+ "Returns the largest integer that is less than or equal to the input.",
287+ [llvm_halforfloat_ty, LLVMMatchType<0>]>;
282288def FMax : DXILOpMapping<35, binary, int_maxnum,
283289 "Float maximum. FMax(a,b) = a > b ? a : b">;
284290def FMin : DXILOpMapping<36, binary, int_minnum,
0 commit comments