From ddbdeefa286374a1f036d5e80987306749d3f729 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Thu, 1 Aug 2013 23:14:16 +0000 Subject: [PATCH] [mips] Make load/store accumulator pseudo instructions codeGenOnly. Also, remove lines that are setting DecoderNamespace for pseudo atomic instructions. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187632 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/Mips64InstrInfo.td | 18 ++++++------------ lib/Target/Mips/MipsInstrInfo.td | 15 +++++---------- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/lib/Target/Mips/Mips64InstrInfo.td b/lib/Target/Mips/Mips64InstrInfo.td index 16a059fb554..0e6e1fd5f20 100644 --- a/lib/Target/Mips/Mips64InstrInfo.td +++ b/lib/Target/Mips/Mips64InstrInfo.td @@ -37,21 +37,15 @@ def immZExt6 : ImmLeaf; let DecoderNamespace = "Mips64" in { multiclass Atomic2Ops64 { - def NAME : Atomic2Ops, - Requires<[NotN64, HasStdEnc]>; - def _P8 : Atomic2Ops, - Requires<[IsN64, HasStdEnc]> { - let isCodeGenOnly = 1; - } + def NAME : Atomic2Ops, Requires<[NotN64, HasStdEnc]>; + def _P8 : Atomic2Ops, Requires<[IsN64, HasStdEnc]>; } multiclass AtomicCmpSwap64 { def NAME : AtomicCmpSwap, Requires<[NotN64, HasStdEnc]>; def _P8 : AtomicCmpSwap, - Requires<[IsN64, HasStdEnc]> { - let isCodeGenOnly = 1; - } + Requires<[IsN64, HasStdEnc]>; } } let usesCustomInserter = 1, Predicates = [HasStdEnc], @@ -67,9 +61,9 @@ let usesCustomInserter = 1, Predicates = [HasStdEnc], } /// Pseudo instructions for loading and storing accumulator registers. -let isPseudo = 1 in { - defm LOAD_AC128 : LoadM<"load_ac128", ACRegs128>; - defm STORE_AC128 : StoreM<"store_ac128", ACRegs128>; +let isPseudo = 1, isCodeGenOnly = 1 in { + defm LOAD_AC128 : LoadM<"", ACRegs128>; + defm STORE_AC128 : StoreM<"", ACRegs128>; } //===----------------------------------------------------------------------===// diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td index ace43b99841..75cf3d843a3 100644 --- a/lib/Target/Mips/MipsInstrInfo.td +++ b/lib/Target/Mips/MipsInstrInfo.td @@ -791,10 +791,7 @@ class Atomic2Ops : multiclass Atomic2Ops32 { def NAME : Atomic2Ops, Requires<[NotN64, HasStdEnc]>; - def _P8 : Atomic2Ops, - Requires<[IsN64, HasStdEnc]> { - let DecoderNamespace = "Mips64"; - } + def _P8 : Atomic2Ops, Requires<[IsN64, HasStdEnc]>; } // Atomic Compare & Swap. @@ -806,9 +803,7 @@ multiclass AtomicCmpSwap32 { def NAME : AtomicCmpSwap, Requires<[NotN64, HasStdEnc]>; def _P8 : AtomicCmpSwap, - Requires<[IsN64, HasStdEnc]> { - let DecoderNamespace = "Mips64"; - } + Requires<[IsN64, HasStdEnc]>; } class LLBase : @@ -879,9 +874,9 @@ let usesCustomInserter = 1 in { } /// Pseudo instructions for loading and storing accumulator registers. -let isPseudo = 1 in { - defm LOAD_AC64 : LoadM<"load_ac64", ACRegs>; - defm STORE_AC64 : StoreM<"store_ac64", ACRegs>; +let isPseudo = 1, isCodeGenOnly = 1 in { + defm LOAD_AC64 : LoadM<"", ACRegs>; + defm STORE_AC64 : StoreM<"", ACRegs>; } //===----------------------------------------------------------------------===//