[clang] __sys builtin support (PR #145079)

2025-06-23 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello approved this pull request. https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Adam Glass via cfe-commits
AdamGlass wrote: pushed updated version with ternary operation test swapped. resolved that discussion -- is that my role or daniel's? https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Adam Glass via cfe-commits
https://github.com/AdamGlass updated https://github.com/llvm/llvm-project/pull/145079 >From cd5afb986fbbc6ceb68e2b4c6afc48bd1c8bf02e Mon Sep 17 00:00:00 2001 From: Adam Glass Date: Fri, 13 Jun 2025 17:59:20 -0700 Subject: [PATCH 1/2] __sys builtin support --- clang/include/clang/Basic/Builtin

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello edited https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello approved this pull request. Couple of minor cleanups. Would like to hear from @efriedma-quic since I'm not familiar with the architecture specifics. https://github.com/llvm/llvm-project/pull/145079 ___ cfe-commits mailin

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Daniel Paoliello via cfe-commits
@@ -5500,8 +5502,13 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID, llvm::Function *F = CGM.getIntrinsic(Intrinsic::write_register, Types); llvm::Value *ArgValue = EmitScalarExpr(E->getArg(1)); - -return Builder.CreateCall(F, { Metadata, ArgV

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Daniel Paoliello via cfe-commits
@@ -5471,19 +5471,21 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID, } if (BuiltinID == clang::AArch64::BI_ReadStatusReg || - BuiltinID == clang::AArch64::BI_WriteStatusReg) { + BuiltinID == clang::AArch64::BI_WriteStatusReg || + Built

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm @llvm/pr-subscribers-backend-aarch64 Author: Adam Glass (AdamGlass) Changes Adds support for __sys Clang builtin for Aarch64 __sys is a long existing MSVC intrinsic used to manage caches, tlbs, etc by writing to system registers: • It takes

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Adam Glass (AdamGlass) Changes Adds support for __sys Clang builtin for Aarch64 __sys is a long existing MSVC intrinsic used to manage caches, tlbs, etc by writing to system registers: • It takes a macro-generated constant and uses it to

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread Adam Glass via cfe-commits
https://github.com/AdamGlass created https://github.com/llvm/llvm-project/pull/145079 Adds support for __sys Clang builtin for Aarch64 __sys is a long existing MSVC intrinsic used to manage caches, tlbs, etc by writing to system registers: • It takes a macro-generated constant and uses it to f

[clang] __sys builtin support (PR #145079)

2025-06-20 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it