[llvm] 4bb8569 - [LoongArch] Undef the macro after using it. NFC.
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 00:10:53 PST 2022
Author: gonglingqin
Date: 2022-12-15T16:09:42+08:00
New Revision: 4bb85698d69c69fb21940b81f69aff5c76428f82
URL: https://github.com/llvm/llvm-project/commit/4bb85698d69c69fb21940b81f69aff5c76428f82
DIFF: https://github.com/llvm/llvm-project/commit/4bb85698d69c69fb21940b81f69aff5c76428f82.diff
LOG: [LoongArch] Undef the macro after using it. NFC.
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index ace2293169af8..e676d74666cb8 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -756,6 +756,7 @@ SDValue LoongArchTargetLowering::lowerINTRINSIC_VOID(SDValue Op,
IOCSRWR_CASE(iocsrwr_b, IOCSRWR_B);
IOCSRWR_CASE(iocsrwr_h, IOCSRWR_H);
IOCSRWR_CASE(iocsrwr_w, IOCSRWR_W);
+#undef IOCSRWR_CASE
case Intrinsic::loongarch_iocsrwr_d: {
if (Subtarget.is64Bit())
return DAG.getNode(
@@ -1063,6 +1064,7 @@ void LoongArchTargetLowering::ReplaceNodeResults(
CRC_CASE_EXT_BINARYOP(crcc_w_b_w, CRCC_W_B_W)
CRC_CASE_EXT_BINARYOP(crcc_w_h_w, CRCC_W_H_W)
CRC_CASE_EXT_BINARYOP(crcc_w_w_w, CRCC_W_W_W)
+#undef CRC_CASE_EXT_BINARYOP
#define CRC_CASE_EXT_UNARYOP(NAME, NODE) \
case Intrinsic::loongarch_##NAME: { \
@@ -1076,6 +1078,7 @@ void LoongArchTargetLowering::ReplaceNodeResults(
}
CRC_CASE_EXT_UNARYOP(crc_w_d_w, CRC_W_D_W)
CRC_CASE_EXT_UNARYOP(crcc_w_d_w, CRCC_W_D_W)
+#undef CRC_CASE_EXT_UNARYOP
#define CSR_CASE(ID) \
case Intrinsic::loongarch_##ID: { \
if (!Subtarget.is64Bit()) { \
@@ -1089,6 +1092,7 @@ void LoongArchTargetLowering::ReplaceNodeResults(
CSR_CASE(csrwr_d);
CSR_CASE(csrxchg_d);
CSR_CASE(iocsrrd_d);
+#undef CSR_CASE
case Intrinsic::loongarch_csrrd_w: {
unsigned Imm = cast<ConstantSDNode>(Op2)->getZExtValue();
if (!isUInt<14>(Imm)) {
More information about the llvm-commits
mailing list