[clang] [llvm] [HLSL] implement exp intrinsic (PR #83832)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 08:22:05 PST 2024


================
@@ -218,6 +218,9 @@ class DXILOpMapping<int opCode, DXILOpClass opClass, Intrinsic intrinsic, string
 // Concrete definition of DXIL Operation mapping to corresponding LLVM intrinsic
 def Sin  : DXILOpMapping<13, unary, int_sin,
                          "Returns sine(theta) for theta in radians.">;
+def Exp : DXILOpMapping<21, unary, int_exp,
+                         "Returns the base-e exponential of the x parameter."
----------------
farzonl wrote:

ok I see whats going on. seems like we should make exp2 the intrinsic then do exp separately. 

https://github.com/llvm/llvm-project/pull/83832


More information about the cfe-commits mailing list