[all-commits] [llvm/llvm-project] 8c3fa3: [OpenCL][TableGen] Fix type extension guard emission

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Jun 20 02:07:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c3fa31701c4b874138c52266e7ab96818092f47
      https://github.com/llvm/llvm-project/commit/8c3fa31701c4b874138c52266e7ab96818092f47
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp

  Log Message:
  -----------
  [OpenCL][TableGen] Fix type extension guard emission

For certain cases (such as for the double subtype of AGenType), the
OpenCLBuiltinFileEmitterBase would not emit the extension #if-guard.
Fix that by looking at the extension of the actual type instead of the
argument type (which could be a GenType that does not carry any
extension information).




More information about the All-commits mailing list