Lines Matching defs:Src
37 StringRef Src, int64_t &Imm,
43 return parseSDelayAluImmMnemonic(OpIdx, Imm, Src, ErrorCallback);
94 const unsigned int OpIdx, int64_t &Imm, llvm::StringRef &Src,
100 bool Expected = Src.consume_front(".id0_");
102 return ErrorCallback(Src.begin(), "Expected .id0_");
104 auto ExpectInt = [&](StringRef &Src, int64_t Offset) -> int64_t {
106 if (!Src.consumeInteger(10, Dep))
112 auto DecodeDelay = [&](StringRef &Src) -> int64_t {
113 if (Src.consume_front("NONE"))
115 if (Src.consume_front("VALU_DEP_"))
116 return ExpectInt(Src, 0);
117 if (Src.consume_front("TRANS32_DEP_"))
118 return ExpectInt(Src, 4);
119 if (Src.consume_front("SALU_CYCLE_"))
120 return ExpectInt(Src, 8);
125 int64_t Delay0 = DecodeDelay(Src);
129 return ErrorCallback(Src.begin(), "Could not decode delay0");
137 if (Src.begin() == Src.end())
140 Expected = Src.consume_front("_skip_");
142 return ErrorCallback(Src.begin(), "Expected _skip_");
145 if (Src.consume_front("SAME")) {
147 } else if (Src.consume_front("NEXT")) {
149 } else if (Src.consume_front("SKIP_")) {
150 if (Src.consumeInteger(10, Skip)) {
151 return ErrorCallback(Src.begin(), "Expected integer Skip value");
155 ErrorCallback(Src.begin(), "Unexpected Skip Value");
158 Expected = Src.consume_front("_id1_");
160 return ErrorCallback(Src.begin(), "Expected _id1_");
162 Delay1 = DecodeDelay(Src);
164 return ErrorCallback(Src.begin(), "Could not decode delay1");
171 StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS,
176 if (Src == "GWSResource") {