[clang] [clang][X86] Support __attribute__((model("small"/"large"))) (PR #124834)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 11:44:31 PST 2025
================
@@ -5,7 +5,7 @@
// RUN: %clang_cc1 -triple riscv64 -verify=expected,riscv64 -fsyntax-only %s
// RUN: %clang_cc1 -triple x86_64 -verify=expected,x86_64 -fsyntax-only %s
----------------
Artem-B wrote:
nvptx does not *use* the code models, but CUDA compilation will *see* those attribute in the host code in the same TU. The main goal here is to make sure the GPU-side compilation will not be broken. I guess it may need a separate test under test/SemaCUDA/ where we have things set up to run a CUDA compilation.
You could use RUN lines in ["test/SemaCUDA/function-target.cu"](https://github.com/llvm/llvm-project/blob/d3161defd6b717241a85b6ca528754c747060735/clang/test/SemaCUDA/function-target.cu#L1) as the base and the same content as you have in clang/test/CodeGen/X86/codemodel.cpp
https://github.com/llvm/llvm-project/pull/124834
More information about the cfe-commits
mailing list