[llvm] [X86] Support lowering for APX promoted BMI instructions. (PR #77433)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 02:17:02 PST 2024
================
@@ -4087,14 +4087,17 @@ MachineSDNode *X86DAGToDAGISel::matchBEXTRFromAndImm(SDNode *Node) {
SDValue Control;
unsigned ROpc, MOpc;
+#define GET_EGPR_IF_ENABLED(OPC) Subtarget->hasEGPR() ? OPC##_EVEX : OPC
----------------
RKSimon wrote:
(style) Add brackets just in case the define gets expanded somewhere with weird operator precedence:
`#define GET_EGPR_IF_ENABLED(OPC) (Subtarget->hasEGPR() ? OPC##_EVEX : OPC)`
https://github.com/llvm/llvm-project/pull/77433
More information about the llvm-commits
mailing list