[clang] [Headers][X86] Add more descriptions to ia32intrin.h and immintrin.h (PR #77686)

2024-01-16 Thread Phoebe Wang via cfe-commits
@@ -173,25 +183,59 @@ __popcntq(unsigned long long __A) #endif /* __x86_64__ */ #ifdef __x86_64__ +/// Returns the program status and control \c RFLAGS register with the \c VM +///and \c RF flags cleared. +/// +/// \headerfile +/// +/// This intrinsic corresponds to the \

[clang] [Headers][X86] Add more descriptions to ia32intrin.h and immintrin.h (PR #77686)

2024-01-16 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/77686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [X86] Use vXi1 for `k` constraint in inline asm (PR #77733)

2024-01-16 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/77733 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [X86] Use vXi1 for `k` constraint in inline asm (PR #77733)

2024-01-16 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Thanks @KanRobert ! https://github.com/llvm/llvm-project/pull/77733 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86_64] fix empty structure vaarg in c++ (PR #77907)

2024-01-16 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > I've revised it. Can you check it again? @phoebewang I'm not sure the usage of the `isEmptyRecord`. Tagging @asb who modified the interface recently. https://github.com/llvm/llvm-project/pull/77907 ___ cfe-commits mailing list cfe

[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)

2024-01-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/78613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)

2024-01-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang commented: > Is _bswap (one underscore) a mistake? The [12.0 release > notes](https://releases.llvm.org/12.0.0/tools/clang/docs/ReleaseNotes.html#x86-support-in-clang) > say it has two underscores. I think single underscore is correct, it conform the difination in

[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)

2024-01-18 Thread Phoebe Wang via cfe-commits
@@ -411,13 +497,45 @@ __rdpmc(int __A) { /// \param __A ///Address of where to store the 32-bit \c IA32_TSC_AUX value. /// \returns The 64-bit value of the time stamp counter. +/// \see _rdtsc static __inline__ unsigned long long __DEFAULT_FN_ATTRS __rdtscp(unsigned int *

[llvm] [clang] Adding support of AMDLIBM vector library (PR #78560)

2024-01-18 Thread Phoebe Wang via cfe-commits
@@ -1279,6 +1281,213 @@ void TargetLibraryInfoImpl::addVectorizableFunctionsFromVecLib( } break; } + case AMDLIBM: { +#define FIXED(NL) ElementCount::getFixed(NL) +const VecDesc VecFuncs[] = { phoebewang wrote: Move them to `VecFuncs.def`? htt

[clang] [llvm] Adding support of AMDLIBM vector library (PR #78560)

2024-01-18 Thread Phoebe Wang via cfe-commits
@@ -129,7 +129,8 @@ class TargetLibraryInfoImpl { MASSV,// IBM MASS vector library. SVML, // Intel short vector math library. SLEEFGNUABI, // SLEEF - SIMD Library for Evaluating Elementary Functions. -ArmPL// Arm Performance Libra

[clang] [llvm] Adding support of AMDLIBM vector library (PR #78560)

2024-01-18 Thread Phoebe Wang via cfe-commits
@@ -3190,10 +3190,10 @@ def fno_experimental_isel : Flag<["-"], "fno-experimental-isel">, Group, - Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,none">, + Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM,none">, -

[clang] [llvm] Adding support of AMDLIBM vector library (PR #78560)

2024-01-19 Thread Phoebe Wang via cfe-commits
@@ -3190,10 +3190,10 @@ def fno_experimental_isel : Flag<["-"], "fno-experimental-isel">, Group, - Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,none">, + Values<"Accelerate,libmvec,MASSV,SVML,SLEEF,Darwin_libsystem_m,ArmPL,AMDLIBM,none">, -

[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)

2024-01-19 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/78613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Enable feature ndd for -mapxf (PR #78901)

2024-01-21 Thread Phoebe Wang via cfe-commits
@@ -803,10 +803,10 @@ // RUN: %clang -target x86_64-unknown-unknown -march=x86-64 -mapx-features=ndd -x c -E -dM -o - %s | FileCheck --check-prefix=NDD %s // RUN: %clang -target x86_64-unknown-unknown -march=x86-64 -mapx-features=ccmp -x c -E -dM -o - %s | FileCheck --check-pr

[clang] [X86][Driver] Enable feature ndd for -mapxf (PR #78901)

2024-01-21 Thread Phoebe Wang via cfe-commits
@@ -803,10 +803,10 @@ // RUN: %clang -target x86_64-unknown-unknown -march=x86-64 -mapx-features=ndd -x c -E -dM -o - %s | FileCheck --check-prefix=NDD %s // RUN: %clang -target x86_64-unknown-unknown -march=x86-64 -mapx-features=ccmp -x c -E -dM -o - %s | FileCheck --check-pr

[clang] [X86][Driver] Enable feature ndd for -mapxf (PR #78901)

2024-01-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/78901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Add macro descriptions to bmiintrin.h (PR #79048)

2024-01-22 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/79048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [compiler-rt] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

2024-01-22 Thread Phoebe Wang via cfe-commits
@@ -173,85 +173,84 @@ X86_FEATURE_COMPAT(AVX512VNNI, "avx512vnni", 34) X86_FEATURE_COMPAT(AVX512BITALG,"avx512bitalg", 35) X86_FEATURE_COMPAT(AVX512BF16, "avx512bf16",36) X86_FEATURE_COMPAT(AVX512VP2INTERSECT, "avx512vp2intersect",

[clang] [llvm] [compiler-rt] [X86] Support more ISAs to enable __builtin_cpu_supports (PR #79086)

2024-01-22 Thread Phoebe Wang via cfe-commits
@@ -173,85 +173,84 @@ X86_FEATURE_COMPAT(AVX512VNNI, "avx512vnni", 34) X86_FEATURE_COMPAT(AVX512BITALG,"avx512bitalg", 35) X86_FEATURE_COMPAT(AVX512BF16, "avx512bf16",36) X86_FEATURE_COMPAT(AVX512VP2INTERSECT, "avx512vp2intersect",

[clang] de34a94 - [X86] Add -mskip-rax-setup support to align with GCC

2021-11-17 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2021-11-18T11:20:32+08:00 New Revision: de34a940ae72dfa6425a025538484f9505ca1d42 URL: https://github.com/llvm/llvm-project/commit/de34a940ae72dfa6425a025538484f9505ca1d42 DIFF: https://github.com/llvm/llvm-project/commit/de34a940ae72dfa6425a025538484f9505ca1d42.diff L

[clang] a9fba2b - [X86][ABI] Do not return float/double from x87 registers when x87 is disabled

2021-11-17 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2021-11-18T12:31:08+08:00 New Revision: a9fba2be35db674971382e38b99a31403444d9bf URL: https://github.com/llvm/llvm-project/commit/a9fba2be35db674971382e38b99a31403444d9bf DIFF: https://github.com/llvm/llvm-project/commit/a9fba2be35db674971382e38b99a31403444d9bf.diff L

[clang] 6113ea8 - [X86][Driver] Add X86 target option to avoid fail to other targets. NFC

2021-11-17 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2021-11-18T12:37:36+08:00 New Revision: 6113ea8124d7db8620d392c85f96d78784918306 URL: https://github.com/llvm/llvm-project/commit/6113ea8124d7db8620d392c85f96d78784918306 DIFF: https://github.com/llvm/llvm-project/commit/6113ea8124d7db8620d392c85f96d78784918306.diff L

[clang] 42c15c7 - [X86][clang] Enable floating-point type for -mno-x87 option on 32-bits

2021-11-29 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2021-11-30T14:08:10+08:00 New Revision: 42c15c7edf174fc7a45131a1b89ee816fada7633 URL: https://github.com/llvm/llvm-project/commit/42c15c7edf174fc7a45131a1b89ee816fada7633 DIFF: https://github.com/llvm/llvm-project/commit/42c15c7edf174fc7a45131a1b89ee816fada7633.diff L

[clang] 62ca791 - [X86][1/2] Support PREFETCHI instructions

2022-10-19 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-10-20T08:46:01+08:00 New Revision: 62ca79102cf9646aa9ed0dac7f018432a68eedf1 URL: https://github.com/llvm/llvm-project/commit/62ca79102cf9646aa9ed0dac7f018432a68eedf1 DIFF: https://github.com/llvm/llvm-project/commit/62ca79102cf9646aa9ed0dac7f018432a68eedf1.diff L

[clang] e0fb01e - [X86] Move 128/256-bit FP16/BF16 typedef to emmintrin.h or avxintrin.h, NFCI

2022-10-19 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-10-20T14:15:09+08:00 New Revision: e0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb URL: https://github.com/llvm/llvm-project/commit/e0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb DIFF: https://github.com/llvm/llvm-project/commit/e0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb.diff L

[clang] b51b90d - [X86][1/2] SUPPORT RAO-INT

2022-10-27 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-10-27T17:20:07+08:00 New Revision: b51b90d6e25c3a3129608e2d764cae8818b7ad15 URL: https://github.com/llvm/llvm-project/commit/b51b90d6e25c3a3129608e2d764cae8818b7ad15 DIFF: https://github.com/llvm/llvm-project/commit/b51b90d6e25c3a3129608e2d764cae8818b7ad15.diff L

[clang] e26f287 - Fix buildbot fail

2022-10-27 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-10-27T18:23:19+08:00 New Revision: e26f28711c1f81b7f74ce749269e7539492d3934 URL: https://github.com/llvm/llvm-project/commit/e26f28711c1f81b7f74ce749269e7539492d3934 DIFF: https://github.com/llvm/llvm-project/commit/e26f28711c1f81b7f74ce749269e7539492d3934.diff L

[clang] df23fc4 - [X86][AVX512FP16] Add the missing const modifiers. NFCI

2022-08-22 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-08-22T22:07:42+08:00 New Revision: df23fc4f7fe7b9210217cbd37c409fc76d4ff136 URL: https://github.com/llvm/llvm-project/commit/df23fc4f7fe7b9210217cbd37c409fc76d4ff136 DIFF: https://github.com/llvm/llvm-project/commit/df23fc4f7fe7b9210217cbd37c409fc76d4ff136.diff L

[clang] 08388ad - [X86][AVX512FP16] Relax limitation to AVX512FP16 intrinsics. NFCI

2022-08-22 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-08-23T11:35:16+08:00 New Revision: 08388ad81e9d65116b0857b0ebc9bcf7f2be5e31 URL: https://github.com/llvm/llvm-project/commit/08388ad81e9d65116b0857b0ebc9bcf7f2be5e31 DIFF: https://github.com/llvm/llvm-project/commit/08388ad81e9d65116b0857b0ebc9bcf7f2be5e31.diff L

[clang] 490de4a - [Clang][NFC] update obsolete check predicate

2022-09-18 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-09-18T18:00:36+08:00 New Revision: 490de4ab47c8e22f7a48d9da785390e23df9e25f URL: https://github.com/llvm/llvm-project/commit/490de4ab47c8e22f7a48d9da785390e23df9e25f DIFF: https://github.com/llvm/llvm-project/commit/490de4ab47c8e22f7a48d9da785390e23df9e25f.diff L

[clang] 2f8a4ac - [Clang][NFC] update predicate and reduce redundant check

2022-09-18 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-09-18T21:56:31+08:00 New Revision: 2f8a4acf1ad7790a82619932b198b7b7d07cd027 URL: https://github.com/llvm/llvm-project/commit/2f8a4acf1ad7790a82619932b198b7b7d07cd027 DIFF: https://github.com/llvm/llvm-project/commit/2f8a4acf1ad7790a82619932b198b7b7d07cd027.diff L

[clang] 46bb4b9 - [X86][fastcall][vectorcall] Move capability check before free register update

2022-09-19 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-09-20T09:18:23+08:00 New Revision: 46bb4b99ae9f7b043c58d0b17df031bd02ccfd01 URL: https://github.com/llvm/llvm-project/commit/46bb4b99ae9f7b043c58d0b17df031bd02ccfd01 DIFF: https://github.com/llvm/llvm-project/commit/46bb4b99ae9f7b043c58d0b17df031bd02ccfd01.diff L

[clang] 073cc29 - [X86][Reduce] Preserve fast math flags when change it. NFCI

2022-12-23 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-12-24T11:41:17+08:00 New Revision: 073cc29e04b756cb4997bf3538c733c0938cd4ae URL: https://github.com/llvm/llvm-project/commit/073cc29e04b756cb4997bf3538c733c0938cd4ae DIFF: https://github.com/llvm/llvm-project/commit/073cc29e04b756cb4997bf3538c733c0938cd4ae.diff L

[clang] 5251678 - [X86][CET] Add Diags for targets pre to i686 for `-fcf-protection`

2022-11-03 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-11-04T12:38:29+08:00 New Revision: 52516782972730ff065a34123a9d8876da08c254 URL: https://github.com/llvm/llvm-project/commit/52516782972730ff065a34123a9d8876da08c254 DIFF: https://github.com/llvm/llvm-project/commit/52516782972730ff065a34123a9d8876da08c254.diff L

[clang] 13f8336 - [Driver] Add -fsample-profile-use-profi

2022-11-07 Thread Phoebe Wang via cfe-commits
Author: haoyuintel Date: 2022-11-08T15:51:38+08:00 New Revision: 13f83365cdb5bb752066ee8f4149ae24dfe46cf1 URL: https://github.com/llvm/llvm-project/commit/13f83365cdb5bb752066ee8f4149ae24dfe46cf1 DIFF: https://github.com/llvm/llvm-project/commit/13f83365cdb5bb752066ee8f4149ae24dfe46cf1.diff LO

[clang] a2ea5b4 - [X86] Add support for `-mharden-sls=[none|all|return|indirect-jmp]`

2022-05-31 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-06-01T09:45:04+08:00 New Revision: a2ea5b496bcd3762f96c38a09db1d38729fa6325 URL: https://github.com/llvm/llvm-project/commit/a2ea5b496bcd3762f96c38a09db1d38729fa6325 DIFF: https://github.com/llvm/llvm-project/commit/a2ea5b496bcd3762f96c38a09db1d38729fa6325.diff L

[clang] 52818fd - [Clang][FP16] Add 4 builtins for _Float16

2022-06-05 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2022-06-06T09:00:26+08:00 New Revision: 52818fd97f0f2b13d12e66de9f06b9f4cbc0be07 URL: https://github.com/llvm/llvm-project/commit/52818fd97f0f2b13d12e66de9f06b9f4cbc0be07 DIFF: https://github.com/llvm/llvm-project/commit/52818fd97f0f2b13d12e66de9f06b9f4cbc0be07.diff L

[clang] main (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/67278 - Reapply "[AArch64] Merge LDRSWpre-LD[U]RSW pair into LDPSWpre" - Revert "[ORC][LLJIT] Move enable-debugger-support utility out of LLJITBuilder." - [gn build] Port e5f169f91a86 - [ConstraintElimination] Intro

[clang] main (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang reopened https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang] [X86][FP16] Add missing handling for FP16 constrained cmp intrinsics (PR #67400)

2023-09-26 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/67400 None >From 08a386acd5e14a7af905ae3ea819e5d29d84e4c1 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Tue, 26 Sep 2023 16:07:17 +0800 Subject: [PATCH] [X86][FP16] Add missing handling for FP16 constrained cmp

[clang] [X86][FP16] Add missing handling for FP16 constrained cmp intrinsics (PR #67400)

2023-09-26 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/67400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Change target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2 (PR #67410)

2023-09-26 Thread Phoebe Wang via cfe-commits
@@ -4742,6 +4742,125 @@ static __inline__ __m128d __DEFAULT_FN_ATTRS _mm_castsi128_pd(__m128i __a) { return (__m128d)__a; } +/// Compares each of the corresponding double-precision values of two +///128-bit vectors of [2 x double], using the operation specified by the +

[clang] [X86] Change target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2 (PR #67410)

2023-09-27 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/67410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-30 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang] Fix typo "x84_64" (PR #68419)

2023-10-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. Good catch, thanks! https://github.com/llvm/llvm-project/pull/68419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix typo "x84_64" (PR #68419)

2023-10-06 Thread Phoebe Wang via cfe-commits
phoebewang wrote: I think it's ok to merge. https://github.com/llvm/llvm-project/pull/68419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][NFC]Update test cases after D159250 (PR #68517)

2023-10-08 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/68517 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-12 Thread Phoebe Wang via cfe-commits
@@ -20,6 +20,11 @@ #include #endif +#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \ +defined(__UINTR__) phoebewang wrote: __USERMSR__ https://github.com/llvm/llvm-project/pull/68944 _

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-12 Thread Phoebe Wang via cfe-commits
@@ -922,8 +922,6 @@ endif() include(HandleLLVMOptions) -## - phoebewang wrote: Unrelated change https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-12 Thread Phoebe Wang via cfe-commits
@@ -241,6 +241,7 @@ X86_FEATURE (SM3, "sm3") X86_FEATURE (SM4, "sm4") X86_FEATURE (AVXVNNIINT16,"avxvnniint16") X86_FEATURE (EVEX512, "evex512") +X86_FEATURE (USERMSR,"usermsr") phoeb

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-12 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,26 @@ +# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT +# RUN: llvm-mc --disassemble %s -triple=x86_64 --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL + +# ATT: urdmsr $123, %r9 +# INTEL: urdmsr r9, 123 +0xc4,0xc7,0x7b

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-12 Thread Phoebe Wang via cfe-commits
@@ -325,6 +325,8 @@ def FeatureTSXLDTRK : SubtargetFeature<"tsxldtrk", "HasTSXLDTRK", "true", "Support TSXLDTRK instructions">; def FeatureUINTR : SubtargetFeature<"uintr", "HasUINTR", "true", "Has UINT

[clang] [X86] Add USER_MSR instructions. (PR #68944)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. https://github.com/llvm/llvm-project/pull/68944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-15 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Ping~ https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Support -march=pantherlake, clearwaterforest (PR #69277)

2023-10-17 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/69277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-17 Thread Phoebe Wang via cfe-commits
@@ -130,17 +131,35 @@ bool X86TargetInfo::initFeatureMap( continue; } -if (!HasAVX512F && Feature.substr(0, 7) == "+avx512") +if (Feature.substr(0, 7) == "+avx10.") { + HasAVX10 = true; HasAVX512F = true; -if (HasAVX512F && Feature == "-avx512

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-18 Thread Phoebe Wang via cfe-commits
@@ -130,17 +131,35 @@ bool X86TargetInfo::initFeatureMap( continue; } -if (!HasAVX512F && Feature.substr(0, 7) == "+avx512") +if (Feature.substr(0, 7) == "+avx10.") { + HasAVX10 = true; HasAVX512F = true; -if (HasAVX512F && Feature == "-avx512

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[libunwind] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang-tools-extra] [X86][RFC] Support AVX10 options (PR #67278)

2023-10-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture Specifi

[clang] [X86] Align 128/256 variants to use void * as 512 variants. (PR #66310)

2023-09-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/66310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Align 128/256 variants to use void * as 512 variants. (PR #66310)

2023-09-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/66310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Align 128/256 variants to use void * as 512 variants. (PR #66310)

2023-09-14 Thread Phoebe Wang via cfe-commits
@@ -645,7 +645,7 @@ static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_mul_epi32(__m128i __V1, /// \returns A 128-bit integer vector containing the data stored at the ///specified memory location. static __inline__ __m128i __DEFAULT_FN_ATTRS -_mm_stream_load_si128(__m128i co

[clang] [X86] Align 128/256 variants to use void * as 512 variants. (PR #66310)

2023-09-14 Thread Phoebe Wang via cfe-commits
@@ -2979,7 +2979,7 @@ _mm256_xor_si256(__m256i __a, __m256i __b) ///A pointer to the 32-byte aligned memory containing the vector to load. /// \returns A 256-bit integer vector loaded from memory. static __inline__ __m256i __DEFAULT_FN_ATTRS256 -_mm256_stream_load_si256(__m

[clang] [X86] Align 128/256 variants to use void * as 512 variants. (PR #66310)

2023-09-14 Thread Phoebe Wang via cfe-commits
@@ -358,6 +358,12 @@ __m128i test_mm_stream_load_si128(__m128i const *a) { return _mm_stream_load_si128(a); } +__m128i test_mm_stream_load_si128_void(void const *a) { phoebewang wrote: `const void`? https://github.com/llvm/llvm-project/pull/66310 _

[clang] [clang][Docs] Document X86 interrupt attribute (PR #65662)

2023-09-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. I didn't review Clang document before, but I'll give approval since I don't find anything blocking it. https://github.com/llvm/llvm-project/pull/65662 ___ cfe-commits mailing list cfe-com

[clang] fa1dc06 - [clang][X86] Update excessive register save diagnostic to more closely follow the interrupt attribute spec

2023-08-29 Thread Phoebe Wang via cfe-commits
Author: Antonio Abbatangelo Date: 2023-08-30T11:52:04+08:00 New Revision: fa1dc06a1b3997f025b0d81539c31a74e6b6ec79 URL: https://github.com/llvm/llvm-project/commit/fa1dc06a1b3997f025b0d81539c31a74e6b6ec79 DIFF: https://github.com/llvm/llvm-project/commit/fa1dc06a1b3997f025b0d81539c31a74e6b6ec79

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group yo m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/65457: m_x86_Features_Group always turn `mno-` into `-target-feature-`. In this case, we don't have `-gather/-scatter` but `+prefer-no-gather/scatter`. >From be58af68f221bb65788e74f8cfe4952c1038ae70 Mon Sep

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group yo m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang review_requested https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group yo m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group yo m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group yo m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang review_requested https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group to m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group to m_Group. NFCI (PR #65457)

2023-09-06 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/65457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 862c3d4 - Fix obvious typo

2022-11-29 Thread Phoebe Wang via cfe-commits
Author: Gabriel F. T. Gomes Date: 2022-11-30T14:01:08+08:00 New Revision: 862c3d4fbe185c3d77c067e6e6ad1f07082a31e1 URL: https://github.com/llvm/llvm-project/commit/862c3d4fbe185c3d77c067e6e6ad1f07082a31e1 DIFF: https://github.com/llvm/llvm-project/commit/862c3d4fbe185c3d77c067e6e6ad1f07082a31e1

[clang] 94c5df8 - [AMX] Support AMX-FP16 new intrinsic interface

2022-11-30 Thread Phoebe Wang via cfe-commits
Author: Xiang1 Zhang Date: 2022-12-01T09:47:53+08:00 New Revision: 94c5df8a7618b4d0fae8796d393bcc0d32c845ee URL: https://github.com/llvm/llvm-project/commit/94c5df8a7618b4d0fae8796d393bcc0d32c845ee DIFF: https://github.com/llvm/llvm-project/commit/94c5df8a7618b4d0fae8796d393bcc0d32c845ee.diff

[clang] 0cc66f3 - [Windows SEH] Fix catch+return crash for Windows -EHa

2023-03-31 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-04-01T14:53:33+08:00 New Revision: 0cc66f3c779b80a199d692fa84f7ed8d29373d1c URL: https://github.com/llvm/llvm-project/commit/0cc66f3c779b80a199d692fa84f7ed8d29373d1c DIFF: https://github.com/llvm/llvm-project/commit/0cc66f3c779b80a199d692fa84f7ed8d29373d1c.diff L

[clang] b7e20aa - [Doc][NFC] Fix a typo

2023-04-07 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-04-07T23:34:26+08:00 New Revision: b7e20aa9b7d31e91db6df82baba30b8d33050638 URL: https://github.com/llvm/llvm-project/commit/b7e20aa9b7d31e91db6df82baba30b8d33050638 DIFF: https://github.com/llvm/llvm-project/commit/b7e20aa9b7d31e91db6df82baba30b8d33050638.diff L

[clang] a3f6884 - [Windows SEH] Fix ehcleanup crash for Windows -EHa

2023-04-11 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-04-12T14:44:11+08:00 New Revision: a3f688422c44519b578f9ae728b955aabe6b494e URL: https://github.com/llvm/llvm-project/commit/a3f688422c44519b578f9ae728b955aabe6b494e DIFF: https://github.com/llvm/llvm-project/commit/a3f688422c44519b578f9ae728b955aabe6b494e.diff L

[clang] a4f366d - Reland "[Driver] Support multi /guard: options"

2023-05-19 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-20T14:44:05+08:00 New Revision: a4f366dcd85c440a611bbc82f1d24c2d9a735251 URL: https://github.com/llvm/llvm-project/commit/a4f366dcd85c440a611bbc82f1d24c2d9a735251 DIFF: https://github.com/llvm/llvm-project/commit/a4f366dcd85c440a611bbc82f1d24c2d9a735251.diff L

[clang] bc9fda0 - Revert "Reland "[Driver] Support multi /guard: options""

2023-05-21 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-21T22:39:37+08:00 New Revision: bc9fda01ad1341519694bbf1e1b738298e3395f3 URL: https://github.com/llvm/llvm-project/commit/bc9fda01ad1341519694bbf1e1b738298e3395f3 DIFF: https://github.com/llvm/llvm-project/commit/bc9fda01ad1341519694bbf1e1b738298e3395f3.diff L

[clang] caf01f9 - Reland "[Driver] Support multi /guard: options"

2023-05-21 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-21T22:43:30+08:00 New Revision: caf01f9b1df732d4eda1577123be7ec5da964f8f URL: https://github.com/llvm/llvm-project/commit/caf01f9b1df732d4eda1577123be7ec5da964f8f DIFF: https://github.com/llvm/llvm-project/commit/caf01f9b1df732d4eda1577123be7ec5da964f8f.diff L

[clang] 2f0a169 - Reland "[Driver] Support multi /guard: options"

2023-05-21 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-21T22:49:34+08:00 New Revision: 2f0a1699eab7c00a64312e7f87e0d85a2e9b9e6e URL: https://github.com/llvm/llvm-project/commit/2f0a1699eab7c00a64312e7f87e0d85a2e9b9e6e DIFF: https://github.com/llvm/llvm-project/commit/2f0a1699eab7c00a64312e7f87e0d85a2e9b9e6e.diff L

[clang] c2cec8a - Revert "Reland "[Driver] Support multi /guard: options""

2023-05-21 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-21T22:48:35+08:00 New Revision: c2cec8a91cf948aac6ec7c7b4e74aab2236769bd URL: https://github.com/llvm/llvm-project/commit/c2cec8a91cf948aac6ec7c7b4e74aab2236769bd DIFF: https://github.com/llvm/llvm-project/commit/c2cec8a91cf948aac6ec7c7b4e74aab2236769bd.diff L

[clang] e621757 - [Clang][BFloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support

2023-05-26 Thread Phoebe Wang via cfe-commits
Author: M. Zeeshan Siddiqui Date: 2023-05-27T13:33:50+08:00 New Revision: e62175736551abf40a3410bc246f58e650eb8158 URL: https://github.com/llvm/llvm-project/commit/e62175736551abf40a3410bc246f58e650eb8158 DIFF: https://github.com/llvm/llvm-project/commit/e62175736551abf40a3410bc246f58e650eb8158

[clang] dd2e681 - [Docs] Fix Sphinx documentation formatting issues in LanguageExtensions.rst

2023-05-27 Thread Phoebe Wang via cfe-commits
Author: M. Zeeshan Siddiqui Date: 2023-05-27T16:45:21+08:00 New Revision: dd2e681612f1f09d92abc9e16f5f65293e3fe725 URL: https://github.com/llvm/llvm-project/commit/dd2e681612f1f09d92abc9e16f5f65293e3fe725 DIFF: https://github.com/llvm/llvm-project/commit/dd2e681612f1f09d92abc9e16f5f65293e3fe725

[clang] 3b6f7e4 - [Driver] Support multi /guard: options

2023-05-16 Thread Phoebe Wang via cfe-commits
Author: Phoebe Wang Date: 2023-05-16T23:47:44+08:00 New Revision: 3b6f7e45a20990fdbc2b43dc08457fc79d53bd39 URL: https://github.com/llvm/llvm-project/commit/3b6f7e45a20990fdbc2b43dc08457fc79d53bd39 DIFF: https://github.com/llvm/llvm-project/commit/3b6f7e45a20990fdbc2b43dc08457fc79d53bd39.diff L

[clang] [Headers][X86] Make brief descriptions briefer (PR #82422)

2024-02-20 Thread Phoebe Wang via cfe-commits
@@ -2099,9 +2099,11 @@ static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi64(__m128i __a, } /// Adds, with saturation, the corresponding elements of two 128-bit -///signed [16 x i8] vectors, saving each sum in the corresponding element of -///a 128-bit result ve

[clang] [Headers][X86] Make brief descriptions briefer (PR #82422)

2024-02-20 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/82422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Make brief descriptions briefer (PR #82422)

2024-02-21 Thread Phoebe Wang via cfe-commits
@@ -2099,9 +2099,11 @@ static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi64(__m128i __a, } /// Adds, with saturation, the corresponding elements of two 128-bit -///signed [16 x i8] vectors, saving each sum in the corresponding element of -///a 128-bit result ve

[clang] [compiler-rt] [llvm] [X86] Support APXF to enable __builtin_cpu_supports. (PR #80636)

2024-02-22 Thread Phoebe Wang via cfe-commits
@@ -1845,6 +1845,12 @@ bool sys::getHostCPUFeatures(StringMap &Features) { Features["prefetchi"] = HasLeaf7Subleaf1 && ((EDX >> 14) & 1); Features["usermsr"] = HasLeaf7Subleaf1 && ((EDX >> 15) & 1); Features["avx10.1-256"] = HasLeaf7Subleaf1 && ((EDX >> 19) & 1); + Fea

[clang] [compiler-rt] [llvm] [X86] Support APXF to enable __builtin_cpu_supports. (PR #80636)

2024-02-22 Thread Phoebe Wang via cfe-commits
phoebewang wrote: You may also need to transfer "apxf" feature into subfeatures here https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/X86.cpp#L106 https://github.com/llvm/llvm-project/pull/80636 ___ cfe-commits mailing list cfe-c

[clang] [Headers][X86] Make brief descriptions briefer (PR #82422)

2024-02-22 Thread Phoebe Wang via cfe-commits
@@ -2099,9 +2099,11 @@ static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi64(__m128i __a, } /// Adds, with saturation, the corresponding elements of two 128-bit -///signed [16 x i8] vectors, saving each sum in the corresponding element of -///a 128-bit result ve

<    1   2   3   4   5   6   7   8   9   10   >