@@ -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 t
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/68678
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/68678
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -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 t
@@ -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 t
@@ -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 t
@@ -560,11 +560,12 @@ ParsedTargetAttr TargetInfo::parseTargetAttr(StringRef
Features) const {
}
// While we're here iterating check for a different target cpu.
-if (Feature.startswith("arch=")) {
+if (Feature.startswith("arch=") || Feature.startswith("cpu="))
@@ -76,10 +80,14 @@ int __attribute__((target("fpmath=387"))) walrus(void) {
return 4; }
int __attribute__((target("float128,arch=hiss"))) meow(void) { return 4; }
// no warning, same as saying 'nothing'.
int __attribute__((target("arch="))) turtle(void) { return 4; }
+// no
https://github.com/ecnelises updated
https://github.com/llvm/llvm-project/pull/68678
>From 78f22a8a57f5b67660763b8c7731b9d3cddede72 Mon Sep 17 00:00:00 2001
From: Qiu Chaofan
Date: Tue, 10 Oct 2023 17:20:00 +0800
Subject: [PATCH 1/3] [Clang] Support target attr specifying CPU
Currently targets
https://github.com/DanielKristofKiss edited
https://github.com/llvm/llvm-project/pull/68678
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -76,10 +80,14 @@ int __attribute__((target("fpmath=387"))) walrus(void) {
return 4; }
int __attribute__((target("float128,arch=hiss"))) meow(void) { return 4; }
// no warning, same as saying 'nothing'.
int __attribute__((target("arch="))) turtle(void) { return 4; }
+// no
https://github.com/DanielKristofKiss requested changes to this pull request.
Could you please update the documentation too? (
https://clang.llvm.org/docs/AttributeReference.html#id587 lives here
`clang/include/clang/Basic/AttrDocs.td` )
https://github.com/llvm/llvm-project/pull/68678
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Qiu Chaofan (ecnelises)
Changes
Currently targets except AArch64 cannot recognize function attribute specifying
target CPU. Make it equivalent to `arch` directive.
---
Full diff: https://github.com/llvm/llvm-project/pull/68678.diff
2 Fi
https://github.com/ecnelises created
https://github.com/llvm/llvm-project/pull/68678
Currently targets except AArch64 cannot recognize function attribute specifying
target CPU. Make it equivalent to `arch` directive.
>From 78f22a8a57f5b67660763b8c7731b9d3cddede72 Mon Sep 17 00:00:00 2001
From:
14 matches
Mail list logo