[all-commits] [llvm/llvm-project] b16372: [PowerPC][MC] Set 'future' as default CPU type of ...
Qiu Chaofan via All-commits
all-commits at lists.llvm.org
Wed Jul 12 19:17:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b16372c5fc65a6a7c14c19f01b17ac15a964d21f
https://github.com/llvm/llvm-project/commit/b16372c5fc65a6a7c14c19f01b17ac15a964d21f
Author: Qiu Chaofan <qiucofan at cn.ibm.com>
Date: 2023-07-13 (Thu, 13 Jul 2023)
Changed paths:
M llvm/include/llvm/Object/XCOFFObjectFile.h
M llvm/lib/Object/XCOFFObjectFile.cpp
Log Message:
-----------
[PowerPC][MC] Set 'future' as default CPU type of XCOFF
For Power on Linux (both LE and BE), ELFObjectFile returns 'future' as
default CPU type if mcpu is not specified, so that all necessary
features will be enabled in MC.
While for XCOFF, the default CPU type is always null, which makes tools
like llvm-objdump not able to recognize prefixed instructions, unless
specifying --mcpu=pwr10 or --mattr=+prefix-instrs manually.
Reviewed By: nemanjai
Differential Revision: https://reviews.llvm.org/D155089
More information about the All-commits
mailing list