[all-commits] [llvm/llvm-project] a3248e: [CUDA] Add getTargetFeatures for the NVPTX toolchain

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Mar 21 13:32:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3248e4b28ce09c3a749ecae5378dd0b3a8d42b1
      https://github.com/llvm/llvm-project/commit/a3248e4b28ce09c3a749ecae5378dd0b3a8d42b1
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/Cuda.cpp
    M clang/lib/Driver/ToolChains/Cuda.h

  Log Message:
  -----------
  [CUDA] Add getTargetFeatures for the NVPTX toolchain

The NVPTX toolchain uses target features to determine the PTX version to
use. However this isn't exposed externally like most other toolchain
specific target features are. Add this functionaliy in preparation for
using it in for OpenMP offloading.

Reviewed By: jdoerfert, tra

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




More information about the All-commits mailing list