[Mlir-commits] [lld] [libc] [openmp] [lldb] [compiler-rt] [clang] [libcxx] [llvm] [clang-tools-extra] [mlir] [pstl] [Driver] Test ignored target-specific options for AMDGPU/NVPTX (PR #79222)

Fangrui Song llvmlistbot at llvm.org
Wed Jan 24 10:06:20 PST 2024


================
@@ -0,0 +1,5 @@
+/// Some target-specific options are ignored for GPU, so %clang exits with code 0.
+// DEFINE: %{check} = %clang -### -c -mcmodel=medium
----------------
MaskRay wrote:

In general the error reporting is done in the driver and cc1 allows and ignores options that may be specific to other targets.

> That said, we do have other options that we do need to suppress/ignore and some of that does happen on cc1 level.

Perhaps we should figure out them and check whether they should be moved to the driver

https://github.com/llvm/llvm-project/pull/79222


More information about the Mlir-commits mailing list