From c20cb18c000c2f73d7eed980079908bed6afa41f Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 24 Aug 2017 19:19:24 +0000 Subject: [PATCH] [Hexagon] Set access size for vector pseudo loads/stores git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311690 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Hexagon/HexagonPseudo.td | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/lib/Target/Hexagon/HexagonPseudo.td b/lib/Target/Hexagon/HexagonPseudo.td index b42c1ab975a..16e95036131 100644 --- a/lib/Target/Hexagon/HexagonPseudo.td +++ b/lib/Target/Hexagon/HexagonPseudo.td @@ -402,25 +402,25 @@ class STrivv_template : InstHexagon<(outs), (ins IntRegs:$addr, s32_0Imm:$off, RC:$src), "", [], "", rootInst.Itinerary, rootInst.Type>; -def PS_vstorerw_ai: STrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vstorerw_ai_128B: STrivv_template, - Requires<[HasV60T,UseHVXDbl]>; - -def PS_vstorerw_nt_ai: STrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vstorerw_nt_ai_128B: STrivv_template, - Requires<[HasV60T,UseHVXDbl]>; +let accessSize = Vector64Access, Predicates = [HasV60T,UseHVXSgl] in { + def PS_vstorerw_ai: STrivv_template; + def PS_vstorerw_nt_ai: STrivv_template; + def PS_vstorerwu_ai: STrivv_template; +} -def PS_vstorerwu_ai: STrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vstorerwu_ai_128B: STrivv_template, - Requires<[HasV60T,UseHVXDbl]>; +let accessSize = Vector128Access, Predicates = [HasV60T,UseHVXDbl] in { + def PS_vstorerw_ai_128B: STrivv_template; + def PS_vstorerw_nt_ai_128B: STrivv_template; + def PS_vstorerwu_ai_128B: STrivv_template; +} let isPseudo = 1, isCodeGenOnly = 1, mayStore = 1, hasSideEffects = 0 in { + let accessSize = Vector64Access in def PS_vstorerq_ai: Pseudo<(outs), (ins IntRegs:$Rs, s32_0Imm:$Off, VecPredRegs:$Qt), "", []>, Requires<[HasV60T,UseHVXSgl]>; + let accessSize = Vector128Access in def PS_vstorerq_ai_128B: Pseudo<(outs), (ins IntRegs:$Rs, s32_0Imm:$Off, VecPredRegs128B:$Qt), "", []>, Requires<[HasV60T,UseHVXDbl]>; @@ -433,25 +433,25 @@ class LDrivv_template : InstHexagon<(outs RC:$dst), (ins IntRegs:$addr, s32_0Imm:$off), "", [], "", rootInst.Itinerary, rootInst.Type>; -def PS_vloadrw_ai: LDrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vloadrw_ai_128B: LDrivv_template, - Requires<[HasV60T,UseHVXDbl]>; - -def PS_vloadrw_nt_ai: LDrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vloadrw_nt_ai_128B: LDrivv_template, - Requires<[HasV60T,UseHVXDbl]>; +let accessSize = Vector64Access, Predicates = [HasV60T,UseHVXSgl] in { + def PS_vloadrw_ai: LDrivv_template; + def PS_vloadrw_nt_ai: LDrivv_template; + def PS_vloadrwu_ai: LDrivv_template; +} -def PS_vloadrwu_ai: LDrivv_template, - Requires<[HasV60T,UseHVXSgl]>; -def PS_vloadrwu_ai_128B: LDrivv_template, - Requires<[HasV60T,UseHVXDbl]>; +let accessSize = Vector128Access, Predicates = [HasV60T,UseHVXDbl] in { + def PS_vloadrw_ai_128B: LDrivv_template; + def PS_vloadrw_nt_ai_128B: LDrivv_template; + def PS_vloadrwu_ai_128B: LDrivv_template; +} let isPseudo = 1, isCodeGenOnly = 1, mayLoad = 1, hasSideEffects = 0 in { + let accessSize = Vector64Access in def PS_vloadrq_ai: Pseudo<(outs VecPredRegs:$Qd), (ins IntRegs:$Rs, s32_0Imm:$Off), "", []>, Requires<[HasV60T,UseHVXSgl]>; + let accessSize = Vector128Access in def PS_vloadrq_ai_128B: Pseudo<(outs VecPredRegs128B:$Qd), (ins IntRegs:$Rs, s32_0Imm:$Off), "", []>, Requires<[HasV60T,UseHVXDbl]>; -- 2.50.1