Lines Matching defs:Src
38 StringRef Src, int64_t &Imm,
44 return parseSDelayAluImmMnemonic(OpIdx, Imm, Src, ErrorCallback);
95 const unsigned int OpIdx, int64_t &Imm, llvm::StringRef &Src,
101 bool Expected = Src.consume_front(".id0_");
103 return ErrorCallback(Src.begin(), "Expected .id0_");
105 auto ExpectInt = [&](StringRef &Src, int64_t Offset) -> int64_t {
107 if (!Src.consumeInteger(10, Dep))
113 auto DecodeDelay = [&](StringRef &Src) -> int64_t {
114 if (Src.consume_front("NONE"))
116 if (Src.consume_front("VALU_DEP_"))
117 return ExpectInt(Src, 0);
118 if (Src.consume_front("TRANS32_DEP_"))
119 return ExpectInt(Src, 4);
120 if (Src.consume_front("SALU_CYCLE_"))
121 return ExpectInt(Src, 8);
126 int64_t Delay0 = DecodeDelay(Src);
130 return ErrorCallback(Src.begin(), "Could not decode delay0");
138 if (Src.begin() == Src.end())
141 Expected = Src.consume_front("_skip_");
143 return ErrorCallback(Src.begin(), "Expected _skip_");
146 if (Src.consume_front("SAME")) {
148 } else if (Src.consume_front("NEXT")) {
150 } else if (Src.consume_front("SKIP_")) {
151 if (Src.consumeInteger(10, Skip)) {
152 return ErrorCallback(Src.begin(), "Expected integer Skip value");
156 ErrorCallback(Src.begin(), "Unexpected Skip Value");
159 Expected = Src.consume_front("_id1_");
161 return ErrorCallback(Src.begin(), "Expected _id1_");
163 Delay1 = DecodeDelay(Src);
165 return ErrorCallback(Src.begin(), "Could not decode delay1");
172 StringRef Src, MachineFunction &MF, PerFunctionMIParsingState &PFS,
177 if (Src == "GWSResource") {