[all-commits] [llvm/llvm-project] 886679: [OpenCL] Add OpenCL builtin test generator

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Jun 9 06:08:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8866793b4e0abd31e4f57abf9ba832d691a3a3e1
      https://github.com/llvm/llvm-project/commit/8866793b4e0abd31e4f57abf9ba832d691a3a3e1
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-06-09 (Wed, 09 Jun 2021)

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

  Log Message:
  -----------
  [OpenCL] Add OpenCL builtin test generator

Add a new clang-tblgen flag `-gen-clang-opencl-builtin-tests` that
generates a .cl file containing calls to every builtin function
defined in the .td input.

This patch does not add any use of the new flag yet, so the only way
to obtain a generated test file is through a manual invocation of
clang-tblgen.  A test making use of this emitter will be added in a
followup commit.

Differential Revision: https://reviews.llvm.org/D97869




More information about the All-commits mailing list