[clang] [Clang] Enable constexpr handling for builtin elementwise fshl/fshr (PR #153572)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 25 20:23:06 PDT 2025


================
@@ -2817,6 +2817,81 @@ static bool interp__builtin_select(InterpState &S, CodePtr OpPC,
   return true;
 }
 
+static bool interp__builtin_elementwise_fsh(InterpState &S, CodePtr OpPC,
+                                            const CallExpr *Call,
+                                            unsigned BuiltinID) {
+  assert(Call->getNumArgs() == 3);
+
+  const QualType Arg0Type = Call->getArg(0)->getType();
----------------
tbaederr wrote:

```suggestion
  QualType Arg0Type = Call->getArg(0)->getType();
```
Sorry, forgot that the last time.

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


More information about the cfe-commits mailing list