<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/91421>91421</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Add experimental_constrained_tan intrinsic
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            farzonl
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          farzonl
      </td>
    </tr>
</table>

<pre>
    We want to do the same thing that cos\sin do in the below examples:

```cpp
  case Builtin::BI__builtin_cos:
  case Builtin::BI__builtin_cosf:
  case Builtin::BI__builtin_cosf16:
  case Builtin::BI__builtin_cosl:
  case Builtin::BI__builtin_cosf128:
    return RValue::get(emitUnaryMaybeConstrainedFPBuiltin(*this, E,
 Intrinsic::cos,
 Intrinsic::experimental_constrained_cos));
  
  case Builtin::BI__builtin_sin:
  case Builtin::BI__builtin_sinf:
  case Builtin::BI__builtin_sinf16:
  case Builtin::BI__builtin_sinl:
  case Builtin::BI__builtin_sinf128:
    return RValue::get(emitUnaryMaybeConstrainedFPBuiltin(*this, E,
 Intrinsic::sin,
 Intrinsic::experimental_constrained_sin));

```

_Originally posted by @farzonl in https://github.com/llvm/llvm-project/issues/90276#issuecomment-2083588945_
 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8VNuK2zAQ_Rr5RWyQx5fID35Isg1d2NLS0vYxyNasrSJLRpKbTb---MZuCwsJhYKw4ejozOUwI7xXjUEsSbYnAE_C_bJGEwCS3UdiCK115QJGlZWX8jvSszCBBkulpaFF6kWHNLTKNDS0ItDaepIdvDIjQZmJU6G2Z4rPous1epLsCLsnbP3mbD51388IpbXwSPeD0kGZkZ7s9g-nUzUDpzHEqnEF9-kmcpzfQte3aQN_xafUYRicoZ-_CT3g_KTBQIBjp8JXI9zlg7hUeLDGByeUQXn8tAYATmAXWuUJHOg7AodF9sEEp4xX9aw39uqtO3zu0akOTRD6VL8EmRoMxXiS_ZrtdVX6GbyWe701I_kGa7wy11szaf9_a8Ze3WzN9OgPa_6aotfg6aNTjTJC6wvtrQ8oaXWhJGXLTI_z2YbQT-MERwLHRoV2qDa17Qgctf65_u56Z39gHQgclfcDegLHgsE2J5BMQG27Mds7YDzJOC_S7LRUFskykUVSiAjLeBtncZKnWxa1JcdEMsl4IuKCQ4Z5VWCMHGSdyxyzJFIlMEhZxjiDdJuxjeC8ZikHWW2FKFIkKcNOKL0ZU9xY10RTLmURpxBHWlSo_bLaDJ7pdLksN1dOZVVD40nKtPLBv6gEFfS0E98_fnkk2T3dSUnftCQIQ9VqXzQ4Xf5DT8fMfwcAAP__9mjB_A">