[Openmp-commits] [openmp] [Clang] Support target attr specifying CPU (PR #68678)

Fangrui Song via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 16 13:58:39 PDT 2023

@@ -2420,11 +2420,11 @@ command line.
 The current set of options correspond to the existing "subtarget features" for
 the target with or without a "-mno-" in front corresponding to the absence
-of the feature, as well as ``arch="CPU"`` which will change the default "CPU"
-for the function.
+of the feature, as well as ``arch="CPU"`` and ``cpu="CPU"`` which will change
+the default "CPU" for the function.
MaskRay wrote:

I have some notes at https://maskray.me/blog/2022-08-28-march-mcpu-mtune . It seems that x86 uses `-march=` for what some other architectures (aarch64,arm,riscv,etc) use for `-mcpu=`...


More information about the Openmp-commits mailing list