[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-06 Thread Chen Zheng via cfe-commits
chenzheng1030 wrote: > No. `-disable-red-zone` does nothing but add `noredzone` IR attribute to > functions. We need to add cases to test for `noredzone` behavior on PPC (arm > and x86 have). Yeah, go ahead to add some backend tests first to make sure we have good functionality for `noredzone

[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-06 Thread Qiu Chaofan via cfe-commits
ecnelises wrote: No. `-disable-red-zone` does nothing but add `noredzone` IR attribute to functions. We need to add cases to test for `noredzone` behavior on PPC (arm and x86 have). https://github.com/llvm/llvm-project/pull/94581 ___ cfe-commits mail

[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-06 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 edited https://github.com/llvm/llvm-project/pull/94581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-06 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 commented: Are there backend cases that shows with -disable-red-zone, the final assembly is still correct? https://github.com/llvm/llvm-project/pull/94581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Qiu Chaofan (ecnelises) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/94581.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+3) - (modified) clang/test/Driver/flags.c (+3) ``

[clang] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-06-05 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises created https://github.com/llvm/llvm-project/pull/94581 None >From 4e078099d8e15fd984ef38435d6f792bbb3d754c Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Thu, 6 Jun 2024 14:06:48 +0800 Subject: [PATCH] [PowerPC] Support -mno-red-zone option --- clang/lib/Drive