Home | History | Annotate | Download | only in MIRParser

Lines Matching refs:Name

184   /// Try to convert an instruction name to an opcode. Return true if the
185 /// instruction name is invalid.
198 /// Try to convert a register name to a register number. Return true if the
199 /// register name is invalid.
204 /// Check if the given identifier is a name of a register mask.
211 /// Check if the given identifier is a name of a subregister index.
213 /// Return 0 if the name isn't a subregister index class.
214 unsigned getSubRegIndex(StringRef Name);
223 /// Try to convert a name of target index to the corresponding target index.
225 /// Return true if the name isn't a name of a target index.
226 bool getTargetIndex(StringRef Name, int &Index);
230 /// Try to convert a name of a direct target flag to the corresponding
233 /// Return true if the name isn't a name of a direct flag.
234 bool getDirectTargetFlag(StringRef Name, unsigned &Flag);
238 /// Try to convert a name of a bitmask target flag to the corresponding
241 /// Return true if the name isn't a name of a bitmask target flag.
242 bool getBitmaskTargetFlag(StringRef Name, unsigned &Flag);
315 auto Name = Token.stringValue();
338 // TODO: Report an error when both name and ir block are specified.
353 if (!Name.empty()) {
355 MF.getFunction()->getValueSymbolTable().lookup(Name));
357 return error(Loc, Twine("basic block '") + Name +
778 return error(Twine("unknown machine instruction name '") + InstrName + "'");
789 StringRef Name = Token.stringValue();
790 if (getRegisterByName(Name, Reg))
791 return error(Twine("unknown register name '") + Name + "'");
858 auto Name = Token.stringValue();
859 SubReg = getSubRegIndex(Name);
861 return error(Twine("use of unknown subregister index '") + Name + "'");
1024 return error(Twine("the name of machine basic block #") + Twine(Number) +
1047 StringRef Name;
1050 Name = Alloca->getName();
1051 if (!Token.stringValue().empty() && Token.stringValue() != Name)
1052 return error(Twine("the name of the stack object '%stack.") + Twine(ID) +
1327 return error("expected the name of the target index");
1449 return error("expected the name of the target flag");
1459 return error("expected the name of the target flag");
1814 unsigned MIParser::getSubRegIndex(StringRef Name) {
1816 auto SubRegInfo = Names2SubRegIndices.find(Name);
1901 bool MIParser::getTargetIndex(StringRef Name, int &Index) {
1903 auto IndexInfo = Names2TargetIndices.find(Name);
1921 bool MIParser::getDirectTargetFlag(StringRef Name, unsigned &Flag) {
1923 auto FlagInfo = Names2DirectTargetFlags.find(Name);
1941 bool MIParser::getBitmaskTargetFlag(StringRef Name, unsigned &Flag) {
1943 auto FlagInfo = Names2BitmaskTargetFlags.find(Name);