[PATCH] D146715: [NVPTX] Enforce half type support is present for builtins

Jakub Chlanda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 23 05:33:44 PDT 2023


jchlanda created this revision.
jchlanda added a reviewer: tra.
Herald added subscribers: mattd, gchakrabarti, asavonic.
Herald added a project: All.
jchlanda requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, jholewinski.
Herald added projects: clang, LLVM.

Follow up to https://reviews.llvm.org/D145238 that enforces native half type support is present when using builtins and gives more descriptive error in not.
Tidy up `CodeGenFunction::EmitNVPTXBuiltinExpr` by moving helper lambdas to dedicated functions (most of helpers already reside in dedicated functions).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146715

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/builtins-nvptx-native-half-type-err.c
  llvm/include/llvm/IR/IntrinsicsNVVM.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146715.507687.patch
Type: text/x-patch
Size: 31217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230323/35203c20/attachment-0001.bin>


More information about the cfe-commits mailing list