[llvm] b75d2ec - [LoongArch] Add some blank lines to make .td more tidy. NFC
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 18:49:53 PDT 2022
Author: Weining Lu
Date: 2022-03-18T09:49:16+08:00
New Revision: b75d2ec124d0e19a45b7ed5b3b980521da57700e
URL: https://github.com/llvm/llvm-project/commit/b75d2ec124d0e19a45b7ed5b3b980521da57700e
DIFF: https://github.com/llvm/llvm-project/commit/b75d2ec124d0e19a45b7ed5b3b980521da57700e.diff
LOG: [LoongArch] Add some blank lines to make .td more tidy. NFC
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchInstrInfo.td b/llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
index 3699bbcd56edc..6cf7f473f902d 100644
--- a/llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
+++ b/llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
@@ -317,6 +317,7 @@ def RDTIMEH_W : RDTIME_2R<0b0000000000000000011001, "rdtimeh.w">;
def CPUCFG : ALU_2R<0b0000000000000000011011, "cpucfg">;
/// LA64 instructions
+
let Predicates = [IsLA64] in {
// Arithmetic Operation Instructions for 64-bits
@@ -494,12 +495,14 @@ def : PatGprGpr<or, OR>;
def : PatGprGpr<xor, XOR>;
/// LA32 patterns
+
let Predicates = [IsLA32] in {
def : PatGprGpr<add, ADD_W>;
def : PatGprImm<add, ADDI_W, simm12>;
} // Predicates = [IsLA32]
/// LA64 patterns
+
let Predicates = [IsLA64] in {
def : Pat<(sext_inreg GPR:$rj, i32), (ADDI_W GPR:$rj, 0)>;
More information about the llvm-commits
mailing list