Closed DataCorrupted closed 1 year ago
Sure, I'm moving the second patch to InsertIntrinsicStrategy. (And don't forget to fetch llvm-project pattern-lookup and regenerate the JSONs since I changed size_t to int within llvm-tblgen)
Also, you can directly push to this branch if you want to.
ThePattern.Complexity = (int64_t)PatternObject["complexity"]; ThePattern.IncludePath = PatternObject["path"].get_string().value(); StringRef SrcDst = PatternObject["pattern"].get_string().value(); std::tie(ThePattern.Src, ThePattern.Dst) = SrcDst.split(" -> "); @@ -437,8 +438,19 @@ std::vector MatcherTree::blameTargetIntrinsic() const {
Intrinsic::ID IID = std::stoul(SMatch[1]);
// A few of them are not target intrinsic functions