Lines Matching +full:reg +full:- +full:shift

1 //===-- SIProgramInfo.cpp ----------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
80 uint64_t Reg = S_00B848_PRIORITY(ProgInfo.Priority) | in getComputePGMRSrc1Reg() local
88 Reg |= S_00B848_DX10_CLAMP(ProgInfo.DX10Clamp); in getComputePGMRSrc1Reg()
91 Reg |= S_00B848_IEEE_MODE(ProgInfo.IEEEMode); in getComputePGMRSrc1Reg()
94 Reg |= S_00B848_RR_WG_MODE(ProgInfo.RrWgMode); in getComputePGMRSrc1Reg()
96 return Reg; in getComputePGMRSrc1Reg()
101 uint64_t Reg = S_00B848_PRIORITY(ProgInfo.Priority) | in getPGMRSrc1Reg() local
107 Reg |= S_00B848_DX10_CLAMP(ProgInfo.DX10Clamp); in getPGMRSrc1Reg()
110 Reg |= S_00B848_IEEE_MODE(ProgInfo.IEEEMode); in getPGMRSrc1Reg()
113 Reg |= S_00B848_RR_WG_MODE(ProgInfo.RrWgMode); in getPGMRSrc1Reg()
117 Reg |= S_00B028_MEM_ORDERED(ProgInfo.MemOrdered); in getPGMRSrc1Reg()
120 Reg |= S_00B128_MEM_ORDERED(ProgInfo.MemOrdered); in getPGMRSrc1Reg()
123 Reg |= S_00B228_WGP_MODE(ProgInfo.WgpMode) | in getPGMRSrc1Reg()
127 Reg |= S_00B428_WGP_MODE(ProgInfo.WgpMode) | in getPGMRSrc1Reg()
133 return Reg; in getPGMRSrc1Reg()
137 uint64_t Reg = S_00B84C_USER_SGPR(ProgInfo.UserSGPR) | in getComputePGMRSrc2Reg() local
148 return Reg; in getComputePGMRSrc2Reg()
151 static const MCExpr *MaskShift(const MCExpr *Val, uint32_t Mask, uint32_t Shift, in MaskShift() argument
157 if (Shift) { in MaskShift()
158 const MCExpr *ShiftExpr = MCConstantExpr::create(Shift, Ctx); in MaskShift()
166 uint64_t Reg = getComputePGMRSrc1Reg(*this, ST); in getComputePGMRSrc1() local
167 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getComputePGMRSrc1()
169 MaskShift(VGPRBlocks, /*Mask=*/0x3F, /*Shift=*/0, Ctx), in getComputePGMRSrc1()
170 MaskShift(SGPRBlocks, /*Mask=*/0xF, /*Shift=*/6, Ctx), Ctx); in getComputePGMRSrc1()
181 uint64_t Reg = getPGMRSrc1Reg(*this, CC, ST); in getPGMRSrc1() local
182 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getPGMRSrc1()
184 MaskShift(VGPRBlocks, /*Mask=*/0x3F, /*Shift=*/0, Ctx), in getPGMRSrc1()
185 MaskShift(SGPRBlocks, /*Mask=*/0xF, /*Shift=*/6, Ctx), Ctx); in getPGMRSrc1()
190 uint64_t Reg = getComputePGMRSrc2Reg(*this); in getComputePGMRSrc2() local
191 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getComputePGMRSrc2()