[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)
zhijian lin via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 10:58:44 PDT 2025
================
@@ -8,6 +8,12 @@ if (HAS_WERROR_GLOBAL_CTORS AND NOT LLVM_HAS_NOGLOBAL_CTOR_MUTEX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=global-constructors")
endif()
+set(LLVM_TARGET_DEFINITIONS ${LLVM_MAIN_SRC_DIR}/lib/Target/PowerPC/PPC.td)
+
+tablegen(LLVM PPCGenSubtargetInfo.inc -gen-subtarget -I${LLVM_MAIN_SRC_DIR}/lib/Target/PowerPC)
+add_public_tablegen_target(PPCGenSubtargetInfo)
----------------
diggerlin wrote:
I did a clean build when I worked on the patch and never encountered the above problem. I also checked the build bot, and it looks like the build bot is green for this patch. Can you give me a hint on how to reproduce your problem? @vzakhari
https://github.com/llvm/llvm-project/pull/137670
More information about the llvm-commits
mailing list