[clang] [llvm] [NVPTX] Add ex2.approx bf16 support and cleanup intrinsic definition (PR #165446)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 31 10:54:31 PDT 2025


================
@@ -375,28 +375,28 @@ static Value *MakeCpAsync(unsigned IntrinsicID, unsigned IntrinsicIDS,
                                        CGF.EmitScalarExpr(E->getArg(1))});
 }
 
-static Value *MakeHalfType(unsigned IntrinsicID, unsigned BuiltinID,
-                           const CallExpr *E, CodeGenFunction &CGF) {
+static bool EnsureNativeHalfSupport(unsigned BuiltinID, const CallExpr *E,
+                                    CodeGenFunction &CGF) {
----------------
Artem-B wrote:

Naming nit: `Ensure` sounds like an action, while we need a predicate. Perhaps `IsNativeHalfUsable` would match the functionality better.

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


More information about the cfe-commits mailing list