Lines Matching defs:LHSs

857     if (const auto *LHSs = dyn_cast<StringInit>(LHS))
858 return StringInit::get(RK, LHSs->getValue().lower());
861 if (const auto *LHSs = dyn_cast<StringInit>(LHS))
862 return StringInit::get(RK, LHSs->getValue().upper());
866 if (const auto *LHSs = dyn_cast<StringInit>(LHS))
867 return LHSs;
955 if (const auto *LHSs = dyn_cast<StringInit>(LHS))
956 return IntInit::get(RK, LHSs->getValue().size());
964 if (const auto *LHSs = dyn_cast<StringInit>(LHS))
965 return IntInit::get(RK, LHSs->getValue().empty());
1213 const auto *LHSs = dyn_cast<StringInit>(LHS);
1216 if (LHSs && RHSs) {
1220 Result = LHSs->getValue() == RHSs->getValue();
1223 Result = LHSs->getValue() != RHSs->getValue();
1226 Result = LHSs->getValue() <= RHSs->getValue();
1229 Result = LHSs->getValue() < RHSs->getValue();
1232 Result = LHSs->getValue() >= RHSs->getValue();
1235 Result = LHSs->getValue() > RHSs->getValue();
1290 const auto *LHSs = dyn_cast<DagInit>(LHS);
1292 if (LHSs && RHSs) {
1293 const auto *LOp = dyn_cast<DefInit>(LHSs->getOperator());
1295 if ((!LOp && !isa<UnsetInit>(LHSs->getOperator())) ||
1300 LHSs->getAsString() + "' vs. '" + RHSs->getAsString() +
1309 for (unsigned i = 0, e = LHSs->getNumArgs(); i != e; ++i) {
1310 Args.push_back(LHSs->getArg(i));
1311 ArgNames.push_back(LHSs->getArgName(i));
1322 const auto *LHSs = dyn_cast<ListInit>(LHS);
1324 if (LHSs && RHSs) {
1326 llvm::append_range(Args, *LHSs);
1328 return ListInit::get(Args, LHSs->getElementType());
1342 const auto *LHSs = dyn_cast<ListInit>(LHS);
1344 if (LHSs && RHSs) {
1346 for (const Init *EltLHS : *LHSs) {
1359 return ListInit::get(Args, LHSs->getElementType());
1424 const auto *LHSs = dyn_cast<StringInit>(LHS);
1426 if (LHSs && RHSs)
1427 return ConcatStringInits(LHSs, RHSs);
1742 const auto *LHSs = dyn_cast<StringInit>(LHS);
1764 if (LHSs && MHSs && RHSs) {
1770 found = Val.find(std::string(LHSs->getValue()), idx);
1773 Val.replace(found, LHSs->getValue().size(),
1858 const auto *LHSs = dyn_cast<StringInit>(LHS);
1861 if (LHSs && MHSi && RHSi) {
1862 int64_t StringSize = LHSs->getValue().size();
1872 return StringInit::get(RK, LHSs->getValue().substr(Start, Length),
1873 LHSs->getFormat());
1879 const auto *LHSs = dyn_cast<StringInit>(LHS);
1882 if (LHSs && MHSs && RHSi) {
1883 int64_t SourceSize = LHSs->getValue().size();
1890 auto I = LHSs->getValue().find(MHSs->getValue(), Start);