From: Akira Hatanaka Date: Thu, 1 Aug 2013 23:14:16 +0000 (+0000) Subject: [mips] Make load/store accumulator pseudo instructions codeGenOnly. Also, X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21f334372e533f37afeb6171f055c305c4599e63;p=platform%2Fupstream%2Fllvm.git [mips] Make load/store accumulator pseudo instructions codeGenOnly. Also, remove lines that are setting DecoderNamespace for pseudo atomic instructions. No intended functionality change. llvm-svn: 187632 --- diff --git a/llvm/lib/Target/Mips/Mips64InstrInfo.td b/llvm/lib/Target/Mips/Mips64InstrInfo.td index 16a059f..0e6e1fd 100644 --- a/llvm/lib/Target/Mips/Mips64InstrInfo.td +++ b/llvm/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/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index ace43b9..75cf3d8 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/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>; } //===----------------------------------------------------------------------===//