[all-commits] [llvm/llvm-project] 21e29b: [Clang] Allow multiple comma separated arguments t...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jun 22 06:25:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21e29b6ce734cca1557aa801740078d98c3ff447
      https://github.com/llvm/llvm-project/commit/21e29b6ce734cca1557aa801740078d98c3ff447
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/cuda-bindings.cu
    M clang/test/Driver/openmp-offload-gpu-new.c

  Log Message:
  -----------
  [Clang] Allow multiple comma separated arguments to `--offload-arch=`

This patch updates the `--[no-]offload-arch` command line arguments to
allow the user to pass in many architectures in a single argument rather
than specifying it multiple times. This means that the following command
line,
```
clang foo.cu --offload-arch=sm_70 --offload-arch=sm_80
```
can become:
```
clang foo.cu --offload-arch=sm_70,sm_80
```

Reviewed By: ye-luo

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




More information about the All-commits mailing list