[all-commits] [llvm/llvm-project] 6a0282: [PowerPC] Emit warning when SP is clobbered by asm
Quinn Pham via All-commits
all-commits at lists.llvm.org
Mon Jan 24 13:12:41 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6a028296fe62252791a6b470eeb8409b17d48cd0
https://github.com/llvm/llvm-project/commit/6a028296fe62252791a6b470eeb8409b17d48cd0
Author: Quinn Pham <quinn.pham at ibm.com>
Date: 2022-01-24 (Mon, 24 Jan 2022)
Changed paths:
M clang/lib/Basic/Targets/PPC.cpp
A clang/test/Misc/ppc-inline-asm-clobber-warning.c
M llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
M llvm/lib/Target/PowerPC/PPCRegisterInfo.h
A llvm/test/CodeGen/PowerPC/inline-asm-clobber-warning.ll
Log Message:
-----------
[PowerPC] Emit warning when SP is clobbered by asm
This patch emits a warning when the stack pointer register (`R1`) is found in
the clobber list of an inline asm statement. Clobbering the stack pointer is
not supported.
Reviewed By: #powerpc, nemanjai
Differential Revision: https://reviews.llvm.org/D112073
More information about the All-commits
mailing list