Lines Matching refs:RegKind
1030 void usesRegister(RegisterKind RegKind, unsigned DwordRegIndex, unsigned RegWidth) { in usesRegister() argument
1031 switch (RegKind) { in usesRegister()
1107 RegisterKind RegKind, unsigned Reg1, SMLoc Loc);
1108 bool ParseAMDGPURegister(RegisterKind &RegKind, unsigned &Reg,
1111 bool ParseAMDGPURegister(RegisterKind &RegKind, unsigned &Reg,
1114 unsigned ParseRegularReg(RegisterKind &RegKind, unsigned &RegNum,
1117 unsigned ParseSpecialReg(RegisterKind &RegKind, unsigned &RegNum,
1120 unsigned ParseRegList(RegisterKind &RegKind, unsigned &RegNum,
1123 unsigned getRegularReg(RegisterKind RegKind,
1130 Optional<StringRef> getGprCountSymbolName(RegisterKind RegKind);
1131 void initializeGprCountSymbol(RegisterKind RegKind);
1132 bool updateGprCountSymbols(RegisterKind RegKind, unsigned DwordRegIndex,
2144 RegisterKind RegKind, unsigned Reg1, in AddNextRegisterToList() argument
2146 switch (RegKind) { in AddNextRegisterToList()
2266 AMDGPUAsmParser::getRegularReg(RegisterKind RegKind, in getRegularReg() argument
2271 assert(isRegularReg(RegKind)); in getRegularReg()
2274 if (RegKind == IS_SGPR || RegKind == IS_TTMP) { in getRegularReg()
2286 int RCID = getRegClass(RegKind, RegWidth); in getRegularReg()
2345 unsigned AMDGPUAsmParser::ParseSpecialReg(RegisterKind &RegKind, in ParseSpecialReg() argument
2353 RegKind = IS_SPECIAL; in ParseSpecialReg()
2360 unsigned AMDGPUAsmParser::ParseRegularReg(RegisterKind &RegKind, in ParseRegularReg() argument
2376 RegKind = RI->Kind; in ParseRegularReg()
2391 return getRegularReg(RegKind, RegNum, RegWidth, Loc); in ParseRegularReg()
2394 unsigned AMDGPUAsmParser::ParseRegList(RegisterKind &RegKind, unsigned &RegNum, in ParseRegList() argument
2408 if (!ParseAMDGPURegister(RegKind, Reg, RegNum, RegWidth)) in ParseRegList()
2429 if (NextRegKind != RegKind) { in ParseRegList()
2433 if (!AddNextRegisterToList(Reg, RegWidth, RegKind, NextReg, Loc)) in ParseRegList()
2442 if (isRegularReg(RegKind)) in ParseRegList()
2443 Reg = getRegularReg(RegKind, RegNum, RegWidth, ListLoc); in ParseRegList()
2448 bool AMDGPUAsmParser::ParseAMDGPURegister(RegisterKind &RegKind, unsigned &Reg, in ParseAMDGPURegister() argument
2455 Reg = ParseSpecialReg(RegKind, RegNum, RegWidth, Tokens); in ParseAMDGPURegister()
2457 Reg = ParseRegularReg(RegKind, RegNum, RegWidth, Tokens); in ParseAMDGPURegister()
2459 Reg = ParseRegList(RegKind, RegNum, RegWidth, Tokens); in ParseAMDGPURegister()
2480 bool AMDGPUAsmParser::ParseAMDGPURegister(RegisterKind &RegKind, unsigned &Reg, in ParseAMDGPURegister() argument
2486 if (ParseAMDGPURegister(RegKind, Reg, RegNum, RegWidth, Tokens)) { in ParseAMDGPURegister()
2498 AMDGPUAsmParser::getGprCountSymbolName(RegisterKind RegKind) { in getGprCountSymbolName() argument
2499 switch (RegKind) { in getGprCountSymbolName()
2509 void AMDGPUAsmParser::initializeGprCountSymbol(RegisterKind RegKind) { in initializeGprCountSymbol() argument
2510 auto SymbolName = getGprCountSymbolName(RegKind); in initializeGprCountSymbol()
2516 bool AMDGPUAsmParser::updateGprCountSymbols(RegisterKind RegKind, in updateGprCountSymbols() argument
2523 auto SymbolName = getGprCountSymbolName(RegKind); in updateGprCountSymbols()
2550 RegisterKind RegKind; in parseRegister() local
2553 if (!ParseAMDGPURegister(RegKind, Reg, RegNum, RegWidth)) { in parseRegister()
2557 if (!updateGprCountSymbols(RegKind, RegNum, RegWidth)) in parseRegister()
2560 KernelScope.usesRegister(RegKind, RegNum, RegWidth); in parseRegister()